Home
last modified time | relevance | path

Searched refs:ethhdr (Results 1 – 25 of 25) sorted by relevance

/freebsd/contrib/wpa/src/ap/
H A Dpreauth_auth.c48 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 Deth_p_oui.c55 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 Dwpa_auth_glue.c1414 struct l2_ethhdr *ethhdr; in hostapd_rrb_receive() local
1415 if (len < sizeof(*ethhdr)) in hostapd_rrb_receive()
1417 ethhdr = (struct l2_ethhdr *) buf; in hostapd_rrb_receive()
1419 MACSTR, MAC2STR(ethhdr->h_source), MAC2STR(ethhdr->h_dest)); in hostapd_rrb_receive()
1420 if (!is_multicast_ether_addr(ethhdr->h_dest) && in hostapd_rrb_receive()
1421 !ether_addr_equal(hapd->own_addr, ethhdr->h_dest)) in hostapd_rrb_receive()
1423 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive()
1424 len - sizeof(*ethhdr)); in hostapd_rrb_receive()
/freebsd/contrib/wpa/src/l2_packet/
H A Dl2_packet_pcap.c124 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 Dl2_packet_freebsd.c86 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 Dl2_packet_winpcap.c106 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 Dl2_packet_ndis.c283 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 Dif_ether.h67 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 Dwow.c95 struct ethhdr *old_hdr_pattern = (struct ethhdr *)hdr_8023_pattern; in ath10k_wow_convert_8023_to_80211()
96 struct ethhdr *old_hdr_mask = (struct ethhdr *)hdr_8023_bit_mask; in ath10k_wow_convert_8023_to_80211()
130 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
133 offsetof(struct ethhdr, h_source); in ath10k_wow_convert_8023_to_80211()
140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
H A Dhtt_rx.c1742 struct ethhdr *eth; in ath10k_htt_rx_h_undecap_eth()
1772 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1775 skb_pull(msdu, sizeof(struct ethhdr)); in ath10k_htt_rx_h_undecap_eth()
H A Dwmi.h7114 #define WOW_MAX_REDUCE (WOW_HDR_LEN - sizeof(struct ethhdr) - \
H A Dmac.c3830 struct ethhdr *eth; in ath10k_tx_h_8023()
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dwow.c166 struct ethhdr *old_hdr_pattern = (struct ethhdr *)hdr_8023_pattern; in ath11k_wow_convert_8023_to_80211()
167 struct ethhdr *old_hdr_mask = (struct ethhdr *)hdr_8023_bit_mask; in ath11k_wow_convert_8023_to_80211()
201 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
204 offsetof(struct ethhdr, h_source); in ath11k_wow_convert_8023_to_80211()
211 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath11k_wow_convert_8023_to_80211()
H A Ddp_rx.c2169 struct ethhdr *eth; in ath11k_dp_rx_h_undecap_eth()
2180 eth = (struct ethhdr *)msdu->data; in ath11k_dp_rx_h_undecap_eth()
2183 skb_pull(msdu, sizeof(struct ethhdr)); in ath11k_dp_rx_h_undecap_eth()
2222 struct ethhdr *ehdr; in ath11k_dp_rx_h_undecap()
2237 ehdr = (struct ethhdr *)msdu->data; in ath11k_dp_rx_h_undecap()
H A Dwmi.h5957 #define WOW_MAX_REDUCE (WOW_HDR_LEN - sizeof(struct ethhdr) - \
/freebsd/sys/dev/usb/net/
H A Dif_usievar.h194 struct ether_header ethhdr; member
H A Dif_usie.c871 switch (be16toh(rxd->ethhdr.ether_type)) { in usie_if_rx_callback()
/freebsd/sys/contrib/dev/mediatek/mt76/
H A Dmt76_connac_mac.c940 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_offset); in mt76_connac2_reverse_frag0_hdr_trans()
982 skb_pull(skb, hdr_offset + sizeof(struct ethhdr) - 2); in mt76_connac2_reverse_frag0_hdr_trans()
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dtx.c1948 (3 + snap_ip_tcp_hdrlen + sizeof(struct ethhdr)) + iv_len;
1987 amsdu_pad = (4 - (sizeof(struct ethhdr) + snap_ip_tcp_hdrlen +
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dmac.c258 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7615_reverse_frag0_hdr_trans()
306 skb_pull(skb, hdr_gap + sizeof(struct ethhdr) - 2); in mt7615_reverse_frag0_hdr_trans()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/
H A Dmac.c269 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7996_reverse_frag0_hdr_trans()
317 skb_pull(skb, hdr_gap + sizeof(struct ethhdr) - 2); in mt7996_reverse_frag0_hdr_trans()
/freebsd/sys/contrib/dev/iwlwifi/queue/
H A Dtx.c
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp_rx.c2118 struct ethhdr *eth; in ath12k_dp_rx_h_undecap_eth()
2124 eth = (struct ethhdr *)msdu->data; in ath12k_dp_rx_h_undecap_eth()
2149 struct ethhdr *ehdr; in ath12k_dp_rx_h_undecap()
2162 ehdr = (struct ethhdr *)msdu->data; in ath12k_dp_rx_h_undecap()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c4262 struct ethhdr *eth_hdr; in bnxt_re_is_loopback_packet()
4275 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_loopback_packet()
4294 struct ethhdr *eth_hdr; in bnxt_re_is_vlan_in_packet()
4300 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_vlan_in_packet()
4303 tmp_buf += sizeof(struct ethhdr); in bnxt_re_is_vlan_in_packet()
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dtx.c1074 subf_len = sizeof(struct ethhdr) + snap_ip_tcp + mss; in iwl_mvm_tx_tso()