/freebsd-11-stable/sys/contrib/ngatm/netnatm/msg/ |
H A D | privmsg.c | 117 u_int ielen; local 126 if (uni_decode_ie_hdr(&ietype, &hdr, msg, cx, &ielen)) { 128 * Short header. Set the ielen to an impossible size. 132 ielen = 0xffffffff; 144 if (ielen > uni_msg_len(msg)) 147 msg->b_rptr += ielen; 155 if (ielen > iedecl->maxlen - 4 || ielen > uni_msg_len(msg)) { 166 if (ielen > iedecl->maxlen - 4) 167 ielen [all...] |
H A D | uni_ie.c | 65 int uni_ie_decode_##Coding##_##IE(struct uni_ie_##IE *ie, struct uni_msg *msg, u_int ielen, struct unicx *cx) 133 u_int ielen; \ 140 ielen = msg->b_wptr - msg->b_rptr - 2; 143 u_int ielen; \ 150 ielen = msg->b_wptr - msg->b_rptr - 2; 153 (M)->b_buf[ielen + 0] = \ 154 (((M)->b_wptr - (M)->b_rptr) - ielen - 2) >> 8; \ 155 (M)->b_buf[ielen + 1] = \ 156 (((M)->b_wptr - (M)->b_rptr) - ielen - 2) >> 0; \ 167 if (ielen 530 uni_decode_ie_hdr(enum uni_ietype *ietype, struct uni_iehdr *hdr, struct uni_msg *msg, struct unicx *cx, u_int *ielen) argument 596 uni_decode_ie_body(enum uni_ietype ietype, union uni_ieall *ie, struct uni_msg *msg, u_int ielen, struct unicx *cx) argument 1424 decode_cause(struct uni_ie_cause *ie, struct uni_msg *msg, u_int ielen, struct unicx *cx, const struct causetab *tab1, const struct causetab *tab2) argument 2232 decode_addr(struct uni_addr *addr, u_int ielen, struct uni_msg *msg, u_int plan) argument 2261 decode_subaddr(struct uni_subaddr *addr, u_int ielen, struct uni_msg *msg, u_int type) argument 3108 decode_aal_1(struct uni_ie_aal *ie, struct uni_msg *msg, u_int ielen) argument 3186 decode_aal_4(struct uni_ie_aal *ie, struct uni_msg *msg, u_int ielen) argument 3246 decode_aal_5(struct uni_ie_aal *ie, struct uni_msg *msg, u_int ielen) argument 3295 decode_aal_user(struct uni_ie_aal *ie, struct uni_msg *msg, u_int ielen) argument 3630 decode_traffic_common(struct uni_xtraffic *ie, struct uni_msg *msg, u_int ielen, u_int *present) argument [all...] |
H A D | uni_msg.c | 110 enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, 123 if(uni_decode_ie_body(UNI_IE_CONNID, (union uni_ieall *)&out->connid, msg, ielen, cx)) 131 if(uni_decode_ie_body(UNI_IE_EPREF, (union uni_ieall *)&out->epref, msg, ielen, cx)) 139 if(uni_decode_ie_body(UNI_IE_NOTIFY, (union uni_ieall *)&out->notify, msg, ielen, cx)) 149 if(uni_decode_ie_body(UNI_IE_GIT, (union uni_ieall *)&out->git[i], msg, ielen, cx)) 161 if(uni_decode_ie_body(UNI_IE_UU, (union uni_ieall *)&out->uu, msg, ielen, cx)) 171 if(uni_decode_ie_body(UNI_IE_REPORT, (union uni_ieall *)&out->report, msg, ielen, cx)) 179 if(uni_decode_ie_body(UNI_IE_UNREC, (union uni_ieall *)&out->unrec, msg, ielen, cx)) 256 enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, 265 if(uni_decode_ie_body(UNI_IE_CONNID, (union uni_ieall *)&out->connid, msg, ielen, c 109 decode_alerting(struct uni_alerting *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 255 decode_call_proc(struct uni_call_proc *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 471 decode_connect(struct uni_connect *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 694 decode_connect_ack(struct uni_connect_ack *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 824 decode_release(struct uni_release *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 998 decode_release_compl(struct uni_release_compl *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 1373 decode_setup(struct uni_setup *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 1774 decode_status(struct uni_status *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 1877 decode_status_enq(struct uni_status_enq *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 1962 decode_notify(struct uni_notify *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 2055 decode_restart(struct uni_restart *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 2148 decode_restart_ack(struct uni_restart_ack *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 2388 decode_add_party(struct uni_add_party *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 2715 decode_add_party_ack(struct uni_add_party_ack *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 2905 decode_party_alerting(struct uni_party_alerting *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 3054 decode_add_party_rej(struct uni_add_party_rej *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 3210 decode_drop_party(struct uni_drop_party *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 3358 decode_drop_party_ack(struct uni_drop_party_ack *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 3521 decode_leaf_setup_req(struct uni_leaf_setup_req *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 3694 decode_leaf_setup_fail(struct uni_leaf_setup_fail *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 3835 decode_cobisetup(struct uni_cobisetup *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 3970 decode_facility(struct uni_facility *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 4113 decode_modify_req(struct uni_modify_req *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 4256 decode_modify_ack(struct uni_modify_ack *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 4385 decode_modify_rej(struct uni_modify_rej *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 4506 decode_conn_avail(struct uni_conn_avail *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument 4607 decode_unknown(struct uni_unknown *out, struct uni_msg *msg, enum uni_ietype ie, struct uni_iehdr *hdr, u_int ielen, struct unicx *cx) argument [all...] |
/freebsd-11-stable/tools/tools/net80211/wlaninject/ |
H A D | wlaninject.c | 395 int ielen; local 397 ielen = strlen(str)/2; 398 if (ielen < 1 || (strlen(str) % 2)) { 404 while (ielen) { 419 ielen--; 427 *ie++ = (unsigned char) ielen;
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | ieee802_11_ht.c | 318 u8 ielen = data[1]; local 320 if (ielen > start + len - data - 2) { 332 for (i = 0; i < ielen - 1; i++) { 347 data += 2 + ielen;
|
H A D | drv_callbacks.c | 113 size_t ielen; local 142 ielen = elems.wps_ie_len + 2; 146 ielen = elems.rsn_ie_len + 2; 150 ielen = elems.wpa_ie_len + 2; 155 ielen = elems.osen_len + 2; 160 ielen = 0; 264 if (ie == NULL || ielen == 0) { 285 wps = ieee802_11_vendor_ie_concat(ie, ielen, 310 ie, ielen, 317 wpa_hexdump(MSG_DEBUG, "IE", ie, ielen); [all...] |
H A D | beacon.c | 293 size_t ielen; local 295 ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ielen); 296 if (ie == NULL || ielen > len) 299 os_memcpy(eid, ie, ielen); 300 return eid + ielen;
|
H A D | hostapd.h | 626 const u8 *ie, size_t ielen, int reassoc);
|
H A D | ap_drv_ops.c | 964 u16 reason_code, const u8 *ie, size_t ielen) 969 ie, ielen); 963 hostapd_drv_update_dh_ie(struct hostapd_data *hapd, const u8 *peer, u16 reason_code, const u8 *ie, size_t ielen) argument
|
H A D | ap_drv_ops.h | 134 u16 reason_code, const u8 *ie, size_t ielen);
|
H A D | ieee802_11.c | 1678 size_t ielen; local 1690 ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ielen); 1698 ie_buf = os_malloc(ielen + 2 + 2 + PMKID_LEN); 1704 os_memcpy(ie_buf, ie, ielen); 1705 if (wpa_insert_pmkid(ie_buf, &ielen, pmksa->pmkid) < 0) { 1729 data = wpabuf_alloc(1000 + ielen + (pub ? wpabuf_len(pub) : 0)); 1747 wpabuf_put_data(data, ie, ielen); 1749 /* MDE when using FILS+FT (already included in ie,ielen with RSNE) */
|
H A D | wpa_auth_ft.c | 813 u8 *pos = buf, *ielen; local 822 ielen = pos++; 864 *ielen = pos - buf - 2;
|
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_ioctl.c | 175 int ielen = ni->ni_ies.wpa_ie[1] + 2; local 176 if (ielen > sizeof(wpaie->wpa_ie)) 177 ielen = sizeof(wpaie->wpa_ie); 178 memcpy(wpaie->wpa_ie, ni->ni_ies.wpa_ie, ielen); 182 int ielen = ni->ni_ies.rsn_ie[1] + 2; local 183 if (ielen > sizeof(wpaie->rsn_ie)) 184 ielen = sizeof(wpaie->rsn_ie); 185 memcpy(wpaie->rsn_ie, ni->ni_ies.rsn_ie, ielen); 193 int ielen = ni->ni_ies.rsn_ie[1] + 2; local 194 if (ielen > sizeo 239 scan_space(const struct ieee80211_scan_entry *se, int *ielen) argument 258 int ielen; local 268 int ielen, len, nr, nxr; local 356 sta_space(const struct ieee80211_node *ni, size_t *ielen) argument 367 size_t ielen; local 383 size_t ielen, len; local [all...] |
H A D | ieee80211_node.c | 1016 int ielen; local 1019 ielen = ies->len; 1020 while (ielen > 0) { 1051 ielen -= 2 + ie[1];
|
H A D | ieee80211_output.c | 1944 static const int ielen = 26; local 1947 frm[1] = ielen; 1949 memcpy(frm+2, ic->ic_chan_avail, ielen); 1950 return frm + 2 + ielen;
|
/freebsd-11-stable/sbin/ifconfig/ |
H A D | ifieee80211.c | 2468 printie(const char* tag, const uint8_t *ie, size_t ielen, int maxlen) argument 2473 if (2*ielen > maxlen) 2476 for (; ielen > 0; ie++, ielen--) { 2481 if (ielen != 0) 2505 printwmeparam(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2536 printwmeinfo(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2548 printvhtcap(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2571 printvhtinfo(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2587 printvhtpwrenv(const char *tag, const u_int8_t *ie, size_t ielen, in argument 2620 printhtcap(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2654 printhtinfo(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2686 printathie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2717 printmeshconf(const char *tag, const uint8_t *ie, size_t ielen, int maxlen) argument 2761 printbssload(const char *tag, const uint8_t *ie, size_t ielen, int maxlen) argument 2775 printapchanrep(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2835 printwpaie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2921 printrsnie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 2976 printwpsie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 3043 printtdmaie(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 3101 printssid(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 3109 printrates(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 3126 printcountry(const char *tag, const u_int8_t *ie, size_t ielen, int maxlen) argument 3211 printies(const u_int8_t *vp, int ielen, int maxcols) argument [all...] |
/freebsd-11-stable/contrib/wpa/src/rsn_supp/ |
H A D | tdls.c | 755 int ielen; local 784 ielen = 0; 787 ielen += sizeof(*ftie); 790 ielen += 170; 794 rbuf = os_zalloc(ielen + 1); 941 int ielen; local 964 ielen = len - (pos - buf); /* start of IE in buf */ 971 if (wpa_supplicant_parse_ies((const u8 *) pos, ielen, &kde) < 0) 1804 u16 ielen; local 1864 ielen 2193 int ielen; local 2478 int ielen; local [all...] |
/freebsd-11-stable/contrib/wpa/src/drivers/ |
H A D | driver_atheros.c | 867 int ielen; local 919 ielen = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req)); 921 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 0); 926 ielen = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.reassoc_req)); 928 drv_event_assoc(drv->hapd, mgmt->sa, iebuf, ielen, 1); 1179 int ielen = 0; local 1217 ielen = iebuf[1]; 1223 ielen = ie.wps_ie[1]; 1227 if (ielen == 0) 1230 ielen [all...] |
H A D | driver_bsd.c | 549 int ielen = 0; local 563 ielen = ie.wpa_ie[1]; 564 if (ielen == 0) 567 ielen += 2; 570 drv_event_assoc(ctx, addr, iebuf, ielen, 0);
|
H A D | driver.h | 5679 size_t ielen, int reassoc) 5685 event.assoc_info.req_ies_len = ielen; 5678 drv_event_assoc(void *ctx, const u8 *addr, const u8 *ie, size_t ielen, int reassoc) argument
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | mesh.c | 426 size_t ielen = 2; local 428 if (wpabuf_resize(extra_ie, ielen) == 0) {
|
H A D | scan.c | 573 size_t ielen = p2p_scan_ie_buf_len(wpa_s->global->p2p); local 574 if (wpabuf_resize(&extra_ie, ielen) == 0)
|
H A D | p2p_supplicant.c | 360 size_t ielen; local 432 ielen = p2p_scan_ie_buf_len(wpa_s->global->p2p); 433 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen); 5101 size_t ielen; local 5145 ielen = p2p_scan_ie_buf_len(wpa_s->global->p2p); 5146 ies = wpabuf_alloc(wpabuf_len(wps_ie) + ielen);
|
/freebsd-11-stable/sys/dev/ipw/ |
H A D | if_ipw.c | 2033 ipw_setwpaie(struct ipw_softc *sc, const void *ie, int ielen) argument 2038 wpaie.len = htole32(ielen); 2040 memcpy(&wpaie.ie, ie, ielen);
|
/freebsd-11-stable/sys/dev/if_ndis/ |
H A D | if_ndis.c | 2263 ndis_set_wpa(sc, ie, ielen) 2266 int ielen;
|