/haiku/src/libs/compat/openbsd_wlan/net80211/ |
H A D | ieee80211_crypto_wep.c | 108 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_wep_encrypt() 110 memcpy(mtod(n0, caddr_t), wh, hdrlen); in ieee80211_wep_encrypt() 118 ivp = mtod(n0, u_int8_t *) + hdrlen; in ieee80211_wep_encrypt() 161 crc = ether_crc32_le_update(crc, mtod(m, caddr_t) + moff, len); in ieee80211_wep_encrypt() 162 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff, in ieee80211_wep_encrypt() 163 mtod(n, caddr_t) + noff, len); in ieee80211_wep_encrypt() 180 icvp = mtod(n, caddr_t) + n->m_len; in ieee80211_wep_encrypt() 211 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_wep_decrypt() 242 memcpy(mtod(n0, caddr_t), wh, hdrlen); in ieee80211_wep_decrypt() 243 wh = mtod(n0, struct ieee80211_frame *); in ieee80211_wep_decrypt() [all …]
|
H A D | ieee80211_crypto_tkip.c | 130 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_tkip_mic() 165 pos = mtod(m, caddr_t) + off; in ieee80211_tkip_mic() 171 pos = mtod(m, caddr_t); in ieee80211_tkip_mic() 212 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_tkip_encrypt() 214 memcpy(mtod(n0, caddr_t), wh, hdrlen); in ieee80211_tkip_encrypt() 219 ivp = mtod(n0, u_int8_t *) + hdrlen; in ieee80211_tkip_encrypt() 270 crc = ether_crc32_le_update(crc, mtod(m, caddr_t) + moff, len); in ieee80211_tkip_encrypt() 271 rc4_crypt(&ctx->rc4, mtod(m, caddr_t) + moff, in ieee80211_tkip_encrypt() 272 mtod(n, caddr_t) + noff, len); in ieee80211_tkip_encrypt() 289 mic = mtod(n, caddr_t) + n->m_len; in ieee80211_tkip_encrypt() [all …]
|
H A D | ieee80211_crypto_ccmp.c | 195 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_ccmp_encrypt() 197 memcpy(mtod(n0, caddr_t), wh, hdrlen); in ieee80211_ccmp_encrypt() 202 ivp = mtod(n0, u_int8_t *) + hdrlen; in ieee80211_ccmp_encrypt() 253 src = mtod(m, u_int8_t *) + moff; in ieee80211_ccmp_encrypt() 254 dst = mtod(n, u_int8_t *) + noff; in ieee80211_ccmp_encrypt() 288 mic = mtod(n, u_int8_t *) + n->m_len; in ieee80211_ccmp_encrypt() 311 wh = mtod(m, struct ieee80211_frame *); in ieee80211_ccmp_get_pn() 358 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_ccmp_decrypt() 401 memcpy(mtod(n0, caddr_t), wh, hdrlen); in ieee80211_ccmp_decrypt() 402 wh = mtod(n0, struct ieee80211_frame *); in ieee80211_ccmp_decrypt() [all …]
|
H A D | ieee80211_output.c | 138 wh = mtod(m, struct ieee80211_frame *); in ieee80211_output() 201 wh = mtod(m, struct ieee80211_frame *); in ieee80211_mgmt_output() 546 wh = mtod(m, struct ieee80211_frame *); in ieee80211_encap() 588 memcpy(&eh, mtod(m, caddr_t), sizeof(struct ether_header)); in ieee80211_encap() 643 llc = mtod(m, struct llc *); in ieee80211_encap() 655 wh = mtod(m, struct ieee80211_frame *); in ieee80211_encap() 1281 frm = mtod(m, u_int8_t *); in ieee80211_get_probe_req() 1293 m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *); in ieee80211_get_probe_req() 1341 frm = mtod(m, u_int8_t *); in ieee80211_get_probe_resp() 1369 m->m_pkthdr.len = m->m_len = frm - mtod(m, u_int8_t *); in ieee80211_get_probe_resp() [all …]
|
H A D | ieee80211_crypto_bip.c | 96 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_bip_encap() 127 mmie = mtod(m, u_int8_t *) + m->m_len; in ieee80211_bip_encap() 161 wh = mtod(m0, struct ieee80211_frame *); in ieee80211_bip_decap() 171 mmie = mtod(m0, u_int8_t *) + m0->m_len - IEEE80211_MMIE_LEN; in ieee80211_bip_decap()
|
H A D | ieee80211_input.c | 170 wh = mtod(m, struct ieee80211_frame *); in ieee80211_input_hwdecrypt() 211 memmove(mtod(m, caddr_t) + IEEE80211_CCMP_HDRLEN, wh, hdrlen); in ieee80211_input_hwdecrypt() 240 wh = mtod(m, struct ieee80211_frame *); in ieee80211_input_hwdecrypt() 242 memmove(mtod(m, caddr_t) + IEEE80211_TKIP_HDRLEN, wh, hdrlen); in ieee80211_input_hwdecrypt() 295 wh = mtod(m, struct ieee80211_frame *); in ieee80211_inputm() 598 wh = mtod(m, struct ieee80211_frame *); in ieee80211_inputm() 655 wh = mtod(m, struct ieee80211_frame *); in ieee80211_inputm() 736 wh = mtod(m, struct ieee80211_frame *); in ieee80211_defrag() 765 owh = mtod(df->df_m, struct ieee80211_frame *); in ieee80211_defrag() 829 wh = mtod(m, struct ieee80211_frame *); in ieee80211_input_ba() [all …]
|
H A D | ieee80211_pae_output.c | 75 eh = mtod(m, struct ether_header *); in ieee80211_send_eapol_key() 274 key = mtod(m, struct ieee80211_eapol_key *); in ieee80211_send_4way_msg1() 325 key = mtod(m, struct ieee80211_eapol_key *); in ieee80211_send_4way_msg2() 390 key = mtod(m, struct ieee80211_eapol_key *); in ieee80211_send_4way_msg3() 451 key = mtod(m, struct ieee80211_eapol_key *); in ieee80211_send_4way_msg4() 515 key = mtod(m, struct ieee80211_eapol_key *); in ieee80211_send_group_msg1() 575 key = mtod(m, struct ieee80211_eapol_key *); in ieee80211_send_group_msg2() 618 key = mtod(m, struct ieee80211_eapol_key *); in ieee80211_send_eapol_key_req()
|
/haiku/src/libs/compat/freebsd_wlan/net80211/ |
H A D | ieee80211_crypto_wep.c | 188 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); in wep_encap() 189 wh = mtod(m, struct ieee80211_frame *); in wep_encap() 206 ivp = mtod(m, uint8_t *); in wep_encap() 259 wh = mtod(m, struct ieee80211_frame *); in wep_decap() 270 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + wep.ic_header, hdrlen); in wep_decap() 362 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_encrypt() 381 pos = mtod(m, uint8_t *) + off; in wep_encrypt() 397 ether_sprintf(mtod(m0, in wep_encrypt() 407 pos = mtod(m, uint8_t *); in wep_encrypt() 445 memcpy(rc4key, mtod(m, uint8_t *) + hdrlen, IEEE80211_WEP_IVLEN); in wep_decrypt() [all …]
|
H A D | ieee80211_crypto_ccmp.c | 172 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); in ccmp_encap() 173 wh = mtod(m, const struct ieee80211_frame *); in ccmp_encap() 193 ivp = mtod(m, uint8_t *); in ccmp_encap() 251 wh = mtod(m, struct ieee80211_frame *); in ccmp_decap() 252 ivp = mtod(m, uint8_t *) + hdrlen; in ccmp_decap() 290 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + ccmp.ic_header, in ccmp_decap() 460 wh = mtod(m, struct ieee80211_frame *); in ccmp_encrypt() 466 pos = mtod(m, uint8_t *) + hdrlen + ccmp.ic_header; in ccmp_encrypt() 512 pos_next = mtod(n, uint8_t *); in ccmp_encrypt() 541 pos_next = mtod(m, uint8_t *); in ccmp_encrypt() [all …]
|
H A D | ieee80211_crypto_tkip.c | 185 wh = mtod(m, struct ieee80211_frame *); in tkip_encap() 193 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in tkip_encap() 210 hdrlen = ieee80211_hdrspace(ic, mtod(m, void *)); in tkip_encap() 218 ivp = mtod(m, uint8_t *); in tkip_encap() 244 wh = mtod(m, struct ieee80211_frame *); in tkip_enmic() 256 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in tkip_enmic() 307 wh = mtod(m, struct ieee80211_frame *); in tkip_decap() 308 ivp = mtod(m, uint8_t *) + hdrlen; in tkip_decap() 364 memmove(mtod(m, uint8_t *) + tkip.ic_header, mtod(m, void *), in tkip_decap() 389 wh = mtod(m, struct ieee80211_frame *); in tkip_demic() [all …]
|
H A D | ieee80211_input.c | 177 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in ieee80211_defrag() 226 lwh = mtod(mfrag, struct ieee80211_frame *); in ieee80211_defrag() 268 wh = mtod(mfrag, struct ieee80211_frame *); in ieee80211_defrag() 279 struct ether_header *eh = mtod(m, struct ether_header *); in ieee80211_deliver_data() 331 memcpy(&wh, mtod(m, caddr_t), hdrlen); in ieee80211_decap() 332 llc = (struct llc *)(mtod(m, caddr_t) + hdrlen); in ieee80211_decap() 346 eh = mtod(m, struct ether_header *); in ieee80211_decap() 366 if (!ALIGNED_POINTER(mtod(m, caddr_t) + sizeof(*eh), uint32_t)) { in ieee80211_decap() 373 eh = mtod(m, struct ether_header *); in ieee80211_decap() 403 eh = mtod(m, struct ether_header *); /* 802.3 header is first */ in ieee80211_decap1() [all …]
|
H A D | ieee80211_crypto_none.c | 103 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in none_encap() 124 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in none_decap()
|
H A D | ieee80211_wds.c | 233 const struct ether_header *eh = mtod(m, const struct ether_header *); in ieee80211_dwds_mcast() 438 wh = mtod(m, struct ieee80211_frame *); in wds_input() 463 wh = mtod(m, struct ieee80211_frame *); in wds_input() 570 wh = mtod(m, struct ieee80211_frame *); in wds_input() 631 eh = mtod(m, struct ether_header *); in wds_input() 750 wh = mtod(m0, struct ieee80211_frame *); in wds_recv_mgmt() 752 efrm = mtod(m0, u_int8_t *) + m0->m_len; in wds_recv_mgmt()
|
H A D | ieee80211_superg.c | 296 llc = (struct llc *)(mtod(m, uint8_t *) + in ieee80211_ff_decap() 382 ETHER_HEADER_COPY(&eh1, mtod(m1, caddr_t)); in ieee80211_ff_encap() 397 ETHER_HEADER_COPY(&eh2, mtod(m2, caddr_t)); in ieee80211_ff_encap() 453 memset(mtod(m1, void *), 0, sizeof(uint32_t)+2); in ieee80211_ff_encap() 462 llc = mtod(m1, struct llc *); in ieee80211_ff_encap() 513 ETHER_HEADER_COPY(&eh1, mtod(m1, caddr_t)); in ieee80211_amsdu_encap() 531 ETHER_HEADER_COPY(&eh2, mtod(m2, caddr_t)); in ieee80211_amsdu_encap() 808 ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) { in ieee80211_ff_check() 911 if (ETHER_IS_MULTICAST(mtod(m, struct ether_header *)->ether_dhost)) in ieee80211_amsdu_check()
|
H A D | ieee80211_output.c | 376 eh = mtod(m, struct ether_header *); in ieee80211_start_pkt() 605 wh = mtod(m, struct ieee80211_frame *); in ieee80211_validate_frame() 811 wh = mtod(m, struct ieee80211_frame *); in ieee80211_output() 898 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in ieee80211_send_setup() 1044 wh = mtod(m, struct ieee80211_frame *); in ieee80211_mgmt_output() 1143 wh = mtod(m, struct ieee80211_frame *); /* NB: a little lie */ in ieee80211_send_nulldata() 1209 struct ieee80211_frame *wh = mtod(m, struct ieee80211_frame *); in ieee80211_classify() 1234 eh = mtod(m, struct ether_header *); in ieee80211_classify() 1505 ETHER_HEADER_COPY(&eh, mtod(m, caddr_t)); in ieee80211_encap() 1665 llc = mtod(m, struct llc *); in ieee80211_encap() [all …]
|
H A D | ieee80211_adhoc.c | 337 wh = mtod(m, struct ieee80211_frame *); in adhoc_input() 363 wh = mtod(m, struct ieee80211_frame *); in adhoc_input() 509 wh = mtod(m, struct ieee80211_frame *); in adhoc_input() 570 eh = mtod(m, struct ether_header *); in adhoc_input() 716 wh = mtod(m0, struct ieee80211_frame *); in adhoc_recv_mgmt() 718 efrm = mtod(m0, uint8_t *) + m0->m_len; in adhoc_recv_mgmt() 1018 wh = mtod(m0, struct ieee80211_frame *); in ahdemo_recv_mgmt()
|
H A D | ieee80211_mesh.c | 1148 mtod(m, const struct ieee80211_frame *); in mesh_forward() 1193 whcopy = mtod(mcopy, struct ieee80211_frame *); in mesh_forward() 1195 (mtod(mcopy, uint8_t *) + ieee80211_hdrspace(ic, wh)); in mesh_forward() 1268 memcpy(b, mtod(m, caddr_t), hdrlen); in mesh_decap() 1275 llc = (struct llc *)(mtod(m, caddr_t) + hdrlen); in mesh_decap() 1287 eh = mtod(m, struct ether_header *); in mesh_decap() 1321 if (!ALIGNED_POINTER(mtod(m, caddr_t) + sizeof(*eh), uint32_t)) { in mesh_decap() 1328 eh = mtod(m, struct ether_header *); in mesh_decap() 1565 wh = mtod(m, struct ieee80211_frame *); in mesh_input() 1646 wh = mtod(m, struct ieee80211_frame *); /* NB: after defrag */ in mesh_input() [all …]
|
H A D | ieee80211_hostap.c | 360 struct ether_header *eh = mtod(m, struct ether_header *); in hostap_deliver_data() 508 wh = mtod(m, struct ieee80211_frame *); in hostap_input() 534 wh = mtod(m, struct ieee80211_frame *); in hostap_input() 702 wh = mtod(m, struct ieee80211_frame *); in hostap_input() 761 eh = mtod(m, struct ether_header *); in hostap_input() 878 wh = mtod(m, struct ieee80211_frame *); in hostap_input() 1669 l2uf = mtod(m, struct l2_update_frame *); in ieee80211_deliver_l2uf() 1776 wh = mtod(m0, struct ieee80211_frame *); in hostap_recv_mgmt() 1778 efrm = mtod(m0, uint8_t *) + m0->m_len; in hostap_recv_mgmt() 2416 wh = mtod(m0, struct ieee80211_frame_min *); in ieee80211_recv_pspoll()
|
H A D | ieee80211_crypto.c | 645 wh = mtod(m, struct ieee80211_frame *); in ieee80211_crypto_get_txkey() 735 wh = mtod(m, struct ieee80211_frame *); in ieee80211_crypto_decap() 788 wh = mtod(m, struct ieee80211_frame *); in ieee80211_crypto_demic()
|
/haiku/src/libs/compat/freebsd_network/ |
H A D | fbsd_uipc_mbuf.c | 488 bcopy(mtod(m, caddr_t)+off, mtod(n, caddr_t), in m_copym() 531 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket() 548 bcopy(mtod(m, char *), mtod(n, char *), n->m_len); in m_copypacket() 580 bcopy(mtod(m, caddr_t) + off, cp, count); in m_copydata() 681 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_cat() 816 bcopy(mtod(n, caddr_t), mtod(m, caddr_t) + m->m_len, in m_pullup() 860 memcpy(mtod(m, caddr_t) + m->m_len, mtod(n, caddr_t), in m_copyup() 951 bcopy(mtod(m, caddr_t) + len, mtod(n, caddr_t), remain); in m_split() 1014 copy(buf, mtod(m, caddr_t), (u_int)len); in m_devget() 1016 bcopy(buf, mtod(m, caddr_t), (u_int)len); in m_devget() [all …]
|
H A D | fbsd_uipc_mbuf2.c | 215 m_copydata(n->m_next, 0, tlen, mtod(n, caddr_t) + n->m_len); in m_pulldown() 224 bcopy(mtod(n, caddr_t) + off, mtod(n->m_next, caddr_t), hlen); in m_pulldown() 245 bcopy(mtod(n, caddr_t) + off, mtod(o, caddr_t), hlen); in m_pulldown() 248 m_copydata(n->m_next, 0, tlen, mtod(o, caddr_t) + o->m_len); in m_pulldown() 301 m_copydata(m, off, len, mtod(n, caddr_t)); in m_dup1()
|
H A D | fbsd_ether.c | 144 evl = mtod(m, struct ether_vlan_header *); in ether_vlanencap()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/ |
H A D | if_rtwn_tx.c | 125 wh = mtod(m, struct ieee80211_frame *); in rtwn_tx_data() 167 wh = mtod(m, struct ieee80211_frame *); in rtwn_tx_data() 215 wh = mtod(m, struct ieee80211_frame *); in rtwn_tx_raw()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/pci/ |
H A D | rtwn_pci_rx.c | 136 error = bus_dmamap_load(ring->data_dmat, rx_data->map, mtod(m1, void *), in rtwn_pci_rx_frame() 142 mtod(rx_data->m, void *), MJUMPAGESIZE, in rtwn_pci_rx_frame() 208 memcpy(pc->pc_rx_buf + desc_size, mtod(rx_data->m, void *), pktlen); in rtwn_pci_rx_buf_copy()
|
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/ |
H A D | if_malo.c | 1044 wh = mtod(m0, struct ieee80211_frame *); in malo_tx_start() 1086 wh = mtod(m0, struct ieee80211_frame *); in malo_tx_start() 1117 mtod(m0, const uint8_t *), m0->m_len, 0, -1); in malo_tx_start() 1124 tr = mtod(m0, struct malo_txrec *); in malo_tx_start() 1144 tr = mtod(m0, struct malo_txrec *); in malo_tx_start() 1185 mtod(m0, const uint8_t *)+sizeof(uint16_t), in malo_tx_start() 1350 mtod(m, caddr_t), MJUMPAGESIZE, in malo_getrxmbuf() 1591 mtod(bf->bf_m, const struct malo_txrec *); in malo_tx_draintxq() 2008 data = mtod(m, uint8_t *); in malo_rx_proc() 2046 wh = mtod(m, struct ieee80211_qosframe *); in malo_rx_proc() [all …]
|