/freebsd/contrib/lib9p/ |
H A D | pack.c | 63 * using msg to track position and direction within request/response. 69 * the same (and not-reset) msg and len > 0 will also return -1. 73 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() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/crypto/ |
H A D | aes_ccm_test.txt | 9 msg: 20 msg: 35 31 msg: d10989f2c52e94ad 42 msg: 25b12e28ac0ef6ead0226a3b2288c800 53 msg: fee62fde973fe025ad6b322dcdf3c63fc7 64 msg: c08f085e6a9e0ef3636280c11ecfadf0c1e72919ffc17eaf 75 msg: 857b2f6cd608c9cea0246c740caa4ca19c5f1c7d71cb9273f0d8c8bb65b70a 86 msg: d6f6a9a24db6a7a6176d4362639c4fd77f70f3e089dd940086e12a9becbaf97f82 97 msg: d902deeab175c008329a33bfaccd5c0eb3a6a152a1510e7db04fa0aff7ce4288530db6a80fa7fea582aa7d46d7d56e… 108 msg: 2c763b9ec84903bcbb8aec15e678a3a955e4870edbf62d9d3c81c4f9ed6154877875779ca33cce8f73a55ca7af1d8d… [all …]
|
H A D | aes_gcm_test.txt | 9 msg: 001d0c231287c1182784554ca3a21908 20 msg: 001d0c231287c1182784554ca3a21908 31 msg: 2035af313d1346ab00154fea78322105 42 msg: 53 msg: 35 64 msg: d10989f2c52e94ad 75 msg: 4dcc1485365866e25ac3f2ca6aba97 86 msg: 25b12e28ac0ef6ead0226a3b2288c800 97 msg: fee62fde973fe025ad6b322dcdf3c63fc7 108 msg: c08f085e6a9e0ef3636280c11ecfadf0c1e72919ffc17eaf [all …]
|
H A D | aes_ccm_test.json | 63 "msg" : "", string 77 "msg" : "35", string 91 "msg" : "d10989f2c52e94ad", string 105 "msg" : "25b12e28ac0ef6ead0226a3b2288c800", string 119 "msg" : "fee62fde973fe025ad6b322dcdf3c63fc7", string 133 "msg" : "c08f085e6a9e0ef3636280c11ecfadf0c1e72919ffc17eaf", string 147 "msg" : "857b2f6cd608c9cea0246c740caa4ca19c5f1c7d71cb9273f0d8c8bb65b70a", string 161 "msg" : "d6f6a9a24db6a7a6176d4362639c4fd77f70f3e089dd940086e12a9becbaf97f82", string 175 …"msg" : "d902deeab175c008329a33bfaccd5c0eb3a6a152a1510e7db04fa0aff7ce4288530db6a80fa7fea582aa7d46d… string 189 …"msg" : "2c763b9ec84903bcbb8aec15e678a3a955e4870edbf62d9d3c81c4f9ed6154877875779ca33cce8f73a55ca7a… string [all …]
|
H A D | aes_gcm_test.json | 69 "msg" : "001d0c231287c1182784554ca3a21908", string 83 "msg" : "001d0c231287c1182784554ca3a21908", string 97 "msg" : "2035af313d1346ab00154fea78322105", string 111 "msg" : "", string 125 "msg" : "35", string 139 "msg" : "d10989f2c52e94ad", string 153 "msg" : "4dcc1485365866e25ac3f2ca6aba97", string 167 "msg" : "25b12e28ac0ef6ead0226a3b2288c800", string 181 "msg" : "fee62fde973fe025ad6b322dcdf3c63fc7", string 195 "msg" : "c08f085e6a9e0ef3636280c11ecfadf0c1e72919ffc17eaf", string [all …]
|
/freebsd/contrib/ntp/sntp/libevent/test/ |
H A D | regress.gen.c | 32 * Implementation of msg 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() [all …]
|
/freebsd/contrib/libevent/test/ |
H A D | regress.gen.c | 32 * Implementation of msg 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() [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A 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 …]
|
H A 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/sys/dev/usb/net/ |
H A D | if_urndis.c | 80 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/arm/broadcom/bcm2835/ |
H A D | bcm2835_mbox.c | 61 #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/contrib/wpa/src/p2p/ |
H A 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() 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 D | p2p_pd.c | 456 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() 495 * backward compatible, therefore we allow processing of msg.feature_cap in p2ps_validate_pd_req() 497 * Note 2: Verification of msg.feature_cap_len below has to be changed 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 [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/win32/ |
H A D | strerror.c | 63 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/sys/crypto/aesni/ |
H A D | intel_sha256.c | 67 __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/crypto/openssl/crypto/cmp/ |
H A D | cmp_msg.c | 25 OSSL_CMP_MSG *msg = NULL; in OSSL_CMP_MSG_new() local 27 msg = (OSSL_CMP_MSG *)ASN1_item_new_ex(ASN1_ITEM_rptr(OSSL_CMP_MSG), in OSSL_CMP_MSG_new() 29 if (!ossl_cmp_msg_set0_libctx(msg, libctx, propq)) { in OSSL_CMP_MSG_new() 30 OSSL_CMP_MSG_free(msg); in OSSL_CMP_MSG_new() 31 msg = NULL; in OSSL_CMP_MSG_new() 33 return msg; in OSSL_CMP_MSG_new() 36 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg) in OSSL_CMP_MSG_free() argument 38 ASN1_item_free((ASN1_VALUE *)msg, ASN1_ITEM_rptr(OSSL_CMP_MSG)); in OSSL_CMP_MSG_free() 46 int ossl_cmp_msg_set0_libctx(OSSL_CMP_MSG *msg, OSSL_LIB_CTX *libctx, in ossl_cmp_msg_set0_libctx() argument 49 if (msg != NULL) { in ossl_cmp_msg_set0_libctx() [all …]
|
/freebsd/tests/sys/netlink/ |
H A D | test_rtnl_ifaddr.py | 47 msg = NetlinkIfaMessage(self.helper, NlRtMsgType.RTM_GETADDR.value) 48 msg.set_request() 49 self.write_message(msg) 52 for rx_msg in self.read_msg_list(msg.nl_hdr.nlmsg_seq, NlRtMsgType.RTM_NEWADDR): 75 msg = NetlinkIfaMessage(self.helper, NlRtMsgType.RTM_GETADDR.value) 76 msg.set_request() 77 msg.base_hdr.ifa_index = socket.if_nametoindex(epair_ifname) 78 self.write_message(msg) 81 for rx_msg in self.read_msg_list(msg.nl_hdr.nlmsg_seq, NlRtMsgType.RTM_NEWADDR): 114 msg = NetlinkIfaMessage(self.helper, NlRtMsgType.RTM_GETADDR.value) [all …]
|
H A D | test_rtnl_iface.py | 31 msg = NetlinkIflaMessage(self.helper, NlRtMsgType.RTM_GETLINK.value) 32 msg.nl_hdr.nlmsg_flags = ( 35 msg.add_nla(NlAttrStr(IflattrType.IFLA_IFNAME, ifname)) 36 self.write_message(msg) 39 if msg.nl_hdr.nlmsg_seq == rx_msg.nl_hdr.nlmsg_seq: 50 msg = NetlinkIflaMessage(self.helper, NlRtMsgType.RTM_GETLINK.value) 51 msg.nl_hdr.nlmsg_flags = ( 54 msg.add_nla(NlAttrStr(IflattrType.IFLA_IFNAME, "lo10")) 56 rx_msg = self.get_reply(msg) 62 msg = NetlinkIflaMessage(self.helper, NlRtMsgType.RTM_GETLINK.value) [all …]
|
H A D | test_rtnl_route.py | 33 msg = NetlinkRtMessage(self.helper, NlRtMsgType.RTM_NEWROUTE) 34 msg.set_request() 35 msg.add_nlflags([NlmNewFlags.NLM_F_CREATE]) 36 msg.base_hdr.rtm_family = socket.AF_INET6 37 msg.base_hdr.rtm_dst_len = 64 38 msg.add_nla(NlAttrIp(RtattrType.RTA_DST, "2001:db8:2::")) 39 msg.add_nla(NlAttrIp(RtattrType.RTA_GATEWAY, "fe80::1")) 40 msg.add_nla(NlAttrU32(RtattrType.RTA_OIF, epair_ifindex)) 42 rx_msg = self.get_reply(msg) 55 msg = NetlinkRtMessage(self.helper, NlRtMsgType.RTM_NEWROUTE) [all …]
|
/freebsd/contrib/dialog/samples/copifuncs/ |
H A D | ifpatch | 4 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/contrib/openzfs/cmd/zed/zed.d/ |
H A D | all-syslog.sh | 18 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/contrib/wpa/src/radius/ |
H A 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/usr.sbin/rpc.lockd/ |
H A D | kern.c | 124 LOCKD_MSG msg; in client_request() local 173 if ((nr = read(devfd, &msg, sizeof(msg))) == sizeof(msg)) { in client_request() 175 show(&msg); in client_request() 177 if (msg.lm_version != LOCKD_MSG_VERSION) { in client_request() 179 "unknown msg type: %d", msg.lm_version); in client_request() 185 switch (msg.lm_fl.l_type) { in client_request() 188 if (msg.lm_getlk) in client_request() 189 ret = test_request(&msg); in client_request() 191 ret = lock_request(&msg); in client_request() 194 ret = unlock_request(&msg); in client_request() [all …]
|
/freebsd/contrib/unbound/services/cache/ |
H A D | dns.c | 2 * 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 322 if(msg) in find_add_addrs() [all …]
|
/freebsd/sys/dev/pst/ |
H A D | pst-iop.c | 205 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 in iop_reset() 238 struct i2o_exec_init_outqueue_message *msg; iop_init_outqueue() local 294 struct i2o_exec_get_lct_message *msg; iop_get_lct() local 338 struct i2o_util_get_param_message *msg; iop_get_util_params() local 402 struct i2o_basic_message *msg = (struct i2o_basic_message *)(sc->ibase+mfa); iop_free_mfa() local 426 iop_queue_wait_msg(struct iop_softc * sc,int mfa,struct i2o_basic_message * msg) iop_queue_wait_msg() argument 466 iop_create_sgl(struct i2o_basic_message * msg,caddr_t data,int count,int dir) iop_create_sgl() argument [all...] |