| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/win32/ |
| D | strerror.c | 61 char *msg; in isc__strerror() local 72 msg = NTstrerror(num, &freebuf); in isc__strerror() 73 if (msg != NULL) in isc__strerror() 74 snprintf(buf, size, "%s", msg); in isc__strerror() 77 if(freebuf && msg != NULL) { in isc__strerror() 78 LocalFree(msg); in isc__strerror() 147 char *msg; in NTperror() local 149 msg = NTstrerror(errval, &bfreebuf); in NTperror() 150 fprintf(stderr, "%s: %s\n", errmsg, msg); in NTperror() 152 LocalFree(msg); in NTperror() [all …]
|
| /freebsd-12-stable/contrib/libevent/test/ |
| D | regress.gen.c | 47 struct msg * 53 struct msg * 56 struct msg *tmp; in msg_new_with_arg() 57 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new_with_arg() 84 msg_run_expand_to_hold_more(struct msg *msg) in msg_run_expand_to_hold_more() argument 86 int tobe_allocated = msg->run_num_allocated; in msg_run_expand_to_hold_more() 89 new_data = (struct run**) realloc(msg->run_data, in msg_run_expand_to_hold_more() 93 msg->run_data = new_data; in msg_run_expand_to_hold_more() 94 msg->run_num_allocated = tobe_allocated; in msg_run_expand_to_hold_more() 99 msg_run_add(struct msg *msg) in msg_run_add() argument [all …]
|
| D | regress.gen.h | 12 struct msg; 27 int (*from_name_assign)(struct msg *, const char *); 28 int (*from_name_get)(struct msg *, char * *); 29 int (*to_name_assign)(struct msg *, const char *); 30 int (*to_name_get)(struct msg *, char * *); 31 int (*attack_assign)(struct msg *, const struct kill*); 32 int (*attack_get)(struct msg *, struct kill* *); 33 int (*run_assign)(struct msg *, int, const struct run*); 34 int (*run_get)(struct msg *, int, struct run* *); 35 struct run* (*run_add)(struct msg *msg); [all …]
|
| /freebsd-12-stable/contrib/ntp/sntp/libevent/test/ |
| D | regress.gen.c | 47 struct msg * 53 struct msg * 56 struct msg *tmp; in msg_new_with_arg() 57 if ((tmp = malloc(sizeof(struct msg))) == NULL) { in msg_new_with_arg() 84 msg_run_expand_to_hold_more(struct msg *msg) in msg_run_expand_to_hold_more() argument 86 int tobe_allocated = msg->run_num_allocated; in msg_run_expand_to_hold_more() 89 new_data = (struct run**) realloc(msg->run_data, in msg_run_expand_to_hold_more() 93 msg->run_data = new_data; in msg_run_expand_to_hold_more() 94 msg->run_num_allocated = tobe_allocated; in msg_run_expand_to_hold_more() 99 msg_run_add(struct msg *msg) in msg_run_add() argument [all …]
|
| D | regress.gen.h | 12 struct msg; 27 int (*from_name_assign)(struct msg *, const char *); 28 int (*from_name_get)(struct msg *, char * *); 29 int (*to_name_assign)(struct msg *, const char *); 30 int (*to_name_get)(struct msg *, char * *); 31 int (*attack_assign)(struct msg *, const struct kill*); 32 int (*attack_get)(struct msg *, struct kill* *); 33 int (*run_assign)(struct msg *, int, const struct run*); 34 int (*run_get)(struct msg *, int, struct run* *); 35 struct run* (*run_add)(struct msg *msg); [all …]
|
| /freebsd-12-stable/contrib/wpa/src/wps/ |
| D | wps_attr_build.c | 21 int wps_build_public_key(struct wps_data *wps, struct wpabuf *msg) in wps_build_public_key() argument 81 wpabuf_put_be16(msg, ATTR_PUBLIC_KEY); in wps_build_public_key() 82 wpabuf_put_be16(msg, wpabuf_len(pubkey)); in wps_build_public_key() 83 wpabuf_put_buf(msg, pubkey); in wps_build_public_key() 97 int wps_build_req_type(struct wpabuf *msg, enum wps_request_type type) in wps_build_req_type() argument 100 wpabuf_put_be16(msg, ATTR_REQUEST_TYPE); in wps_build_req_type() 101 wpabuf_put_be16(msg, 1); in wps_build_req_type() 102 wpabuf_put_u8(msg, type); in wps_build_req_type() 107 int wps_build_resp_type(struct wpabuf *msg, enum wps_response_type type) in wps_build_resp_type() argument 110 wpabuf_put_be16(msg, ATTR_RESPONSE_TYPE); in wps_build_resp_type() [all …]
|
| D | wps_dev_attr.c | 16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument 20 wpabuf_put_be16(msg, ATTR_MANUFACTURER); in wps_build_manufacturer() 29 wpabuf_put_be16(msg, 1); in wps_build_manufacturer() 30 wpabuf_put_u8(msg, ' '); in wps_build_manufacturer() 34 wpabuf_put_be16(msg, len); in wps_build_manufacturer() 35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer() 40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument 44 wpabuf_put_be16(msg, ATTR_MODEL_NAME); in wps_build_model_name() 53 wpabuf_put_be16(msg, 1); in wps_build_model_name() 54 wpabuf_put_u8(msg, ' '); in wps_build_model_name() [all …]
|
| /freebsd-12-stable/contrib/wpa/src/p2p/ |
| D | p2p_parse.c | 37 struct p2p_message *msg) in p2p_parse_attribute() argument 50 msg->capability = data; in p2p_parse_attribute() 61 msg->device_id = data; in p2p_parse_attribute() 63 MAC2STR(msg->device_id)); in p2p_parse_attribute() 71 msg->go_intent = data; in p2p_parse_attribute() 81 msg->status = data; in p2p_parse_attribute() 95 msg->listen_channel = data; in p2p_parse_attribute() 112 msg->operating_channel = data; in p2p_parse_attribute() 124 msg->channel_list = data; in p2p_parse_attribute() 125 msg->channel_list_len = len; in p2p_parse_attribute() [all …]
|
| D | p2p_pd.c | 444 static int p2ps_validate_pd_req(struct p2p_data *p2p, struct p2p_message *msg, in p2ps_validate_pd_req() argument 456 if ((_val) && !msg->_attr) { \ in p2ps_validate_pd_req() 475 if (msg->status && *msg->status != P2P_SC_SUCCESS_DEFERRED) in p2ps_validate_pd_req() 490 if (msg->feature_cap_len < sizeof(struct p2ps_feature_capab)) { in p2ps_validate_pd_req() 495 switch (*msg->conn_cap) { in p2ps_validate_pd_req() 532 if (msg->persistent_dev) { in p2ps_validate_pd_req() 535 if (os_memcmp(msg->persistent_dev, addr, ETH_ALEN) == 0) { in p2ps_validate_pd_req() 557 struct p2p_message msg; in p2p_process_prov_disc_req() local 578 if (p2p_parse(data, len, &msg)) in p2p_process_prov_disc_req() 583 MAC2STR(sa), msg.wps_config_methods, rx_freq); in p2p_process_prov_disc_req() [all …]
|
| /freebsd-12-stable/sys/dev/usb/net/ |
| D | if_urndis.c | 83 struct rndis_query_req *msg, uint16_t len, 86 struct rndis_set_req *msg, uint16_t len); 229 } msg; in urndis_attach() local 284 memset(msg.ibuf.eaddr, 0, sizeof(msg.ibuf.eaddr)); in urndis_attach() 287 &msg.hdr.query, sizeof(msg.hdr.query) + sizeof(msg.ibuf.eaddr), in urndis_attach() 303 msg.ibuf.filter = htole32(sc->sc_filter); in urndis_attach() 306 &msg.hdr.set, sizeof(msg.hdr.set) + sizeof(msg.ibuf.filter)); in urndis_attach() 533 const struct rndis_init_comp *msg; in urndis_ctrl_handle_init() local 535 msg = (const struct rndis_init_comp *)hdr; in urndis_ctrl_handle_init() 540 le32toh(msg->rm_len), in urndis_ctrl_handle_init() [all …]
|
| /freebsd-12-stable/sys/crypto/aesni/ |
| D | intel_sha256.c | 69 __m128i msg; in intel_sha256_step() local 94 msg = _mm_loadu_si128((const __m128i*) data); in intel_sha256_step() 95 msgtmp0 = _mm_shuffle_epi8(msg, shuf_mask); in intel_sha256_step() 96 msg = _mm_add_epi32(msgtmp0, in intel_sha256_step() 98 state1 = _mm_sha256rnds2_epu32(state1, state0, msg); in intel_sha256_step() 99 msg = _mm_shuffle_epi32(msg, 0x0E); in intel_sha256_step() 100 state0 = _mm_sha256rnds2_epu32(state0, state1, msg); in intel_sha256_step() 105 msg = _mm_add_epi32(msgtmp1, in intel_sha256_step() 107 state1 = _mm_sha256rnds2_epu32(state1, state0, msg); in intel_sha256_step() 108 msg = _mm_shuffle_epi32(msg, 0x0E); in intel_sha256_step() [all …]
|
| /freebsd-12-stable/sys/arm/broadcom/bcm2835/ |
| D | bcm2835_mbox.c | 63 #define MBOX_CHAN(msg) ((msg) & 0xf) argument 64 #define MBOX_DATA(msg) ((msg) & ~0xf) argument 87 int msg[BCM2835_MBOX_CHANS]; member 109 uint32_t msg; in bcm_mbox_read_msg() local 112 msg = mbox_read_4(sc, REG_READ); in bcm_mbox_read_msg() 113 dprintf("bcm_mbox_intr: raw data %08x\n", msg); in bcm_mbox_read_msg() 114 chan = MBOX_CHAN(msg); in bcm_mbox_read_msg() 116 data = MBOX_DATA(msg); in bcm_mbox_read_msg() 118 if (sc->msg[chan]) { in bcm_mbox_read_msg() 123 sc->msg[chan] = msg; in bcm_mbox_read_msg() [all …]
|
| D | bcm2835_cpufreq.c | 164 struct msg_get_clock_rate msg; in bcm2835_cpufreq_get_clock_rate() local 183 memset(&msg, 0, sizeof(msg)); in bcm2835_cpufreq_get_clock_rate() 184 msg.hdr.buf_size = sizeof(msg); in bcm2835_cpufreq_get_clock_rate() 185 msg.hdr.code = BCM2835_MBOX_CODE_REQ; in bcm2835_cpufreq_get_clock_rate() 186 msg.tag_hdr.tag = BCM2835_MBOX_TAG_GET_CLOCK_RATE; in bcm2835_cpufreq_get_clock_rate() 187 msg.tag_hdr.val_buf_size = sizeof(msg.body); in bcm2835_cpufreq_get_clock_rate() 188 msg.tag_hdr.val_len = sizeof(msg.body.req); in bcm2835_cpufreq_get_clock_rate() 189 msg.body.req.clock_id = clock_id; in bcm2835_cpufreq_get_clock_rate() 190 msg.end_tag = 0; in bcm2835_cpufreq_get_clock_rate() 193 err = bcm2835_mbox_property(&msg, sizeof(msg)); in bcm2835_cpufreq_get_clock_rate() [all …]
|
| /freebsd-12-stable/crypto/openssl/ssl/ |
| D | t1_trce.c | 24 # define ssl_trace_list(bio, indent, msg, msglen, value, table) \ argument 25 do_ssl_trace_list(bio, indent, msg, msglen, value, \ 41 const unsigned char *msg, size_t msglen, in do_ssl_trace_list() argument 49 val = msg[0]; in do_ssl_trace_list() 51 val = (val << 8) | msg[1]; in do_ssl_trace_list() 54 msg += vlen; in do_ssl_trace_list() 601 const unsigned char *msg, size_t msglen) in ssl_print_hex() argument 608 BIO_printf(bio, "%02X", msg[i]); in ssl_print_hex() 889 const unsigned char *msg = *msgin; in ssl_print_extensions() local 898 extslen = (msg[0] << 8) | msg[1]; in ssl_print_extensions() [all …]
|
| /freebsd-12-stable/sys/dev/mpt/ |
| D | mpt_debug.c | 363 mpt_print_reply_hdr(MSG_DEFAULT_REPLY *msg) in mpt_print_reply_hdr() argument 366 printf("%s Reply @ %p\n", mpt_ioc_function(msg->Function), msg); in mpt_print_reply_hdr() 367 printf("\tIOC Status %s\n", mpt_ioc_status(msg->IOCStatus)); in mpt_print_reply_hdr() 368 printf("\tIOCLogInfo 0x%08x\n", msg->IOCLogInfo); in mpt_print_reply_hdr() 369 printf("\tMsgLength 0x%02x\n", msg->MsgLength); in mpt_print_reply_hdr() 370 printf("\tMsgFlags 0x%02x\n", msg->MsgFlags); in mpt_print_reply_hdr() 371 printf("\tMsgContext 0x%08x\n", msg->MsgContext); in mpt_print_reply_hdr() 375 mpt_print_init_reply(MSG_IOC_INIT_REPLY *msg) in mpt_print_init_reply() argument 378 mpt_print_reply_hdr((MSG_DEFAULT_REPLY *)msg); in mpt_print_init_reply() 379 printf("\tWhoInit %s\n", mpt_who(msg->WhoInit)); in mpt_print_init_reply() [all …]
|
| /freebsd-12-stable/sys/contrib/ngatm/netnatm/msg/ |
| D | uni_msg.c | 21 print_alerting(struct uni_alerting *msg, struct unicx *cx) in print_alerting() argument 25 if(msg->connid.h.present & UNI_IE_PRESENT) in print_alerting() 26 uni_print_ie_internal(UNI_IE_CONNID, (union uni_ieall *)&msg->connid, cx); in print_alerting() 27 if(msg->epref.h.present & UNI_IE_PRESENT) in print_alerting() 28 uni_print_ie_internal(UNI_IE_EPREF, (union uni_ieall *)&msg->epref, cx); in print_alerting() 29 if(msg->notify.h.present & UNI_IE_PRESENT) in print_alerting() 30 uni_print_ie_internal(UNI_IE_NOTIFY, (union uni_ieall *)&msg->notify, cx); in print_alerting() 32 if(msg->git[i].h.present & UNI_IE_PRESENT) in print_alerting() 33 uni_print_ie_internal(UNI_IE_GIT, (union uni_ieall *)&msg->git[i], cx); in print_alerting() 34 if(msg->uu.h.present & UNI_IE_PRESENT) in print_alerting() [all …]
|
| D | privmsg.c | 44 uni_decode_head(struct uni_msg *msg, struct uni_all *out, in uni_decode_head() argument 52 if(uni_msg_len(msg) < 9) in uni_decode_head() 55 if(*msg->b_rptr++ != PNNI_PROTO) in uni_decode_head() 58 if(*msg->b_rptr++ != UNI_PROTO) in uni_decode_head() 61 if(*msg->b_rptr++ != 3) in uni_decode_head() 64 out->u.hdr.cref.flag = (*msg->b_rptr & 0x80) ? 1 : 0; in uni_decode_head() 65 out->u.hdr.cref.cref = (*msg->b_rptr++ & 0x7f) << 16; in uni_decode_head() 66 out->u.hdr.cref.cref |= *msg->b_rptr++ << 8; in uni_decode_head() 67 out->u.hdr.cref.cref |= *msg->b_rptr++; in uni_decode_head() 69 out->mtype = *msg->b_rptr++; in uni_decode_head() [all …]
|
| /freebsd-12-stable/crypto/heimdal/lib/hx509/ |
| D | error.c | 45 char *msg; member 49 free_error_string(hx509_error msg) in free_error_string() argument 51 while(msg) { in free_error_string() 52 hx509_error m2 = msg->next; in free_error_string() 53 free(msg->msg); in free_error_string() 54 free(msg); in free_error_string() 55 msg = m2; in free_error_string() 94 hx509_error msg; in hx509_set_error_stringv() local 99 msg = calloc(1, sizeof(*msg)); in hx509_set_error_stringv() 100 if (msg == NULL) { in hx509_set_error_stringv() [all …]
|
| /freebsd-12-stable/contrib/wpa/src/radius/ |
| D | radius.c | 52 struct radius_hdr * radius_msg_get_hdr(struct radius_msg *msg) in radius_msg_get_hdr() argument 54 return msg->hdr; in radius_msg_get_hdr() 58 struct wpabuf * radius_msg_get_buf(struct radius_msg *msg) in radius_msg_get_buf() argument 60 return msg->buf; in radius_msg_get_buf() 65 radius_get_attr_hdr(struct radius_msg *msg, int idx) in radius_get_attr_hdr() argument 68 (wpabuf_mhead_u8(msg->buf) + msg->attr_pos[idx]); in radius_get_attr_hdr() 72 static void radius_msg_set_hdr(struct radius_msg *msg, u8 code, u8 identifier) in radius_msg_set_hdr() argument 74 msg->hdr->code = code; in radius_msg_set_hdr() 75 msg->hdr->identifier = identifier; in radius_msg_set_hdr() 79 static int radius_msg_initialize(struct radius_msg *msg) in radius_msg_initialize() argument [all …]
|
| /freebsd-12-stable/usr.sbin/rpc.lockd/ |
| D | kern.c | 127 LOCKD_MSG msg; in client_request() local 176 if ((nr = read(devfd, &msg, sizeof(msg))) == sizeof(msg)) { in client_request() 178 show(&msg); in client_request() 180 if (msg.lm_version != LOCKD_MSG_VERSION) { in client_request() 182 "unknown msg type: %d", msg.lm_version); in client_request() 188 switch (msg.lm_fl.l_type) { in client_request() 191 if (msg.lm_getlk) in client_request() 192 ret = test_request(&msg); in client_request() 194 ret = lock_request(&msg); in client_request() 197 ret = unlock_request(&msg); in client_request() [all …]
|
| /freebsd-12-stable/sys/dev/pst/ |
| D | pst-iop.c | 208 struct i2o_exec_iop_reset_message *msg; in iop_reset() local 213 msg = (struct i2o_exec_iop_reset_message *)(sc->ibase + mfa); in iop_reset() 214 bzero(msg, sizeof(struct i2o_exec_iop_reset_message)); in iop_reset() 215 msg->version_offset = 0x1; in iop_reset() 216 msg->message_flags = 0x0; in iop_reset() 217 msg->message_size = sizeof(struct i2o_exec_iop_reset_message) >> 2; in iop_reset() 218 msg->target_address = I2O_TID_IOP; in iop_reset() 219 msg->initiator_address = I2O_TID_HOST; in iop_reset() 220 msg->function = I2O_EXEC_IOP_RESET; in iop_reset() 221 msg->status_word_low_addr = vtophys(&reply); in iop_reset() [all …]
|
| /freebsd-12-stable/contrib/unbound/services/cache/ |
| D | dns.c | 291 struct dns_msg* msg, time_t now) in addr_to_additional() argument 293 if((msg->rep->rrsets[msg->rep->rrset_count] = in addr_to_additional() 295 msg->rep->ar_numrrsets++; in addr_to_additional() 296 msg->rep->rrset_count++; in addr_to_additional() 329 struct dns_msg** msg) in find_add_addrs() argument 342 if(msg) in find_add_addrs() 343 addr_to_additional(akey, region, *msg, now); in find_add_addrs() 362 if(msg) in find_add_addrs() 363 addr_to_additional(akey, region, *msg, now); in find_add_addrs() 441 struct dns_msg* msg, struct delegpt* dp, time_t now) in find_add_ds() argument [all …]
|
| /freebsd-12-stable/sys/contrib/ngatm/netnatm/saal/ |
| D | saal_sscop.c | 168 struct sscop_msg *msg = NULL, *m; in QFIND() local 171 msg = m; in QFIND() 175 return msg; in QFIND() 644 struct sscop_msg *msg; in sscop_aasig() local 656 MSG_ALLOC(msg); in sscop_aasig() 657 if (msg == NULL) { in sscop_aasig() 666 msg->m = m; in sscop_aasig() 667 msg->rexmit = arg; in sscop_aasig() 668 sscop_signal(sscop, SIG_ESTAB_REQ, msg); in sscop_aasig() 672 msg->m = m; in sscop_aasig() [all …]
|
| /freebsd-12-stable/sys/contrib/ngatm/netnatm/ |
| D | genfiles | 10 awk -f ${SRC}msg/parseie.awk -f ${SRC}msg/geniec.awk ${SRC}msg/ie.def >${DST}msg/uni_ietab.h 11 awk -f ${SRC}msg/parseie.awk -f ${SRC}msg/genieh.awk ${SRC}msg/ie.def >${DST}msg/uni_ie.h 12 awk -f ${SRC}msg/parsemsg.awk -f ${SRC}msg/genmsgc.awk ${SRC}msg/msg.def >${DST}msg/uni_msg.c 13 awk -f ${SRC}msg/parsemsg.awk -f ${SRC}msg/genmsgh.awk ${SRC}msg/msg.def >${DST}msg/uni_msg.h 14 awk -f ${SRC}msg/parsemsg.awk -f ${SRC}sig/genmsgcpyh.awk ${SRC}msg/msg.def >${DST}sig/unimsgcpy.h 15 awk -f ${SRC}msg/parsemsg.awk -f ${SRC}sig/genmsgcpyc.awk ${SRC}msg/msg.def >${DST}sig/sig_unimsgcp…
|
| /freebsd-12-stable/contrib/ofed/librdmacm/examples/ |
| D | rcopy.c | 121 static size_t _recv(int rs, char *msg, size_t len) in _recv() argument 126 ret = rrecv(rs, msg + offset, len - offset, 0); in _recv() 151 static int msg_get_resp(int rs, struct msg_hdr *msg, uint8_t cmd) in msg_get_resp() argument 155 ret = msg_recv_hdr(rs, msg); in msg_get_resp() 156 if (ret != sizeof *msg) in msg_get_resp() 159 if ((msg->len != sizeof *msg) || (msg->command != (cmd | CMD_RESP))) { in msg_get_resp() 161 msg->len, msg->command, cmd | CMD_RESP); in msg_get_resp() 165 return msg->data; in msg_get_resp() 168 static void msg_send_resp(int rs, struct msg_hdr *msg, uint32_t status) in msg_send_resp() argument 173 resp.command = msg->command | CMD_RESP; in msg_send_resp() [all …]
|