/freebsd-11-stable/tools/tools/net80211/w00t/assoc/ |
H A D | assoc.c | 85 void fill_basic(struct ieee80211_frame *wh, struct params *p) argument 89 wh->i_dur[0] = 0x69; 90 wh->i_dur[1] = 0x00; 92 memcpy(wh->i_addr1, p->ap, 6); 93 memcpy(wh->i_addr2, p->mac, 6); 94 memcpy(wh->i_addr3, p->bssid, 6); 96 seq = (short*)wh->i_seq; 118 struct ieee80211_frame *wh; local 124 wh = (struct ieee80211_frame*) buf; 125 fill_basic(wh, 152 struct ieee80211_frame *wh; local 199 struct ieee80211_frame *wh; local 236 for_me(struct ieee80211_frame *wh, char *mac) argument 241 from_ap(struct ieee80211_frame *wh, char *mac) argument 246 ack(struct params *p, struct ieee80211_frame *wh) argument 257 generic_process(struct ieee80211_frame *wh, struct params *p, int len) argument 424 struct ieee80211_frame *wh; local 490 struct ieee80211_frame *wh; local 544 struct ieee80211_frame *wh; local 590 struct ieee80211_frame *wh; local 655 struct ieee80211_frame *wh; local 916 struct ieee80211_frame *wh; local [all...] |
/freebsd-11-stable/tools/tools/net80211/w00t/ap/ |
H A D | ap.c | 92 void fill_basic(struct ieee80211_frame *wh, struct params *p) argument 96 wh->i_dur[0] = 0x69; 97 wh->i_dur[1] = 0x00; 99 memcpy(wh->i_addr2, p->mac, 6); 101 seq = (short*)wh->i_seq; 119 int fill_beacon(struct params *p, struct ieee80211_frame *wh) argument 124 ptr = (char*) (wh+1); 150 return ptr - ((char*) wh); 156 struct ieee80211_frame *wh; local 160 wh 190 struct ieee80211_frame *wh; local 209 read_preq(struct params *p, struct ieee80211_frame *wh, int len) argument 238 struct ieee80211_frame *wh; local 262 read_auth(struct params *p, struct ieee80211_frame *wh, int len) argument 288 struct ieee80211_frame *wh; local 321 read_assoc(struct params *p, struct ieee80211_frame *wh, int len) argument 352 read_mgt(struct params *p, struct ieee80211_frame *wh, int len) argument 385 struct ieee80211_frame *wh; local 398 read_rts(struct params *p, struct ieee80211_frame *wh, int len) argument 406 read_ack(struct params *p, struct ieee80211_frame *wh, int len) argument 412 read_ctl(struct params *p, struct ieee80211_frame *wh, int len) argument 437 broadcast(struct ieee80211_frame *wh) argument 447 enque(struct params *p, struct ieee80211_frame *wh, int len) argument 465 relay_data(struct params *p, struct ieee80211_frame *wh, int len) argument 495 read_real_data(struct params *p, struct ieee80211_frame *wh, int len) argument 548 read_data(struct params *p, struct ieee80211_frame *wh, int len) argument 595 duplicate(struct params *p, struct ieee80211_frame *wh, int rc) argument 642 ack(struct params *p, struct ieee80211_frame *wh) argument 657 struct ieee80211_frame *wh; local 713 struct ieee80211_frame *wh; local [all...] |
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_sta.h | 41 const struct ieee80211_frame *wh);
|
H A D | ieee80211_sta.c | 478 isdstods_mcastecho(struct ieee80211vap *vap, const struct ieee80211_frame *wh) argument 480 #define QWH4(wh) ((const struct ieee80211_qosframe_addr4 *)wh) 481 #define WH4(wh) ((const struct ieee80211_frame_addr4 *)wh) 486 if (!IEEE80211_IS_MULTICAST(wh->i_addr3)) 488 sa = IEEE80211_QOS_HAS_SEQ(wh) ? QWH4(wh)->i_addr4 : WH4(wh)->i_addr4; 499 isfromds_mcastecho(struct ieee80211vap *vap, const struct ieee80211_frame *wh) argument 543 struct ieee80211_frame *wh; local 941 sta_auth_open(struct ieee80211_node *ni, struct ieee80211_frame *wh, int rssi, int nf, uint16_t seq, uint16_t status) argument 970 sta_auth_shared(struct ieee80211_node *ni, struct ieee80211_frame *wh, uint8_t *frm, uint8_t *efrm, int rssi, int nf, uint16_t seq, uint16_t status) argument 1084 ieee80211_parse_wmeparams(struct ieee80211vap *vap, uint8_t *frm, const struct ieee80211_frame *wh) argument 1127 ieee80211_parse_csaparams(struct ieee80211vap *vap, uint8_t *frm, const struct ieee80211_frame *wh) argument 1279 struct ieee80211_frame *wh; local [all...] |
H A D | ieee80211_hostap.c | 474 struct ieee80211_frame *wh; local 490 wh = mtod(m, struct ieee80211_frame *); 492 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; 494 hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */ 516 wh = mtod(m, struct ieee80211_frame *); 518 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != 522 wh->i_fc[0], wh->i_fc[1]); 527 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; 528 type = wh 892 hostap_auth_open(struct ieee80211_node *ni, struct ieee80211_frame *wh, int rssi, int nf, uint16_t seq, uint16_t status) argument 970 hostap_auth_shared(struct ieee80211_node *ni, struct ieee80211_frame *wh, uint8_t *frm, uint8_t *efrm, int rssi, int nf, uint16_t seq, uint16_t status) argument 1208 ieee80211_parse_wpa(struct ieee80211vap *vap, const uint8_t *frm, struct ieee80211_rsnparms *rsn, const struct ieee80211_frame *wh) argument 1356 ieee80211_parse_rsn(struct ieee80211vap *vap, const uint8_t *frm, struct ieee80211_rsnparms *rsn, const struct ieee80211_frame *wh) argument 1448 wpa_assocreq(struct ieee80211_node *ni, struct ieee80211_rsnparms *rsnparms, const struct ieee80211_frame *wh, const uint8_t *wpa, const uint8_t *rsn, uint16_t capinfo) argument 1578 ratesetmismatch(struct ieee80211_node *ni, const struct ieee80211_frame *wh, int reassoc, int resp, const char *tag, int rate) argument 1589 capinfomismatch(struct ieee80211_node *ni, const struct ieee80211_frame *wh, int reassoc, int resp, const char *tag, int capinfo) argument 1603 htcapmismatch(struct ieee80211_node *ni, const struct ieee80211_frame *wh, int reassoc, int resp) argument 1614 authalgreject(struct ieee80211_node *ni, const struct ieee80211_frame *wh, int algo, int seq, int status) argument 1658 struct ieee80211_frame *wh; local 2242 struct ieee80211_frame_min *wh; local [all...] |
H A D | ieee80211_wds.c | 415 struct ieee80211_frame *wh; local 430 wh = mtod(m, struct ieee80211_frame *); 432 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; 434 hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */ 455 wh = mtod(m, struct ieee80211_frame *); 457 if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) 460 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != 464 wh->i_fc[0], wh->i_fc[1]); 469 dir = wh 733 struct ieee80211_frame *wh; local [all...] |
H A D | ieee80211_adhoc.c | 299 struct ieee80211_frame *wh; local 315 wh = mtod(m, struct ieee80211_frame *); 317 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; 319 hdrspace = ieee80211_hdrspace(ic, wh); /* XXX optimize? */ 341 wh = mtod(m, struct ieee80211_frame *); 343 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != 347 wh->i_fc[0], wh->i_fc[1]); 352 dir = wh->i_fc[1] & IEEE80211_FC1_DIR_MASK; 353 type = wh 677 struct ieee80211_frame *wh; local 920 struct ieee80211_frame *wh; local [all...] |
H A D | ieee80211_proto.h | 168 const struct ieee80211_frame *wh = data; local 172 KASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL, 174 if (IEEE80211_IS_DSTODS(wh)) 176 if (IEEE80211_QOS_HAS_SEQ(wh)) 187 const struct ieee80211_frame *wh = data; local 189 if ((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) { 190 switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { 232 const struct ieee80211_frame *wh); 303 struct ieee80211_frame *wh = data; local 305 KASSERT(IEEE80211_QOS_HAS_SEQ(wh), ("Qo 318 ieee80211_gettid(const struct ieee80211_frame *wh) argument [all...] |
H A D | ieee80211_input.c | 183 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); local 187 uint8_t more_frag = wh->i_fc[1] & IEEE80211_FC1_MORE_FRAG; 190 KASSERT(!IEEE80211_IS_MULTICAST(wh->i_addr1), ("multicast fragm?")); 192 rxseq = le16toh(*(uint16_t *)wh->i_seq); 231 IEEE80211_ADDR_EQ(wh->i_addr1, lwh->i_addr1) && 232 IEEE80211_ADDR_EQ(wh->i_addr2, lwh->i_addr2)) { 235 *(uint16_t *) lwh->i_seq = *(uint16_t *) wh->i_seq; 306 struct ieee80211_qosframe_addr4 wh; local 310 KASSERT(hdrlen <= sizeof(wh), 311 ("hdrlen %d > max %zd", hdrlen, sizeof(wh))); 497 struct ieee80211_frame *wh; local 741 struct ieee80211_frame *wh; local 872 ieee80211_getbssid(const struct ieee80211vap *vap, const struct ieee80211_frame *wh) argument 900 ieee80211_note_frame(const struct ieee80211vap *vap, const struct ieee80211_frame *wh, const char *fmt, ...) argument 929 ieee80211_discard_frame(const struct ieee80211vap *vap, const struct ieee80211_frame *wh, const char *type, const char *fmt, ...) argument 946 ieee80211_discard_ie(const struct ieee80211vap *vap, const struct ieee80211_frame *wh, const char *type, const char *fmt, ...) argument [all...] |
H A D | ieee80211_crypto_none.c | 103 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); local 112 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr1, 124 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); local 125 const uint8_t *ivp = (const uint8_t *)&wh[1]; 133 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2,
|
H A D | ieee80211_input.h | 34 wh, NULL, "%s", "no " #__elem ); \ 39 wh, NULL, "bad " #__elem " len %d", (__elem)[1]); \ 48 wh, NULL, "ie too short, got %d, expected %d", \ 66 wh->i_addr2, _ssid); \ 154 ieee80211_check_rxseq(struct ieee80211_node *ni, struct ieee80211_frame *wh, argument 167 rxseq = le16toh(*(uint16_t *)wh->i_seq); 168 type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK; 169 subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; 178 tid = ieee80211_gettid(wh); 207 (wh [all...] |
H A D | ieee80211_crypto_ccmp.c | 222 struct ieee80211_frame *wh; local 230 wh = mtod(m, struct ieee80211_frame *); 236 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, 241 tid = ieee80211_gettid(wh); 248 ieee80211_notify_replay_failure(vap, wh, k, pn, tid); 311 ccmp_init_blocks(rijndael_ctx *ctx, struct ieee80211_frame *wh, argument 316 #define IS_QOS_DATA(wh) IEEE80211_QOS_HAS_SEQ(wh) 325 IEEE80211_ADDR_COPY(b0 + 2, wh->i_addr2); 344 aad[2] = wh 419 struct ieee80211_frame *wh; local 565 struct ieee80211_frame *wh; local [all...] |
H A D | ieee80211_output.c | 562 struct ieee80211_frame *wh; local 607 wh = mtod(m, struct ieee80211_frame *); 608 if ((wh->i_fc[0] & IEEE80211_FC0_VERSION_MASK) != 611 if (m->m_pkthdr.len < ieee80211_anyhdrsize(wh)) 615 switch (wh->i_fc[1] & IEEE80211_FC1_DIR_MASK) { 618 ni = ieee80211_find_txnode(vap, wh->i_addr1); 622 ni = ieee80211_find_txnode(vap, wh->i_addr3); 651 if (IEEE80211_IS_MULTICAST(wh->i_addr1)) { 696 #define WH4(wh) ((struct ieee80211_frame_addr4 *)wh) 699 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); local 801 struct ieee80211_frame *wh; local 882 struct ieee80211_frame *wh; local 1228 struct ieee80211_frame *wh; local 1655 struct ieee80211_frame *wh, *whf; local 3066 struct ieee80211_frame *wh; local 3171 struct ieee80211_frame *wh; local [all...] |
H A D | ieee80211_mesh.c | 1145 const struct ieee80211_frame *wh = local 1162 IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, 1168 IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, 1175 IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, 1181 mcopy = m_pullup(mcopy, ieee80211_hdrspace(ic, wh) + 1184 IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, 1193 (mtod(mcopy, uint8_t *) + ieee80211_hdrspace(ic, wh)); 1197 if (IEEE80211_IS_MULTICAST(wh->i_addr1)) { 1209 IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, 1248 #define WHDIR(wh) ((w 1252 const struct ieee80211_qosframe_addr4 *wh; local 1339 mesh_isucastforme(struct ieee80211vap *vap, const struct ieee80211_frame *wh, const struct ieee80211_meshcntl *mc) argument 1367 mesh_recv_indiv_data_to_fwrd(struct ieee80211vap *vap, struct mbuf *m, struct ieee80211_frame *wh, const struct ieee80211_meshcntl *mc) argument 1424 mesh_recv_indiv_data_to_me(struct ieee80211vap *vap, struct mbuf *m, struct ieee80211_frame *wh, const struct ieee80211_meshcntl *mc) argument 1492 mesh_recv_group_data(struct ieee80211vap *vap, struct mbuf *m, struct ieee80211_frame *wh, const struct ieee80211_meshcntl *mc) argument 1532 struct ieee80211_frame *wh; local 1833 struct ieee80211_frame *wh; local 2102 mesh_parse_meshpeering_action(struct ieee80211_node *ni, const struct ieee80211_frame *wh, const uint8_t *frm, const uint8_t *efrm, struct ieee80211_meshpeer_ie *mp, uint8_t subtype) argument 2231 mesh_recv_action_meshpeering_open(struct ieee80211_node *ni, const struct ieee80211_frame *wh, const uint8_t *frm, const uint8_t *efrm) argument 2379 mesh_recv_action_meshpeering_confirm(struct ieee80211_node *ni, const struct ieee80211_frame *wh, const uint8_t *frm, const uint8_t *efrm) argument 2443 mesh_recv_action_meshpeering_close(struct ieee80211_node *ni, const struct ieee80211_frame *wh, const uint8_t *frm, const uint8_t *efrm) argument 2497 mesh_recv_action_meshlmetric(struct ieee80211_node *ni, const struct ieee80211_frame *wh, const uint8_t *frm, const uint8_t *efrm) argument 2523 mesh_parse_meshgate_action(struct ieee80211_node *ni, const struct ieee80211_frame *wh, struct ieee80211_meshgann_ie *ie, const uint8_t *frm, const uint8_t *efrm) argument 2556 mesh_recv_action_meshgate(struct ieee80211_node *ni, const struct ieee80211_frame *wh, const uint8_t *frm, const uint8_t *efrm) argument 3387 ieee80211_mesh_init_neighbor(struct ieee80211_node *ni, const struct ieee80211_frame *wh, const struct ieee80211_scanparams *sp) argument [all...] |
H A D | ieee80211_crypto_tkip.c | 188 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); local 191 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, 229 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); local 237 hdrlen = ieee80211_hdrspace(ic, wh); 264 struct ieee80211_frame *wh; local 271 wh = mtod(m, struct ieee80211_frame *); 277 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, 286 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, 292 tid = ieee80211_gettid(wh); 299 ieee80211_notify_replay_failure(vap, wh, 338 struct ieee80211_frame *wh; local 777 const struct ieee80211_frame_addr4 *wh = local 938 struct ieee80211_frame *wh; local 964 struct ieee80211_frame *wh; local [all...] |
/freebsd-11-stable/tools/tools/net80211/w00t/expand/ |
H A D | expand.c | 52 struct ieee80211_frame *wh; member in struct:queue 86 int wanted(struct params *p, struct ieee80211_frame *wh, int len) argument 90 if (wh->i_fc[1] & IEEE80211_FC1_DIR_TODS) { 91 bssid = wh->i_addr1; 92 sa = wh->i_addr2; 95 bssid = wh->i_addr2; 96 sa = wh->i_addr3; 102 if (!(wh->i_fc[1] & IEEE80211_FC1_PROTECTED)) { 114 void enque(struct params *p, char **buf, struct ieee80211_frame *wh, int len) argument 154 q->wh 181 struct ieee80211_frame *wh; local 319 got_mcast(struct params *p, struct ieee80211_frame *wh, int len) argument 328 struct ieee80211_frame *wh; local [all...] |
/freebsd-11-stable/tools/tools/net80211/w00t/prga/ |
H A D | prga.c | 150 int is_arp(struct ieee80211_frame *wh, int len) argument 153 if (len > (sizeof(*wh) + 4 + 4 + 39)) 163 struct ieee80211_frame *wh; local 172 wh = get_wifi(buf, &rc); 173 if (!wh) 176 if (!frame_type(wh, IEEE80211_FC0_TYPE_DATA, 180 if (is_arp(wh, rc)) 185 if (wh->i_fc[1] & IEEE80211_FC1_DIR_TODS) 186 bssid = wh->i_addr1; 188 bssid = wh 239 struct ieee80211_frame *wh; local 259 struct ieee80211_frame *wh; local 341 struct ieee80211_frame *wh; local 408 struct ieee80211_frame *wh; local 510 struct ieee80211_frame *wh; local [all...] |
/freebsd-11-stable/tools/tools/net80211/w00t/redir/ |
H A D | redir.c | 53 struct ieee80211_frame *wh; member in struct:queue 127 int wanted(struct params *p, struct ieee80211_frame *wh, int len) argument 131 if (wh->i_fc[1] & IEEE80211_FC1_DIR_TODS) { 132 bssid = wh->i_addr1; 133 sa = wh->i_addr2; 136 bssid = wh->i_addr2; 137 sa = wh->i_addr3; 143 if (!(wh->i_fc[1] & IEEE80211_FC1_PROTECTED)) { 155 void enque(struct params *p, char **buf, struct ieee80211_frame *wh, int len) argument 195 q->wh 237 struct ieee80211_frame *wh; local 257 struct ieee80211_frame *wh; local 334 struct ieee80211_frame *wh; local 388 struct ieee80211_frame *wh; local [all...] |
/freebsd-11-stable/tools/tools/net80211/w00t/libw00t/ |
H A D | w00t.h | 46 unsigned short seqno(struct ieee80211_frame *wh); 50 int wep_decrypt(struct ieee80211_frame *wh, int len, char *key, int klen); 51 void wep_encrypt(struct ieee80211_frame *wh, int len, char *key, int klen); 52 int frame_type(struct ieee80211_frame *wh, int type, int stype); 55 char *known_pt(struct ieee80211_frame *wh, int *len);
|
H A D | w00t.c | 81 unsigned short seqno(struct ieee80211_frame *wh) argument 83 unsigned short *s = (unsigned short*) wh->i_seq; 305 int wep_decrypt(struct ieee80211_frame *wh, int len, char *key, int klen) argument 309 char *p = (char*) (wh+1); 319 len -= sizeof(*wh); 333 void wep_encrypt(struct ieee80211_frame *wh, int len, char *key, int klen) argument 337 char *p = (char*) (wh+1); 347 len -= sizeof(*wh); 356 int frame_type(struct ieee80211_frame *wh, int type, int stype) argument 358 if ((wh 393 is_arp(struct ieee80211_frame *wh, int len) argument 402 known_pt(struct ieee80211_frame *wh, int *len) argument [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/include/net/ |
H A D | ipv6.h | 66 static inline void __ipv6_addr_set_half(__be32 *addr, __be32 wh, __be32 wl) argument 70 if (__builtin_constant_p(wh) && __builtin_constant_p(wl)) { 71 *(__force u64 *)addr = ((__force u64)(wh) << 32 | (__force u64)(wl)); 75 if (__builtin_constant_p(wl) && __builtin_constant_p(wh)) { 76 *(__force u64 *)addr = ((__force u64)(wl) << 32 | (__force u64)(wh)); 81 addr[0] = wh;
|
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/ |
H A D | wesside.c | 82 struct ieee80211_frame wh; member in struct:frag_state 585 void fill_basic(struct ieee80211_frame* wh) { argument 588 memcpy(wh->i_addr1, victim.bss, 6); 589 memcpy(wh->i_addr2, mymac, 6); 590 memcpy(wh->i_addr3, victim.bss, 6); 594 sp = (unsigned short*) wh->i_seq; 597 sp = (unsigned short*) wh->i_dur; 603 struct ieee80211_frame* wh = (struct ieee80211_frame*) buf; local 608 fill_basic(wh); 609 wh 659 struct ieee80211_frame* wh = (struct ieee80211_frame*) buf; local 673 get_victim_ssid(struct ieee80211_frame* wh, int len) argument 995 stuff_for_us(struct ieee80211_frame* wh, int len) argument 1154 decrypt_arpreq(struct ieee80211_frame* wh, int rd) argument 1206 log_wep(struct ieee80211_frame* wh, int len) argument 1242 try_dictionary(struct ieee80211_frame* wh, int len) argument 1336 is_arp(struct ieee80211_frame *wh, int len) argument 1346 get_sa(struct ieee80211_frame *wh) argument 1354 get_da(struct ieee80211_frame *wh) argument 1362 known_clear(void *clear, struct ieee80211_frame *wh, int len) argument 1415 add_keystream(struct ieee80211_frame* wh, int rd) argument 1433 got_wep(struct ieee80211_frame* wh, int rd) argument 1552 stuff_for_net(struct ieee80211_frame* wh, int rd) argument 1588 struct ieee80211_frame* wh = (struct ieee80211_frame *) buf; local 1691 struct ieee80211_frame* wh; local 1850 struct ieee80211_frame* wh; local 1969 struct ieee80211_frame* wh; local 2220 struct ieee80211_frame* wh; local [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-enc.c | 82 #define ENC_PRINT_TYPE(wh, xf, nam) \ 83 if ((wh) & (xf)) { \ 84 ND_PRINT((ndo, "%s%s", nam, (wh) == (xf) ? "): " : ",")); \ 85 (wh) &= ~(xf); \
|
/freebsd-11-stable/tools/tools/net80211/wlaninject/ |
H A D | wlaninject.c | 297 int header_len(struct ieee80211_frame *wh) argument 299 int len = sizeof(*wh); 301 switch (wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) { 303 switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { 343 wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK); 348 switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { 372 wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK); 377 if (wh->i_fc[1] & IEEE80211_FC1_DIR_DSTODS) 378 len += sizeof(wh->i_addr1); 383 wh 471 struct ieee80211_frame *wh; local 539 struct ieee80211_frame *wh = &u.w; local [all...] |
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_pppoe.c | 392 * Also assume that neg->wh points to the correct 397 struct pppoe_full_hdr *wh = &sp->neg->pkt->pkt_header; local 408 dp = (char *)(&wh->ph + 1); 413 if ((length + tlen) > (ETHER_MAX_LEN - 4 - sizeof(*wh))) { 422 wh->ph.length = htons(length); 423 sp->neg->m->m_len = length + sizeof(*wh); 424 sp->neg->m->m_pkthdr.len = length + sizeof(*wh); 583 pppoe_findsession(priv_p privp, const struct pppoe_full_hdr *wh) argument 585 uint16_t session = ntohs(wh->ph.sid); 593 wh 1143 struct pppoe_full_hdr *wh; local 1186 struct pppoe_full_hdr *wh; local 1411 struct pppoe_full_hdr *wh; local 1560 const struct pppoe_full_hdr *wh; local 2034 struct pppoe_full_hdr *wh; local [all...] |