| /linux/drivers/scsi/qedf/ |
| H A D | qedf_fip.c | 124 struct ethhdr *eth_hdr; in qedf_fip_send() local 137 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_send() 151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send() 170 struct ethhdr *eth_hdr; in qedf_fip_recv() local 186 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_recv() 193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op, in qedf_fip_recv() 199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv() 200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) && in qedf_fip_recv() 201 !ether_addr_equal(eth_hdr->h_dest, qedf->data_src_addr)) { in qedf_fip_recv() 204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
|
| /linux/net/bridge/netfilter/ |
| H A D | ebt_log.c | 89 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest, in ebt_log_packet() 90 ntohs(eth_hdr(skb)->h_proto)); in ebt_log_packet() 97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet() 114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet() 139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || in ebt_log_packet() 140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { in ebt_log_packet()
|
| H A D | ebt_among.c | 73 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_dst() 81 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in get_ip_dst() 104 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_src() 112 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in get_ip_src() 144 smac = eth_hdr(skb)->h_source; in ebt_among_mt() 159 dmac = eth_hdr(skb)->h_dest; in ebt_among_mt()
|
| H A D | ebt_snat.c | 28 ether_addr_copy(eth_hdr(skb)->h_source, info->mac); in ebt_snat_tg() 30 eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in ebt_snat_tg()
|
| H A D | ebtable_broute.c | 77 dest = eth_hdr(skb)->h_dest; in ebt_broute()
|
| /linux/net/ipv6/netfilter/ |
| H A D | ip6t_eui64.c | 35 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { in eui64_mt6() 37 memcpy(eui64, eth_hdr(skb)->h_source, 3); in eui64_mt6() 38 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3); in eui64_mt6()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_xdp_noinline.c | 211 struct eth_hdr { struct 219 __u64 off = sizeof(struct eth_hdr); in calc_offset() argument 283 struct eth_hdr *new_eth; in encap_v6() 284 struct eth_hdr *old_eth; in encap_v6() 295 ip6h = data + sizeof(struct eth_hdr); in encap_v6() 336 struct eth_hdr *new_eth; in encap_v4() 337 struct eth_hdr *old_eth; in encap_v4() 351 iph = data + sizeof(struct eth_hdr); in encap_v4() 391 struct eth_hdr *eth; in swap_mac_and_send() 410 if (data + sizeof(struct eth_hdr) in send_icmp_reply() [all …]
|
| H A D | test_l4lb_noinline_dynptr.c | 162 struct eth_hdr { struct 328 struct eth_hdr *eth, __u64 off, in process_packet() 460 __u8 buffer[sizeof(struct eth_hdr)] = {}; in balancer_ingress() 462 struct eth_hdr *eth; in balancer_ingress() 467 nh_off = sizeof(struct eth_hdr); in balancer_ingress()
|
| H A D | test_l4lb_noinline.c | 160 struct eth_hdr { struct 326 struct eth_hdr *eth = pkt_start; in process_packet() 455 struct eth_hdr *eth = data; in balancer_ingress() 459 nh_off = sizeof(struct eth_hdr); in balancer_ingress()
|
| H A D | test_l4lb.c | 164 struct eth_hdr { struct 327 struct eth_hdr *eth = pkt_start; in process_packet() 456 struct eth_hdr *eth = data; in balancer_ingress() 460 nh_off = sizeof(struct eth_hdr); in balancer_ingress()
|
| /linux/net/sched/ |
| H A D | act_skbmod.c | 69 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst); in tcf_skbmod_act() 71 ether_addr_copy(eth_hdr(skb)->h_source, p->eth_src); in tcf_skbmod_act() 73 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act() 78 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); in tcf_skbmod_act() 79 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act() 80 ether_addr_copy(eth_hdr(skb)->h_source, (u8 *)tmpaddr); in tcf_skbmod_act()
|
| /linux/samples/bpf/ |
| H A D | parse_simple.c | 20 struct eth_hdr { struct 30 struct eth_hdr *eth = data; in handle_ingress() argument
|
| /linux/net/dsa/ |
| H A D | tag_sja1105.c | 80 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_link_local() 126 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_meta_frame() 349 struct ethhdr *hdr = eth_hdr(skb); in sja1105_transfer_meta() 464 u16 tpid = ntohs(eth_hdr(skb)->h_proto); in sja1105_skb_has_tag_8021q() 472 return ntohs(eth_hdr(skb)->h_proto) == ETH_P_SJA1110; in sja1110_skb_has_inband_control_extension() 484 hdr = eth_hdr(skb); in sja1105_rcv()
|
| H A D | tag_brcm.c | 179 if (likely(!is_link_local_ether_addr(eth_hdr(skb)->h_dest))) in brcm_tag_rcv_ll() 254 if (likely(!is_link_local_ether_addr(eth_hdr(skb)->h_dest))) in brcm_leg_tag_rcv()
|
| H A D | tag_ocelot_8021q.c | 70 struct ethhdr *hdr = eth_hdr(skb); in ocelot_xmit()
|
| /linux/include/linux/ |
| H A D | if_ether.h | 25 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) in eth_hdr() function
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | wmi.c | 163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3() local 176 eth_hdr = (struct ethhdr *) skb->data; in ath6kl_wmi_dix_2_dot3() 177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3() 185 new_len = skb->len - sizeof(*eth_hdr) + sizeof(*llc_hdr); in ath6kl_wmi_dix_2_dot3() 190 eth_hdr->h_proto = cpu_to_be16(new_len); in ath6kl_wmi_dix_2_dot3() 192 memcpy(datap, eth_hdr, sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3() 194 llc_hdr = (struct ath6kl_llc_snap_hdr *)(datap + sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3() 392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove() local 419 memset(ð_hdr, 0, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove() 420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove() [all …]
|
| /linux/drivers/net/usb/ |
| H A D | sierra_net.c | 226 skb->protocol = eth_hdr(skb)->h_proto; in check_ethip_packet() 832 if (eth_hdr(skb)->h_proto != cpu_to_be16(ETH_P_IPV6)) in sierra_net_rx_fixup() 833 eth_hdr(skb)->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_rx_fixup() 834 eth_zero_addr(eth_hdr(skb)->h_source); in sierra_net_rx_fixup() 835 memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN); in sierra_net_rx_fixup()
|
| /linux/drivers/infiniband/hw/ocrdma/ |
| H A D | ocrdma_ah.c | 126 memcpy(&ah->av->eth_hdr, ð, eth_sz); in set_av_attr() 237 rdma_ah_set_sl(attr, be16_to_cpu(av->eth_hdr.vlan_tag) >> 13); in ocrdma_query_ah()
|
| /linux/net/802/ |
| H A D | stp.c | 33 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv()
|
| /linux/net/batman-adv/ |
| H A D | multicast_forw.c | 237 const u8 *addr = eth_hdr(skb)->h_dest; in batadv_mcast_forw_push_tt() 286 switch (eth_hdr(skb)->h_proto) { in batadv_mcast_forw_push_want_all() 332 switch (eth_hdr(skb)->h_proto) { in batadv_mcast_forw_push_want_rtr()
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_main.c | 679 struct ethhdr *eth_hdr; in fm10k_tx_encap_offload() local 698 eth_hdr = fm10k_port_is_vxlan(skb); in fm10k_tx_encap_offload() 701 eth_hdr = fm10k_gre_is_nvgre(skb); in fm10k_tx_encap_offload() 707 if (!eth_hdr) in fm10k_tx_encap_offload() 710 switch (eth_hdr->h_proto) { in fm10k_tx_encap_offload() 739 return eth_hdr->h_proto; in fm10k_tx_encap_offload()
|
| /linux/net/ethernet/ |
| H A D | eth.c | 199 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse() 261 const struct ethhdr *eth = eth_hdr(skb); in eth_header_parse_protocol()
|
| /linux/drivers/infiniband/core/ |
| H A D | lag.c | 71 eth = eth_hdr(skb); in rdma_build_skb()
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | main.c | 773 struct ethhdr *eth_hdr = (struct ethhdr *)skb->data; in mwifiex_bypass_tx_queue() local 775 if (ntohs(eth_hdr->h_proto) == ETH_P_PAE || in mwifiex_bypass_tx_queue() 779 (ntohs(eth_hdr->h_proto) == ETH_P_TDLS))) { in mwifiex_bypass_tx_queue() 782 ntohs(eth_hdr->h_proto), in mwifiex_bypass_tx_queue() 784 if (eth_hdr->h_proto == htons(ETH_P_PAE)) in mwifiex_bypass_tx_queue() 787 eth_hdr->h_dest); in mwifiex_bypass_tx_queue()
|