| /freebsd/contrib/wpa/src/ap/ |
| H A D | preauth_auth.c | 48 struct l2_ethhdr *ethhdr; in rsn_preauth_receive() local 52 if (len < sizeof(*ethhdr) + sizeof(*hdr)) { in rsn_preauth_receive() 58 ethhdr = (struct l2_ethhdr *) buf; in rsn_preauth_receive() 59 hdr = (struct ieee802_1x_hdr *) (ethhdr + 1); in rsn_preauth_receive() 61 if (!ether_addr_equal(ethhdr->h_dest, hapd->own_addr)) { in rsn_preauth_receive() 63 MACSTR, MAC2STR(ethhdr->h_dest)); in rsn_preauth_receive() 67 sta = ap_get_sta(hapd, ethhdr->h_source); in rsn_preauth_receive() 74 sta = ap_sta_add(hapd, ethhdr->h_source); in rsn_preauth_receive() 92 ieee802_1x_receive(hapd, ethhdr->h_source, (u8 *) (ethhdr + 1), in rsn_preauth_receive() 93 len - sizeof(*ethhdr), FRAME_ENCRYPTION_UNKNOWN); in rsn_preauth_receive() [all …]
|
| H A D | eth_p_oui.c | 55 const struct l2_ethhdr *ethhdr; in eth_p_rx() local 57 if (len < sizeof(*ethhdr) + sizeof(global_oui) + 1) { in eth_p_rx() 62 ethhdr = (struct l2_ethhdr *) buf; in eth_p_rx() 64 buf += sizeof(*ethhdr); in eth_p_rx() 65 len -= sizeof(*ethhdr); in eth_p_rx() 78 eth_p_oui_deliver(receiver, ethhdr->h_source, ethhdr->h_dest, in eth_p_rx() 168 struct l2_ethhdr *ethhdr; in eth_p_oui_send() local 170 packet_len = sizeof(*ethhdr) + sizeof(global_oui) + 1 + len; in eth_p_oui_send() 176 ethhdr = (struct l2_ethhdr *) packet; in eth_p_oui_send() 177 os_memcpy(ethhdr->h_source, src_addr, ETH_ALEN); in eth_p_oui_send() [all …]
|
| H A D | wpa_auth_glue.c | 1588 struct l2_ethhdr *ethhdr; in hostapd_rrb_receive() local 1589 if (len < sizeof(*ethhdr)) in hostapd_rrb_receive() 1591 ethhdr = (struct l2_ethhdr *) buf; in hostapd_rrb_receive() 1593 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); in hostapd_rrb_receive() 1594 if (!is_multicast_ether_addr(ethhdr->h_dest) && in hostapd_rrb_receive() 1595 !ether_addr_equal(hapd->own_addr, ethhdr->h_dest)) in hostapd_rrb_receive() 1597 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive() 1598 len - sizeof(*ethhdr)); in hostapd_rrb_receive()
|
| /freebsd/contrib/wpa/src/l2_packet/ |
| H A D | l2_packet_pcap.c | 124 struct l2_ethhdr *ethhdr; in l2_packet_receive() local 130 if (!l2->rx_callback || !packet || hdr.caplen < sizeof(*ethhdr)) in l2_packet_receive() 133 ethhdr = (struct l2_ethhdr *) packet; in l2_packet_receive() 135 buf = (unsigned char *) ethhdr; in l2_packet_receive() 138 buf = (unsigned char *) (ethhdr + 1); in l2_packet_receive() 139 len = hdr.caplen - sizeof(*ethhdr); in l2_packet_receive() 141 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); in l2_packet_receive() 151 struct l2_ethhdr *ethhdr; in l2_packet_receive_cb() local 155 if (!l2->rx_callback || !pkt_data || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb() 158 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb() [all …]
|
| H A D | l2_packet_freebsd.c | 86 struct l2_ethhdr *ethhdr; in l2_packet_receive() local 96 if (!l2->rx_callback || !packet || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive() 99 ethhdr = (struct l2_ethhdr *) packet; in l2_packet_receive() 101 buf = (unsigned char *) ethhdr; in l2_packet_receive() 104 buf = (unsigned char *) (ethhdr + 1); in l2_packet_receive() 105 len = hdr->caplen - sizeof(*ethhdr); in l2_packet_receive() 109 ethhdr->h_proto == htons(ETH_P_8021Q)) { in l2_packet_receive() 114 l2->rx_callback(l2->rx_callback_ctx, ethhdr->h_source, buf, len); in l2_packet_receive()
|
| H A D | l2_packet_winpcap.c | 106 struct l2_ethhdr *ethhdr; in l2_packet_receive_cb() local 108 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb() 111 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb() 113 l2->rx_buf = (u8 *) ethhdr; in l2_packet_receive_cb() 116 l2->rx_buf = (u8 *) (ethhdr + 1); in l2_packet_receive_cb() 117 l2->rx_len = hdr->caplen - sizeof(*ethhdr); in l2_packet_receive_cb() 119 l2->rx_src = ethhdr->h_source; in l2_packet_receive_cb()
|
| H A D | l2_packet_ndis.c | 283 struct l2_ethhdr *ethhdr = (struct l2_ethhdr *) l2->rx_buf; in l2_packet_callback() local 288 if (l2->l2_hdr || l2->rx_written < sizeof(*ethhdr)) { in l2_packet_callback() 289 rx_buf = (u8 *) ethhdr; in l2_packet_callback() 292 rx_buf = (u8 *) (ethhdr + 1); in l2_packet_callback() 293 rx_len = l2->rx_written - sizeof(*ethhdr); in l2_packet_callback() 295 rx_src = ethhdr->h_source; in l2_packet_callback()
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | if_ether.h | 67 struct ethhdr { struct 73 static inline struct ethhdr * argument 76 struct ethhdr *hdr; in eth_hdr() 78 hdr = (struct ethhdr *)skb_mac_header(skb); in eth_hdr()
|
| /freebsd/sys/contrib/dev/athk/ath10k/ |
| H A D | wow.c | 96 struct ethhdr *old_hdr_pattern = (struct ethhdr *)hdr_8023_pattern; in ath10k_wow_convert_8023_to_80211() 97 struct ethhdr *old_hdr_mask = (struct ethhdr *)hdr_8023_bit_mask; in ath10k_wow_convert_8023_to_80211() 131 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 134 offsetof(struct ethhdr, h_source); in ath10k_wow_convert_8023_to_80211() 141 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | wow.c | 169 struct ethhdr *old_hdr_pattern = (struct ethhdr *)hdr_8023_pattern; in ath11k_wow_convert_8023_to_80211() 170 struct ethhdr *old_hdr_mask = (struct ethhdr *)hdr_8023_bit_mask; in ath11k_wow_convert_8023_to_80211() 210 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211() 213 offsetof(struct ethhdr, h_source); in ath11k_wow_convert_8023_to_80211() 220 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
|
| H A D | dp_rx.c | 2162 struct ethhdr *eth; in ath11k_dp_rx_h_undecap_eth() 2173 eth = (struct ethhdr *)msdu->data; in ath11k_dp_rx_h_undecap_eth() 2176 skb_pull(msdu, sizeof(struct ethhdr)); in ath11k_dp_rx_h_undecap_eth() 2215 struct ethhdr *ehdr; in ath11k_dp_rx_h_undecap() 2230 ehdr = (struct ethhdr *)msdu->data; in ath11k_dp_rx_h_undecap()
|
| /freebsd/sys/dev/usb/net/ |
| H A D | if_usievar.h | 194 struct ether_header ethhdr; member
|
| /freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/ |
| H A D | core.c | 299 struct ethhdr *eh; in brcmf_netdev_start_xmit() 356 eh = (struct ethhdr *)(skb->data); in brcmf_netdev_start_xmit() 545 struct ethhdr *eh; in brcmf_txfinalize() 553 eh = (struct ethhdr *)(txp->data); in brcmf_txfinalize()
|
| H A D | fweh.h | 245 struct ethhdr eth;
|
| H A D | msgbuf.c | 679 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_flowring_create() 815 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_msgbuf_tx_queue_data()
|
| H A D | fwsignal.c | 2113 struct ethhdr *eh = (struct ethhdr *)(skb->data); in brcmf_fws_process_skb()
|
| /freebsd/sys/contrib/dev/athk/ath12k/wifi7/ |
| H A D | hw.c | 780 struct ethhdr *eth; in ath12k_wifi7_mac_op_tx() 833 eth = (struct ethhdr *)skb->data; in ath12k_wifi7_mac_op_tx()
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | dp_rx.c | 1098 struct ethhdr *eth; in ath12k_dp_rx_h_undecap_eth() 1104 eth = (struct ethhdr *)msdu->data; in ath12k_dp_rx_h_undecap_eth() 1127 struct ethhdr *ehdr; in ath12k_dp_rx_h_undecap() 1138 ehdr = (struct ethhdr *)msdu->data; in ath12k_dp_rx_h_undecap()
|
| H A D | wow.c | 171 size_t prot_ofs = offsetof(struct ethhdr, h_proto); in ath12k_wow_convert_8023_to_80211() 172 size_t src_ofs = offsetof(struct ethhdr, h_source); in ath12k_wow_convert_8023_to_80211()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/ |
| H A D | mt76_connac_mac.c | 959 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_offset); in mt76_connac2_reverse_frag0_hdr_trans() 1001 skb_pull(skb, hdr_offset + sizeof(struct ethhdr) - 2); in mt76_connac2_reverse_frag0_hdr_trans()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7925/ |
| H A D | mac.c | 172 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7925_reverse_frag0_hdr_trans() 220 skb_pull(skb, hdr_gap + sizeof(struct ethhdr) - 2); in mt7925_reverse_frag0_hdr_trans()
|
| /freebsd/sys/contrib/dev/iwlwifi/pcie/gen1_2/ |
| H A D | tx-gen2.c | 189 (3 + snap_ip_tcp_hdrlen + sizeof(struct ethhdr)); in iwl_txq_gen2_build_amsdu() 225 amsdu_pad = (4 - (sizeof(struct ethhdr) + snap_ip_tcp_hdrlen + in iwl_txq_gen2_build_amsdu()
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
| H A D | mac.c | 255 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7615_reverse_frag0_hdr_trans() 303 skb_pull(skb, hdr_gap + sizeof(struct ethhdr) - 2); in mt7615_reverse_frag0_hdr_trans()
|
| /freebsd/sys/contrib/dev/iwlwifi/queue/ |
| H A D | tx.c | |
| /freebsd/sys/dev/bnxt/bnxt_re/ |
| H A D | ib_verbs.c | 4249 struct ethhdr *eth_hdr; in bnxt_re_is_loopback_packet() 4262 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_loopback_packet() 4281 struct ethhdr *eth_hdr; in bnxt_re_is_vlan_in_packet() 4287 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_vlan_in_packet() 4290 tmp_buf += sizeof(struct ethhdr); in bnxt_re_is_vlan_in_packet()
|