| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_adhoc.c | 315 struct ieee80211_frame *wh; in adhoc_input() local 373 wh->i_fc[0], wh->i_fc[1]); in adhoc_input() 383 bssid = wh->i_addr1; in adhoc_input() 385 bssid = wh->i_addr1; in adhoc_input() 395 bssid = wh->i_addr3; in adhoc_input() 708 struct ieee80211_frame *wh; in adhoc_recv_mgmt() local 716 frm = (uint8_t *)&wh[1]; in adhoc_recv_mgmt() 722 wh->i_addr2, ":", in adhoc_recv_mgmt() 725 wh->i_fc[0], in adhoc_recv_mgmt() 726 wh->i_fc[1]); in adhoc_recv_mgmt() [all …]
|
| H A D | ieee80211_hostap.c | 481 struct ieee80211_frame *wh; in hostap_input() local 539 wh->i_fc[0], wh->i_fc[1]); in hostap_input() 549 bssid = wh->i_addr1; in hostap_input() 551 bssid = wh->i_addr1; in hostap_input() 561 bssid = wh->i_addr3; in hostap_input() 610 IEEE80211_MSG_WDS, wh, in hostap_input() 853 wh, NULL, in hostap_input() 1586 wh, NULL, in wpa_assocreq() 1748 struct ieee80211_frame *wh; in hostap_recv_mgmt() local 1756 frm = (uint8_t *)&wh[1]; in hostap_recv_mgmt() [all …]
|
| H A D | ieee80211_sta.c | 483 #define QWH4(wh) ((const struct ieee80211_qosframe_addr4 *)wh) in isdstods_mcastecho() argument 484 #define WH4(wh) ((const struct ieee80211_frame_addr4 *)wh) in isdstods_mcastecho() argument 491 sa = IEEE80211_QOS_HAS_SEQ(wh) ? QWH4(wh)->i_addr4 : WH4(wh)->i_addr4; in isdstods_mcastecho() 546 struct ieee80211_frame *wh; in sta_input() local 604 wh->i_fc[0], wh->i_fc[1]); in sta_input() 613 bssid = wh->i_addr2; in sta_input() 1393 struct ieee80211_frame *wh; in sta_recv_mgmt() local 1402 frm = (uint8_t *)&wh[1]; in sta_recv_mgmt() 1459 wh->i_addr2, in sta_recv_mgmt() 1474 wh->i_addr2, in sta_recv_mgmt() [all …]
|
| H A D | ieee80211_wds.c | 419 struct ieee80211_frame *wh; in wds_input() local 478 wh->i_fc[0], wh->i_fc[1]); in wds_input() 507 uint8_t tid = ieee80211_gettid(wh); in wds_input() 508 if (IEEE80211_QOS_HAS_SEQ(wh) && in wds_input() 511 if (! ieee80211_check_rxseq(ni, wh, wh->i_addr1, rxs)) in wds_input() 589 qos = ieee80211_getqos(wh)[0]; in wds_input() 748 struct ieee80211_frame *wh; in wds_recv_mgmt() local 752 frm = (u_int8_t *)&wh[1]; in wds_recv_mgmt() 764 wh, NULL, "%s", "not for us"); in wds_recv_mgmt() 768 wh, NULL, "wrong state %s", in wds_recv_mgmt() [all …]
|
| H A D | ieee80211_input.c | 303 KASSERT(hdrlen <= sizeof(wh), in ieee80211_decap() 490 struct ieee80211_frame *wh; in ieee80211_parse_beacon() local 494 frm = (uint8_t *)&wh[1]; in ieee80211_parse_beacon() 646 wh, "unhandled", in ieee80211_parse_beacon() 757 struct ieee80211_frame *wh; in ieee80211_parse_action() local 767 frm = (u_int8_t *)&wh[1]; in ieee80211_parse_action() 892 const struct ieee80211_frame *wh) in ieee80211_getbssid() argument 895 return wh->i_addr2; in ieee80211_getbssid() 897 return wh->i_addr1; in ieee80211_getbssid() 899 return wh->i_addr1; in ieee80211_getbssid() [all …]
|
| H A D | ieee80211_output.c | 594 struct ieee80211_frame *wh; in ieee80211_validate_frame() local 747 struct ieee80211_frame *wh; in ieee80211_output() local 887 #define WH4(wh) ((struct ieee80211_frame_addr4 *)wh) in ieee80211_send_setup() argument 1461 #define WH4(wh) ((struct ieee80211_frame_addr4 *)(wh)) in ieee80211_encap() argument 1723 wh->i_fc[1] = dir; in ieee80211_encap() 1737 wh)->i_qos; in ieee80211_encap() 1747 wh)->i_qos; in ieee80211_encap() 1849 *(uint16_t *)wh->i_seq = in ieee80211_encap() 1863 *(uint16_t *)wh->i_seq = in ieee80211_encap() 2002 memcpy(whf, wh, hdrsize); in ieee80211_fragment() [all …]
|
| H A D | ieee80211_crypto_tkip.c | 182 struct ieee80211_frame *wh; in tkip_encap() local 188 is_mgmt = IEEE80211_IS_MGMT(wh); in tkip_encap() 243 struct ieee80211_frame *wh; in tkip_enmic() local 294 struct ieee80211_frame *wh; in tkip_decap() local 330 tid = ieee80211_gettid(wh); in tkip_decap() 388 struct ieee80211_frame *wh; in tkip_demic() local 442 tid = ieee80211_gettid(wh); in tkip_demic() 1004 struct ieee80211_frame *wh; in tkip_encrypt() local 1030 struct ieee80211_frame *wh; in tkip_decrypt() local 1043 tid = ieee80211_gettid(wh); in tkip_decrypt() [all …]
|
| H A D | ieee80211_crypto_ccmp.c | 167 const struct ieee80211_frame *wh; in ccmp_encap() local 176 is_mgmt = IEEE80211_IS_MGMT(wh); in ccmp_encap() 240 struct ieee80211_frame *wh; in ccmp_decap() local 264 tid = ieee80211_gettid(wh); in ccmp_decap() 350 #define IS_QOS_DATA(wh) IEEE80211_QOS_HAS_SEQ(wh) in ccmp_init_blocks() argument 394 if (IEEE80211_IS_DSTODS(wh)) { in ccmp_init_blocks() 397 if (IS_QOS_DATA(wh)) { in ccmp_init_blocks() 410 if (IS_QOS_DATA(wh)) { in ccmp_init_blocks() 412 (struct ieee80211_qosframe*) wh; in ccmp_init_blocks() 453 struct ieee80211_frame *wh; in ccmp_encrypt() local [all …]
|
| H A D | ieee80211_proto.h | 173 const struct ieee80211_frame *wh = data; in ieee80211_hdrsize() local 179 if (IEEE80211_IS_DSTODS(wh)) in ieee80211_hdrsize() 181 if (IEEE80211_QOS_HAS_SEQ(wh)) in ieee80211_hdrsize() 192 const struct ieee80211_frame *wh = data; in ieee80211_anyhdrsize() local 237 const struct ieee80211_frame *wh); 316 struct ieee80211_frame *wh = data; in ieee80211_getqos() local 320 if (IEEE80211_IS_DSTODS(wh)) in ieee80211_getqos() 323 return (((struct ieee80211_qosframe *)wh)->i_qos); in ieee80211_getqos() 331 ieee80211_gettid(const struct ieee80211_frame *wh) in ieee80211_gettid() argument 335 if (IEEE80211_QOS_HAS_SEQ(wh)) { in ieee80211_gettid() [all …]
|
| H A D | ieee80211_input.h | 36 wh, NULL, "%s", "no " #__elem ); \ 41 wh, NULL, "bad " #__elem " len %d", (__elem)[1]); \ 50 wh, NULL, "ie too short, got %d, expected %d", \ 68 wh->i_addr2, _ssid); \ 208 rxseq = le16toh(*(uint16_t *)wh->i_seq); in ieee80211_check_rxseq() 209 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK; in ieee80211_check_rxseq() 210 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; in ieee80211_check_rxseq() 223 if (IEEE80211_IS_MULTICAST(wh->i_addr1)) in ieee80211_check_rxseq() 226 tid = ieee80211_gettid(wh); in ieee80211_check_rxseq() 255 (wh->i_fc[1] & IEEE80211_FC1_RETRY)) in ieee80211_check_rxseq() [all …]
|
| H A D | ieee80211_mesh.c | 1255 #define WHDIR(wh) ((wh)->i_fc[1] & IEEE80211_FC1_DIR_MASK) in mesh_decap() argument 1277 ("bogus dir, fc 0x%x:0x%x", wh->i_fc[0], wh->i_fc[1])); in mesh_decap() 1352 ("bad dir 0x%x:0x%x", wh->i_fc[0], wh->i_fc[1])); in mesh_isucastforme() 1539 struct ieee80211_frame *wh; in mesh_input() local 1590 if (! ieee80211_check_rxseq(ni, wh, wh->i_addr1, rxs)) in mesh_input() 1716 addr = wh->i_addr3; in mesh_input() 1741 wh, mc); in mesh_input() 1840 struct ieee80211_frame *wh; in mesh_recv_mgmt() local 1845 frm = (uint8_t *)&wh[1]; in mesh_recv_mgmt() 1987 wh, NULL, "wrong state %s", in mesh_recv_mgmt() [all …]
|
| H A D | ieee80211_crypto_none.c | 105 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in none_encap() local 114 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr1, in none_encap() 126 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in none_decap() local 127 const uint8_t *ivp = (const uint8_t *)&wh[1]; in none_decap() 135 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, in none_decap()
|
| H A D | ieee80211_crypto.c | 559 struct ieee80211_frame *wh; in ieee80211_crypto_get_txkey() local 567 wh = mtod(m, struct ieee80211_frame *); in ieee80211_crypto_get_txkey() 568 if (IEEE80211_IS_MULTICAST(wh->i_addr1) || in ieee80211_crypto_get_txkey() 572 wh->i_addr1, in ieee80211_crypto_get_txkey() 615 struct ieee80211_frame *wh; in ieee80211_crypto_decap() local 656 wh = mtod(m, struct ieee80211_frame *); in ieee80211_crypto_decap() 658 if (IEEE80211_IS_MULTICAST(wh->i_addr1) || in ieee80211_crypto_decap() 670 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, in ieee80211_crypto_decap() 706 struct ieee80211_frame *wh; in ieee80211_crypto_demic() local 709 wh = mtod(m, struct ieee80211_frame *); in ieee80211_crypto_demic() [all …]
|
| H A D | ieee80211_sta.h | 43 const struct ieee80211_frame *wh, uint8_t *qosinfo); 49 const struct ieee80211_frame *wh, struct ieee80211_node *ni);
|
| H A D | ieee80211_hwmp.c | 328 wh, NULL, "PREQ (AE=%s) with wrong len", in verify_mesh_preq_len() 352 wh, NULL, "PREP (AE=%s) with wrong len", in verify_mesh_prep_len() 393 wh, NULL, "%s", "PERR with wrong len"); in verify_mesh_perr_len() 401 const struct ieee80211_frame *wh, in hwmp_recv_action_meshpath() argument 422 ndest = verify_mesh_preq_len(vap, wh, iefrm_t); in hwmp_recv_action_meshpath() 462 hwmp_recv_preq(vap, ni, wh, preq); in hwmp_recv_action_meshpath() 500 hwmp_recv_prep(vap, ni, wh, prep); in hwmp_recv_action_meshpath() 546 hwmp_recv_perr(vap, ni, wh, perr); in hwmp_recv_action_meshpath() 559 wh, NULL, "%s", "RAN with wrong len"); in hwmp_recv_action_meshpath() 567 hwmp_recv_rann(vap, ni, wh, &rann); in hwmp_recv_action_meshpath() [all …]
|
| H A D | ieee80211_tdma.c | 125 const u_int8_t *ie, int rssi, int nf, const struct ieee80211_frame *wh); 340 struct ieee80211_frame *wh = mtod(m0, struct ieee80211_frame *); in tdma_recv_mgmt() local 354 wh, ieee80211_mgt_subtype_name(subtype), in tdma_recv_mgmt() 360 !IEEE80211_ADDR_EQ(wh->i_addr2, ni->ni_macaddr)) { in tdma_recv_mgmt() 365 ni = ieee80211_add_neighbor(vap, wh, &scan); in tdma_recv_mgmt() 374 if (IEEE80211_ADDR_EQ(wh->i_addr3, ni->ni_bssid)) { in tdma_recv_mgmt() 395 (void) tdma_process_params(ni, scan.tdma, rssi, nf, wh); in tdma_recv_mgmt() 526 int rssi, int nf, const struct ieee80211_frame *wh) in tdma_process_params() argument 540 wh, "tdma", "too short, len %u", len); in tdma_process_params() 546 wh, "tdma", "bad version %u (ours %u)", in tdma_process_params() [all …]
|
| H A D | ieee80211.h | 166 #define IEEE80211_IS_MGMT(wh) \ argument 167 (!! (((wh)->i_fc[0] & IEEE80211_FC0_TYPE_MASK) \ 169 #define IEEE80211_IS_CTL(wh) \ argument 170 (!! (((wh)->i_fc[0] & IEEE80211_FC0_TYPE_MASK) \ 172 #define IEEE80211_IS_DATA(wh) \ argument 173 (!! (((wh)->i_fc[0] & IEEE80211_FC0_TYPE_MASK) \ 179 #define IEEE80211_IS_QOSDATA(wh) \ argument 180 ((wh)->i_fc[0] == IEEE80211_FC0_QOSDATA) 188 #define IEEE80211_IS_DSTODS(wh) \ argument 244 #define IEEE80211_QOS_HAS_SEQ(wh) \ argument [all …]
|
| H A D | ieee80211_crypto_wep.c | 185 struct ieee80211_frame *wh; in wep_encap() local 191 wh = mtod(m, struct ieee80211_frame *); in wep_encap() 192 is_mgmt = IEEE80211_IS_MGMT(wh); in wep_encap() 244 struct ieee80211_frame *wh; in wep_decap() local 247 wh = mtod(m, struct ieee80211_frame *); in wep_decap() 261 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, in wep_decap()
|
| H A D | ieee80211_proto.c | 558 const struct ieee80211_frame *wh; in ieee80211_dump_pkt() local 561 wh = (const struct ieee80211_frame *)buf; in ieee80211_dump_pkt() 565 printf("->%s", ether_sprintf(wh->i_addr1)); in ieee80211_dump_pkt() 566 printf("(%s)", ether_sprintf(wh->i_addr3)); in ieee80211_dump_pkt() 570 printf("->%s", ether_sprintf(wh->i_addr3)); in ieee80211_dump_pkt() 571 printf("(%s)", ether_sprintf(wh->i_addr1)); in ieee80211_dump_pkt() 575 printf("->%s", ether_sprintf(wh->i_addr1)); in ieee80211_dump_pkt() 576 printf("(%s)", ether_sprintf(wh->i_addr2)); in ieee80211_dump_pkt() 581 printf("(%s", ether_sprintf(wh->i_addr2)); in ieee80211_dump_pkt() 596 if (IEEE80211_QOS_HAS_SEQ(wh)) { in ieee80211_dump_pkt() [all …]
|
| H A D | ieee80211_action.c | 167 recv_inval(struct ieee80211_node *ni, const struct ieee80211_frame *wh, in recv_inval() argument 245 const struct ieee80211_frame *wh, in ieee80211_recv_action() argument 288 return f(ni, wh, frm, efrm); in ieee80211_recv_action()
|
| H A D | ieee80211_node.c | 1765 const struct ieee80211_frame *wh, in ieee80211_init_neighbor() argument 1891 const struct ieee80211_frame *wh, in ieee80211_add_neighbor() argument 1902 ieee80211_init_neighbor(ni, wh, sp); in ieee80211_add_neighbor() 1915 #define IS_PROBEREQ(wh) \ argument 1918 #define IS_BCAST_PROBEREQ(wh) \ argument 1924 const struct ieee80211_frame_min *wh) in _find_rxnode() argument 1926 if (IS_BCAST_PROBEREQ(wh)) in _find_rxnode() 1942 const struct ieee80211_frame_min *wh) in ieee80211_find_rxnode_debug() 1950 ni = _find_rxnode(nt, wh); in ieee80211_find_rxnode_debug() 1984 ni = _find_rxnode(nt, wh); in ieee80211_find_rxnode_withkey_debug() [all …]
|
| H A D | ieee80211_acl.c | 158 acl_check(struct ieee80211vap *vap, const struct ieee80211_frame *wh) in acl_check() argument 167 return _find_acl(as, wh->i_addr2) != NULL; in acl_check() 169 return _find_acl(as, wh->i_addr2) == NULL; in acl_check()
|
| H A D | ieee80211_node.h | 448 #define ieee80211_find_rxnode(ic, wh) \ argument 449 ieee80211_find_rxnode_debug(ic, wh, __func__, __LINE__) 450 #define ieee80211_find_rxnode_withkey(ic, wh, keyix) \ argument 451 ieee80211_find_rxnode_withkey_debug(ic, wh, keyix, __func__, __LINE__)
|
| H A D | ieee80211_freebsd.c | 835 const struct ieee80211_frame *wh, const struct ieee80211_key *k, in ieee80211_notify_replay_failure() argument 840 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, in ieee80211_notify_replay_failure() 852 IEEE80211_ADDR_COPY(iev.iev_dst, wh->i_addr1); in ieee80211_notify_replay_failure() 853 IEEE80211_ADDR_COPY(iev.iev_src, wh->i_addr2); in ieee80211_notify_replay_failure() 869 const struct ieee80211_frame *wh, u_int keyix) in ieee80211_notify_michael_failure() argument 873 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, in ieee80211_notify_michael_failure() 880 IEEE80211_ADDR_COPY(iev.iev_dst, wh->i_addr1); in ieee80211_notify_michael_failure() 881 IEEE80211_ADDR_COPY(iev.iev_src, wh->i_addr2); in ieee80211_notify_michael_failure()
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_pppoe.c | 407 dp = (char *)(&wh->ph + 1); in make_packet() 1150 bcopy(&sp->pkt_hdr, wh, sizeof(*wh)); in ng_pppoe_rcvmsg() 1195 bcopy(&sp->pkt_hdr, wh, sizeof(*wh)); in ng_pppoe_rcvmsg() 1450 bcopy(&sp->pkt_hdr, wh, sizeof(*wh)); in ng_pppoe_rcvdata() 1451 wh->ph.length = htons(m->m_pkthdr.len - sizeof(*wh)); in ng_pppoe_rcvdata() 1480 ph = &wh->ph; in ng_pppoe_rcvdata() 1483 code = wh->ph.code; in ng_pppoe_rcvdata() 1641 ph = &wh->ph; in ng_pppoe_rcvdata_ether() 1643 code = wh->ph.code; in ng_pppoe_rcvdata_ether() 1925 m_adj(m, sizeof(*wh)); in ng_pppoe_rcvdata_ether() [all …]
|