Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 1843) sorted by relevance

12345678910>>...74

/freebsd/contrib/ntp/libntp/lib/isc/win32/
H A Dstrerror.c63 char *msg; in isc__strerror()
74 msg = NTstrerror(num, &freebuf); in isc__strerror()
75 if (msg != NULL) in isc__strerror()
76 snprintf(buf, size, "%s", msg); in isc__strerror()
79 if(freebuf && msg != NULL) { in isc__strerror()
80 LocalFree(msg); in isc__strerror()
181 char *msg; in GetWSAErrorMessage()
183 msg = NTstrerror(errval, &bfreebuf); in GetWSAErrorMessage()
184 fprintf(stderr, "%s: %s\n", errmsg, msg); in GetWSAErrorMessage()
186 LocalFree(msg); in GetWSAErrorMessage()
61 char *msg; isc__strerror() local
147 char *msg; NTperror() local
164 char *msg; GetWSAErrorMessage() local
378 char *msg; GetCryptErrorMessage() local
[all...]
/freebsd/contrib/lib9p/
H A Dpack.c73 l9p_iov_io(struct l9p_message *msg, void *buffer, size_t len) in l9p_iov_io() argument
78 assert(msg != NULL); in l9p_iov_io()
83 if (msg->lm_cursor_iov >= msg->lm_niov) in l9p_iov_io()
89 size_t idx = msg->lm_cursor_iov; in l9p_iov_io()
90 size_t space = msg->lm_iov[idx].iov_len - msg->lm_cursor_offset; in l9p_iov_io()
93 if (msg->lm_mode == L9P_PACK) { in l9p_iov_io()
94 memcpy((char *)msg->lm_iov[idx].iov_base + in l9p_iov_io()
95 msg->lm_cursor_offset, (char *)buffer + done, in l9p_iov_io()
99 if (msg->lm_mode == L9P_UNPACK) { in l9p_iov_io()
101 (char *)msg->lm_iov[idx].iov_base + in l9p_iov_io()
[all …]
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress.gen.c47 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 …]
H A Dregress.gen.h12 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/contrib/libevent/test/
H A Dregress.gen.c47 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 …]
H A Dregress.gen.h12 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/contrib/wpa/src/wps/
H A Dwps_attr_build.c21 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 …]
H A Dwps_dev_attr.c16 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/contrib/wpa/src/p2p/
H A Dp2p_parse.c37 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()
118 msg->operating_channel = data; in p2p_parse_attribute()
136 msg->channel_list = data; in p2p_parse_attribute()
137 msg->channel_list_len = len; in p2p_parse_attribute()
[all …]
H A Dp2p_pd.c456 static int p2ps_validate_pd_req(struct p2p_data *p2p, struct p2p_message *msg, in p2ps_validate_pd_req() argument
468 if ((_val) && !msg->_attr) { \ in p2ps_validate_pd_req()
487 if (msg->status && *msg->status != P2P_SC_SUCCESS_DEFERRED) in p2ps_validate_pd_req()
502 if (msg->feature_cap_len < sizeof(struct p2ps_feature_capab)) { in p2ps_validate_pd_req()
507 switch (*msg->conn_cap) { in p2ps_validate_pd_req()
544 if (msg->persistent_dev) { in p2ps_validate_pd_req()
547 if (ether_addr_equal(msg->persistent_dev, addr)) { in p2ps_validate_pd_req()
569 struct p2p_message msg; in p2p_process_prov_disc_req() local
590 if (p2p_parse(data, len, &msg)) in p2p_process_prov_disc_req()
595 MAC2STR(sa), msg.wps_config_methods, rx_freq); in p2p_process_prov_disc_req()
[all …]
/freebsd/sys/crypto/aesni/
H A Dintel_sha256.c67 __m128i msg; in intel_sha256_step() local
92 msg = _mm_loadu_si128((const __m128i*) data); in intel_sha256_step()
93 msgtmp0 = _mm_shuffle_epi8(msg, shuf_mask); in intel_sha256_step()
94 msg = _mm_add_epi32(msgtmp0, in intel_sha256_step()
96 state1 = _mm_sha256rnds2_epu32(state1, state0, msg); in intel_sha256_step()
97 msg = _mm_shuffle_epi32(msg, 0x0E); in intel_sha256_step()
98 state0 = _mm_sha256rnds2_epu32(state0, state1, msg); in intel_sha256_step()
103 msg = _mm_add_epi32(msgtmp1, in intel_sha256_step()
105 state1 = _mm_sha256rnds2_epu32(state1, state0, msg); in intel_sha256_step()
106 msg = _mm_shuffle_epi32(msg, 0x0E); in intel_sha256_step()
[all …]
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_mbox.c61 #define MBOX_CHAN(msg) ((msg) & 0xf) argument
62 #define MBOX_DATA(msg) ((msg) & ~0xf) argument
85 int msg[BCM2835_MBOX_CHANS]; member
107 uint32_t msg; in bcm_mbox_read_msg() local
110 msg = mbox_read_4(sc, REG_READ); in bcm_mbox_read_msg()
111 dprintf("bcm_mbox_intr: raw data %08x\n", msg); in bcm_mbox_read_msg()
112 chan = MBOX_CHAN(msg); in bcm_mbox_read_msg()
114 data = MBOX_DATA(msg); in bcm_mbox_read_msg()
116 if (sc->msg[chan]) { in bcm_mbox_read_msg()
121 sc->msg[chan] = msg; in bcm_mbox_read_msg()
[all …]
/freebsd/sys/dev/usb/net/
H A Dif_urndis.c80 struct rndis_query_req *msg, uint16_t len,
83 struct rndis_set_req *msg, uint16_t len);
225 } msg; in urndis_attach() local
280 memset(msg.eaddr.addr, 0, sizeof(msg.eaddr.addr)); in urndis_attach()
283 (struct rndis_query_req *)&msg.eaddr, sizeof(msg.eaddr), in urndis_attach()
299 msg.filter.filter = htole32(sc->sc_filter); in urndis_attach()
302 (struct rndis_set_req *)&msg.filter, sizeof(msg.filter)); in urndis_attach()
529 const struct rndis_init_comp *msg; in urndis_ctrl_handle_init() local
531 msg = (const struct rndis_init_comp *)hdr; in urndis_ctrl_handle_init()
536 le32toh(msg->rm_len), in urndis_ctrl_handle_init()
[all …]
/freebsd/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dall-syslog.sh18 msg="eid=${ZEVENT_EID} class=${ZEVENT_SUBCLASS}"
21 [ -n "${ZEVENT_POOL_GUID}" ] && msg="${msg} pool_guid=${ZEVENT_POOL_GUID}"
22 [ -n "${ZEVENT_VDEV_GUID}" ] && msg="${msg} vdev_guid=${ZEVENT_VDEV_GUID}"
24 [ -n "${ZEVENT_POOL}" ] && msg="${msg} pool='${ZEVENT_POOL}'"
25 [ -n "${ZEVENT_VDEV_PATH}" ] && msg="${msg} vdev=${ZEVENT_VDEV_PATH##*/}"
30 msg="${msg} pool_state=${ZEVENT_POOL_STATE_STR}"
33 [ -n "${ZEVENT_VDEV_STATE_STR}" ] && msg="${msg} vdev_state=${ZEVENT_VDEV_STATE_STR}"
34 [ -n "${ZEVENT_CKSUM_ALGORITHM}" ] && msg="${msg} algorithm=${ZEVENT_CKSUM_ALGORITHM}"
35 [ -n "${ZEVENT_ZIO_SIZE}" ] && msg="${msg} size=${ZEVENT_ZIO_SIZE}"
36 [ -n "${ZEVENT_ZIO_OFFSET}" ] && msg="${msg} offset=${ZEVENT_ZIO_OFFSET}"
[all …]
/freebsd/crypto/openssl/ssl/
H A Dt1_trce.c27 #define ssl_trace_list(bio, indent, msg, msglen, value, table) \ argument
28 do_ssl_trace_list(bio, indent, msg, msglen, value, \
44 const unsigned char *msg, size_t msglen, in do_ssl_trace_list() argument
52 val = msg[0]; in do_ssl_trace_list()
54 val = (val << 8) | msg[1]; in do_ssl_trace_list()
57 msg += vlen; in do_ssl_trace_list()
665 const unsigned char *msg, size_t msglen) in ssl_print_hex() argument
672 BIO_printf(bio, "%02X", msg[i]); in ssl_print_hex()
972 const unsigned char *msg = *msgin; in ssl_print_extensions() local
981 extslen = (msg[0] << 8) | msg[1]; in ssl_print_extensions()
[all …]
/freebsd/sys/dev/mpt/
H A Dmpt_debug.c361 mpt_print_reply_hdr(MSG_DEFAULT_REPLY *msg) in mpt_print_reply_hdr() argument
364 printf("%s Reply @ %p\n", mpt_ioc_function(msg->Function), msg); in mpt_print_reply_hdr()
365 printf("\tIOC Status %s\n", mpt_ioc_status(msg->IOCStatus)); in mpt_print_reply_hdr()
366 printf("\tIOCLogInfo 0x%08x\n", msg->IOCLogInfo); in mpt_print_reply_hdr()
367 printf("\tMsgLength 0x%02x\n", msg->MsgLength); in mpt_print_reply_hdr()
368 printf("\tMsgFlags 0x%02x\n", msg->MsgFlags); in mpt_print_reply_hdr()
369 printf("\tMsgContext 0x%08x\n", msg->MsgContext); in mpt_print_reply_hdr()
373 mpt_print_init_reply(MSG_IOC_INIT_REPLY *msg) in mpt_print_init_reply() argument
376 mpt_print_reply_hdr((MSG_DEFAULT_REPLY *)msg); in mpt_print_init_reply()
377 printf("\tWhoInit %s\n", mpt_who(msg->WhoInit)); in mpt_print_init_reply()
[all …]
/freebsd/crypto/heimdal/lib/hx509/
H A Derror.c45 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/crypto/openssl/crypto/cmp/
H A Dcmp_msg.c28 OSSL_CMP_MSG *msg = NULL; in OSSL_CMP_MSG_new() local
30 msg = (OSSL_CMP_MSG *)ASN1_item_new_ex(ASN1_ITEM_rptr(OSSL_CMP_MSG), in OSSL_CMP_MSG_new()
32 if (!ossl_cmp_msg_set0_libctx(msg, libctx, propq)) { in OSSL_CMP_MSG_new()
33 OSSL_CMP_MSG_free(msg); in OSSL_CMP_MSG_new()
34 msg = NULL; in OSSL_CMP_MSG_new()
36 return msg; in OSSL_CMP_MSG_new()
39 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg) in OSSL_CMP_MSG_free() argument
41 ASN1_item_free((ASN1_VALUE *)msg, ASN1_ITEM_rptr(OSSL_CMP_MSG)); in OSSL_CMP_MSG_free()
49 int ossl_cmp_msg_set0_libctx(OSSL_CMP_MSG *msg, OSSL_LIB_CTX *libctx, in ossl_cmp_msg_set0_libctx() argument
52 if (msg != NULL) { in ossl_cmp_msg_set0_libctx()
[all …]
/freebsd/contrib/wpa/src/radius/
H A Dradius.c52 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/usr.sbin/rpc.lockd/
H A Dkern.c125 LOCKD_MSG msg; in client_request() local
174 if ((nr = read(devfd, &msg, sizeof(msg))) == sizeof(msg)) { in client_request()
176 show(&msg); in client_request()
178 if (msg.lm_version != LOCKD_MSG_VERSION) { in client_request()
180 "unknown msg type: %d", msg.lm_version); in client_request()
186 switch (msg.lm_fl.l_type) { in client_request()
189 if (msg.lm_getlk) in client_request()
190 ret = test_request(&msg); in client_request()
192 ret = lock_request(&msg); in client_request()
195 ret = unlock_request(&msg); in client_request()
[all …]
/freebsd/contrib/dialog/samples/copifuncs/
H A Difpatch4 if (!strcasecmp(msg->key,"X-UUCP-From")) return 0;
5 if (!strcasecmp(msg->key,"X-Body-Start")) return 0;
6 if (!strncasecmp(msg->key,"X-FTN-",6)) return 0;
7 - if (!strcasecmp(msg->key,"Path")) return isftnpath(msg->val)?0:1;
8 + if (!strcasecmp(msg->key,"Path"))
13 + return isftnpath(msg->val)?0:1;
16 if (!strcasecmp(msg->key,"Newsgroups")) return newsmode?0:2;
17 if (!strcasecmp(msg->key,"Xref")) return 0;
18 if (!strcasecmp(msg->key,"Return-Receipt-To")) return 1;
19 if (!strcasecmp(msg->key,"Received")) return newsmode?0:2;
[all …]
/freebsd/sys/dev/pst/
H A Dpst-iop.c205 struct i2o_exec_iop_reset_message *msg; in iop_reset() local
210 msg = (struct i2o_exec_iop_reset_message *)(sc->ibase + mfa); in iop_reset()
211 bzero(msg, sizeof(struct i2o_exec_iop_reset_message)); in iop_reset()
212 msg->version_offset = 0x1; in iop_reset()
213 msg->message_flags = 0x0; in iop_reset()
214 msg->message_size = sizeof(struct i2o_exec_iop_reset_message) >> 2; in iop_reset()
215 msg->target_address = I2O_TID_IOP; in iop_reset()
216 msg->initiator_address = I2O_TID_HOST; in iop_reset()
217 msg->function = I2O_EXEC_IOP_RESET; in iop_reset()
218 msg->status_word_low_addr = vtophys(&reply); in iop_reset()
[all …]
/freebsd/crypto/libecc/include/libecc/utils/
H A Ddbg_sig.h28 #define dbg_buf_print(msg, ...) do {\ argument
29 buf_print(EC_SIG_ALG " " msg, __VA_ARGS__);\
31 #define dbg_nn_print(msg, ...) do {\ argument
32 nn_print(EC_SIG_ALG " " msg, __VA_ARGS__);\
34 #define dbg_ec_point_print(msg, ...) do {\ argument
35 ec_point_print(EC_SIG_ALG " " msg, __VA_ARGS__);\
37 #define dbg_ec_montgomery_point_print(msg, ...) do {\ argument
38 ec_montgomery_point_print(EC_SIG_ALG " " msg, __VA_ARGS__);\
40 #define dbg_ec_edwards_point_print(msg, ...) do {\ argument
41 ec_edwards_point_print(EC_SIG_ALG " " msg, __VA_ARGS__);\
[all …]
/freebsd/contrib/unbound/services/cache/
H A Ddns.c2 * services/cache/dns.c - Cache services for DNS using msg and rrset caches.
178 verbose(VERB_ALGO, "TTL 0: dropped msg from cache"); in dns_cache_store_msg()
180 /* if the message is in the cache, remove that msg, in dns_cache_store_msg()
196 /* store msg in the cache */ in dns_cache_store_msg()
271 struct dns_msg* msg, time_t now) in addr_to_additional() argument
273 if((msg->rep->rrsets[msg->rep->rrset_count] = in addr_to_additional()
275 msg->rep->ar_numrrsets++; in addr_to_additional()
276 msg->rep->rrset_count++; in addr_to_additional()
309 struct dns_msg** msg) in find_add_addrs() argument
435 find_add_ds(struct module_env * env,struct regional * region,struct dns_msg * msg,struct delegpt * dp,time_t now) find_add_ds() argument
470 struct dns_msg* msg = (struct dns_msg*)regional_alloc(region, dns_msg_create() local
500 dns_msg_authadd(struct dns_msg * msg,struct regional * region,struct ub_packed_rrset_key * rrset,time_t now) dns_msg_authadd() argument
511 dns_msg_ansadd(struct dns_msg * msg,struct regional * region,struct ub_packed_rrset_key * rrset,time_t now) dns_msg_ansadd() argument
524 dns_cache_find_delegation(struct module_env * env,uint8_t * qname,size_t qnamelen,uint16_t qtype,uint16_t qclass,struct regional * region,struct dns_msg ** msg,time_t now,int noexpiredabove,uint8_t * expiretop,size_t expiretoplen) dns_cache_find_delegation() argument
575 struct dns_msg* msg = (struct dns_msg*)regional_alloc(region, gen_dns_msg() local
605 struct dns_msg* msg; tomsg() local
701 struct dns_msg* msg; rrset_msg() local
733 struct dns_msg* msg; synth_dname_msg() local
830 struct dns_msg* msg = NULL; fill_any() local
912 struct dns_msg* msg = tomsg(env, &key->key, data, region, now, 0, dns_cache_lookup() local
930 struct dns_msg* msg = synth_dname_msg(rrset, region, now, &k, dns_cache_lookup() local
973 struct dns_msg* msg = rrset_msg(rrset, region, now, &k); dns_cache_lookup() local
1000 struct dns_msg* msg = rrset_msg(rrset, region, now, &k); dns_cache_lookup() local
1029 struct dns_msg* msg; dns_cache_lookup() local
1147 struct msgreply_entry* msg; dns_cache_prefetch_adjust() local
[all...]
/freebsd/contrib/ofed/librdmacm/examples/
H A Drcopy.c121 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 …]

12345678910>>...74