/linux-5.19.10/drivers/scsi/qedf/ |
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-5.19.10/net/bridge/netfilter/ |
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()
|
D | nft_reject_bridge.c | 30 ether_addr_copy(eth->h_source, eth_hdr(oldskb)->h_dest); in nft_reject_br_push_etherhdr() 31 ether_addr_copy(eth->h_dest, eth_hdr(oldskb)->h_source); in nft_reject_br_push_etherhdr() 32 eth->h_proto = eth_hdr(oldskb)->h_proto; in nft_reject_br_push_etherhdr() 115 const unsigned char *dest = eth_hdr(pkt->skb)->h_dest; in nft_reject_bridge_eval() 121 switch (eth_hdr(pkt->skb)->h_proto) { in nft_reject_bridge_eval()
|
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()
|
D | ebt_redirect.c | 29 ether_addr_copy(eth_hdr(skb)->h_dest, in ebt_redirect_tg() 32 ether_addr_copy(eth_hdr(skb)->h_dest, xt_in(par)->dev_addr); in ebt_redirect_tg()
|
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()
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | test_xdp_noinline.c | 210 struct eth_hdr { struct 218 __u64 off = sizeof(struct eth_hdr); in calc_offset() argument 282 struct eth_hdr *new_eth; in encap_v6() 283 struct eth_hdr *old_eth; in encap_v6() 294 ip6h = data + sizeof(struct eth_hdr); in encap_v6() 327 struct eth_hdr *new_eth; in encap_v4() 328 struct eth_hdr *old_eth; in encap_v4() 342 iph = data + sizeof(struct eth_hdr); in encap_v4() 377 struct eth_hdr *new_eth; in decap_v6() 378 struct eth_hdr *old_eth; in decap_v6() [all …]
|
/linux-5.19.10/net/bridge/ |
D | br_input.c | 110 br_fdb_find_rcu(br, eth_hdr(skb)->h_source, vid); in br_handle_frame_finish() 121 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish() 124 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 126 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 163 br_multicast_querier_exists(brmctx, eth_hdr(skb), mdst)) { in br_handle_frame_finish() 176 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish() 219 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish() 307 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame() 312 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) in br_handle_frame()
|
D | br_cfm.c | 169 struct ethhdr *eth_hdr; in ccm_frame_build() local 197 eth_hdr = skb_put(skb, sizeof(*eth_hdr)); in ccm_frame_build() 198 ether_addr_copy(eth_hdr->h_dest, tx_info->dmac.addr); in ccm_frame_build() 199 ether_addr_copy(eth_hdr->h_source, mep->config.unicast_mac.addr); in ccm_frame_build() 200 eth_hdr->h_proto = htons(ETH_P_CFM); in ccm_frame_build()
|
/linux-5.19.10/net/ipv6/netfilter/ |
D | ip6t_eui64.c | 33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { in eui64_mt6() 35 memcpy(eui64, eth_hdr(skb)->h_source, 3); in eui64_mt6() 36 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3); in eui64_mt6()
|
/linux-5.19.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 772 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_prepare_flow_request() local 783 ether_addr_copy(pkt->smac, eth_hdr->h_source); in otx2_prepare_flow_request() 788 ether_addr_copy(pkt->dmac, eth_hdr->h_dest); in otx2_prepare_flow_request() 792 if (eth_hdr->h_proto) { in otx2_prepare_flow_request() 793 memcpy(&pkt->etype, ð_hdr->h_proto, in otx2_prepare_flow_request() 879 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_is_flow_rule_dmacfilter() local 894 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter() 991 struct ethhdr *eth_hdr; in otx2_add_flow_with_pfmac() local 1005 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac() 1006 ether_addr_copy(eth_hdr->h_dest, pfvf->netdev->dev_addr); in otx2_add_flow_with_pfmac() [all …]
|
/linux-5.19.10/net/sched/ |
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-5.19.10/samples/bpf/ |
D | tc_l2_redirect_kern.c | 34 struct eth_hdr { struct 63 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_forward() 114 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_redirect() 155 struct eth_hdr *eth = data; in _l2_to_ip6tun_ingress_redirect() 210 struct eth_hdr *eth = data; in _drop_non_tun_vip()
|
D | parse_simple.c | 20 struct eth_hdr { struct 30 struct eth_hdr *eth = data; in handle_ingress() argument
|
D | test_cgrp2_tc_kern.c | 16 struct eth_hdr { struct 45 struct eth_hdr *eth = data; in handle_egress()
|
/linux-5.19.10/net/hsr/ |
D | hsr_forward.c | 37 struct ethhdr *eth_hdr; in is_supervision_frame() local 44 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_supervision_frame() 47 if (!ether_addr_equal(eth_hdr->h_dest, in is_supervision_frame() 52 if (!(eth_hdr->h_proto == htons(ETH_P_PRP) || in is_supervision_frame() 53 eth_hdr->h_proto == htons(ETH_P_HSR))) in is_supervision_frame() 57 if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ in is_supervision_frame() 145 skb->protocol = eth_hdr(skb)->h_proto; in create_stripped_skb_hsr() 231 skb->protocol = eth_hdr(skb)->h_proto; in prp_fill_rct() 379 ether_addr_copy(eth_hdr(skb)->h_source, port->dev->dev_addr); in hsr_xmit() 481 if (hsr_addr_is_self(hsr, eth_hdr(skb)->h_dest)) { in check_local_dest()
|
D | hsr_framereg.c | 420 memcpy(ð_hdr(skb)->h_source, node->macaddress_A, ETH_ALEN); in hsr_addr_subst_source() 443 if (!is_unicast_ether_addr(eth_hdr(skb)->h_dest)) in hsr_addr_subst_dest() 446 hash = hsr_mac_hash(port->hsr, eth_hdr(skb)->h_dest); in hsr_addr_subst_dest() 448 eth_hdr(skb)->h_dest); in hsr_addr_subst_dest() 458 ether_addr_copy(eth_hdr(skb)->h_dest, node_dst->macaddress_B); in hsr_addr_subst_dest()
|
D | hsr_slave.c | 45 if (hsr_addr_is_self(port->hsr, eth_hdr(skb)->h_source)) { in hsr_handle_frame() 55 protocol = eth_hdr(skb)->h_proto; in hsr_handle_frame()
|
/linux-5.19.10/drivers/scsi/fnic/ |
D | fnic_fcs.c | 1026 struct ethhdr *eth_hdr; in fnic_eth_send() local 1031 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send() 1032 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send() 1033 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send() 1035 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send() 1038 FNIC_FC_SEND|0x80, (char *)eth_hdr, skb->len)) != 0) { in fnic_eth_send() 1080 struct ethhdr *eth_hdr; in fnic_send_frame() local 1098 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame() 1104 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame() 1105 eth_hdr = skb_push(skb, eth_hdr_len); in fnic_send_frame() [all …]
|
/linux-5.19.10/net/netfilter/ |
D | nft_reject_netdev.c | 22 eth_hdr(oldskb)->h_source, eth_hdr(oldskb)->h_dest, in nft_reject_queue_xmit() 88 struct ethhdr *eth = eth_hdr(pkt->skb); in nft_reject_netdev_eval()
|
/linux-5.19.10/net/netfilter/ipset/ |
D | ip_set_hash_ipmac.c | 97 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_ipmac4_kadt() 99 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_ipmac4_kadt() 213 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_ipmac6_kadt() 215 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_ipmac6_kadt()
|
D | ip_set_hash_mac.c | 85 ether_addr_copy(e.ether, eth_hdr(skb)->h_source); in hash_mac4_kadt() 87 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest); in hash_mac4_kadt()
|
/linux-5.19.10/net/dsa/ |
D | tag_sja1105.c | 78 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_link_local() 124 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_meta_frame() 347 struct ethhdr *hdr = eth_hdr(skb); in sja1105_transfer_meta() 496 u16 tpid = ntohs(eth_hdr(skb)->h_proto); in sja1105_skb_has_tag_8021q() 504 return ntohs(eth_hdr(skb)->h_proto) == ETH_P_SJA1110; in sja1110_skb_has_inband_control_extension() 539 hdr = eth_hdr(skb); in sja1105_rcv()
|
/linux-5.19.10/net/batman-adv/ |
D | routing.c | 187 ethhdr = eth_hdr(skb); in batadv_check_management_packet() 353 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet() 380 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet() 450 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet() 662 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet() 978 orig_addr_gw = eth_hdr(skb)->h_source; in batadv_recv_unicast_packet() 1182 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
|
/linux-5.19.10/drivers/net/wireless/ath/ath6kl/ |
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 …]
|