Searched refs:eth_hdr (Results 1 – 7 of 7) sorted by relevance
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76_connac_mac.c | 940 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 D | ieee802_1x_kay.c | 3067 struct ieee8023_hdr *eth_hdr; in ieee802_1x_kay_mkpdu_validity_check() local 3080 eth_hdr = (struct ieee8023_hdr *) buf; in ieee802_1x_kay_mkpdu_validity_check() 3081 eapol_hdr = (struct ieee802_1x_hdr *) (eth_hdr + 1); in ieee802_1x_kay_mkpdu_validity_check() 3086 MAC2STR(eth_hdr->dest), MAC2STR(eth_hdr->src), in ieee802_1x_kay_mkpdu_validity_check() 3087 be_to_host16(eth_hdr->ethertype)); in ieee802_1x_kay_mkpdu_validity_check() 3402 struct ieee8023_hdr *eth_hdr; in kay_l2_receive() local 3409 if (len < sizeof(*eth_hdr) + sizeof(*eapol_hdr)) { in kay_l2_receive() 3415 eth_hdr = (struct ieee8023_hdr *) buf; in kay_l2_receive() 3416 eapol_hdr = (struct ieee802_1x_hdr *) (eth_hdr + 1); in kay_l2_receive() 3417 calc_len = sizeof(*eth_hdr) + sizeof(*eapol_hdr) + in kay_l2_receive() [all …]
|
/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() local 290 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt7615_reverse_frag0_hdr_trans() 293 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7615_reverse_frag0_hdr_trans() 296 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7615_reverse_frag0_hdr_trans() 297 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt7615_reverse_frag0_hdr_trans() 304 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt7615_reverse_frag0_hdr_trans() 305 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt7615_reverse_frag0_hdr_trans() 307 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 D | ice_protocol_type.h | 306 struct ice_ether_hdr eth_hdr; member
|
H A D | ice_switch.c | 1225 u8 *eth_hdr; in ice_fill_sw_rule() local 1238 eth_hdr = s_rule->hdr_data; in ice_fill_sw_rule() 1241 ice_memcpy(eth_hdr, dummy_eth_header, eth_hdr_sz, ICE_NONDMA_TO_NONDMA); in ice_fill_sw_rule() 1306 off = (_FORCE_ __be16 *)(eth_hdr + ICE_ETH_ETHTYPE_OFFSET); in ice_fill_sw_rule() 1333 ice_memcpy(eth_hdr + ICE_ETH_DA_OFFSET, daddr, ETH_ALEN, in ice_fill_sw_rule() 1337 off = (_FORCE_ __be16 *)(eth_hdr + ICE_ETH_VLAN_TCI_OFFSET); in ice_fill_sw_rule() 1339 off = (_FORCE_ __be16 *)(eth_hdr + ICE_ETH_ETHTYPE_OFFSET); in ice_fill_sw_rule()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7996/ |
H A D | mac.c | 269 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 D | ib_verbs.c | 4262 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()
|