Home
last modified time | relevance | path

Searched refs:eth_hdr (Results 1 – 8 of 8) sorted by relevance

/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dif_ether.h74 eth_hdr(const struct sk_buff *skb) in eth_hdr() function
/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() local
969 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt76_connac2_reverse_frag0_hdr_trans()
972 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt76_connac2_reverse_frag0_hdr_trans()
975 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt76_connac2_reverse_frag0_hdr_trans()
976 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt76_connac2_reverse_frag0_hdr_trans()
983 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt76_connac2_reverse_frag0_hdr_trans()
984 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt76_connac2_reverse_frag0_hdr_trans()
986 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN) in mt76_connac2_reverse_frag0_hdr_trans()
/freebsd/contrib/wpa/src/pae/
H A Dieee802_1x_kay.c3105 struct ieee8023_hdr *eth_hdr; in ieee802_1x_kay_mkpdu_validity_check() local
3118 eth_hdr = (struct ieee8023_hdr *) buf; in ieee802_1x_kay_mkpdu_validity_check()
3119 eapol_hdr = (struct ieee802_1x_hdr *) (eth_hdr + 1); in ieee802_1x_kay_mkpdu_validity_check()
3124 MAC2STR(eth_hdr->dest), MAC2STR(eth_hdr->src), in ieee802_1x_kay_mkpdu_validity_check()
3125 be_to_host16(eth_hdr->ethertype)); in ieee802_1x_kay_mkpdu_validity_check()
3128 if (!ether_addr_equal(eth_hdr->dest, pae_group_addr)) { in ieee802_1x_kay_mkpdu_validity_check()
3440 struct ieee8023_hdr *eth_hdr; in kay_l2_receive() local
3447 if (len < sizeof(*eth_hdr) + sizeof(*eapol_hdr)) { in kay_l2_receive()
3453 eth_hdr = (struct ieee8023_hdr *) buf; in kay_l2_receive()
3454 eapol_hdr = (struct ieee802_1x_hdr *) (eth_hdr + 1); in kay_l2_receive()
[all …]
/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() local
293 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt7615_reverse_frag0_hdr_trans()
296 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7615_reverse_frag0_hdr_trans()
299 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7615_reverse_frag0_hdr_trans()
300 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt7615_reverse_frag0_hdr_trans()
307 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt7615_reverse_frag0_hdr_trans()
308 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt7615_reverse_frag0_hdr_trans()
310 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN) in mt7615_reverse_frag0_hdr_trans()
/freebsd/sys/dev/ice/
H A Dice_protocol_type.h306 struct ice_ether_hdr eth_hdr;
305 struct ice_ether_hdr eth_hdr; global() member
H A Dice_switch.c1233 u8 *eth_hdr; in ice_fill_sw_rule()
1246 eth_hdr = s_rule->hdr_data; in ice_fill_sw_rule()
1249 ice_memcpy(eth_hdr, dummy_eth_header, eth_hdr_sz, ICE_NONDMA_TO_NONDMA); in ice_fill_sw_rule()
1314 off = (_FORCE_ __be16 *)(eth_hdr + ICE_ETH_ETHTYPE_OFFSET); in ice_fill_sw_rule()
1341 ice_memcpy(eth_hdr + ICE_ETH_DA_OFFSET, daddr, ETH_ALEN,
1345 off = (_FORCE_ __be16 *)(eth_hdr + ICE_ETH_VLAN_TCI_OFFSET);
1347 off = (_FORCE_ __be16 *)(eth_hdr + ICE_ETH_ETHTYPE_OFFSET);
1217 u8 *eth_hdr; ice_fill_sw_rule() local
/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() local
304 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt7996_reverse_frag0_hdr_trans()
307 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7996_reverse_frag0_hdr_trans()
310 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7996_reverse_frag0_hdr_trans()
311 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt7996_reverse_frag0_hdr_trans()
318 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt7996_reverse_frag0_hdr_trans()
319 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt7996_reverse_frag0_hdr_trans()
321 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN) in mt7996_reverse_frag0_hdr_trans()
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dib_verbs.c4262 struct ethhdr *eth_hdr; in bnxt_re_is_loopback_packet() local
4275 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_loopback_packet()
4276 eth_type = ntohs(eth_hdr->h_proto); in bnxt_re_is_loopback_packet()
4294 struct ethhdr *eth_hdr; in bnxt_re_is_vlan_in_packet() local
4300 eth_hdr = (struct ethhdr *)tmp_buf; in bnxt_re_is_vlan_in_packet()
4301 eth_type = ntohs(eth_hdr->h_proto); in bnxt_re_is_vlan_in_packet()