/kernel/linux/linux-5.10/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 in qedf_fip_recv() [all...] |
/kernel/linux/linux-6.6/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 in qedf_fip_recv() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_noinline.c | 210 struct eth_hdr { struct 218 __u64 off = sizeof(struct eth_hdr); in calc_offset() 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_et in decap_v6() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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 | 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()
|
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()
|
/kernel/linux/linux-5.10/net/bridge/ |
H A D | br_input.c | 102 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish() 105 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 107 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 144 br_multicast_querier_exists(br, eth_hdr(skb))) { in br_handle_frame_finish() 157 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish() 199 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish() 272 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame() 277 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) in br_handle_frame()
|
/kernel/linux/linux-6.6/net/bridge/ |
H A D | br_input.c | 110 br_fdb_find_rcu(br, eth_hdr(skb)->h_source, vid); in br_handle_frame_finish() 117 br_fdb_update(br, p, eth_hdr(skb)->h_source, in br_handle_frame_finish() 128 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, in br_handle_frame_finish() 138 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish() 141 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 143 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 180 br_multicast_querier_exists(brmctx, eth_hdr(skb), mdst)) { in br_handle_frame_finish() 193 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish() 236 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish() 324 const unsigned char *dest = eth_hdr(sk in br_handle_frame() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_xdp_noinline.c | 210 struct eth_hdr { struct 218 __u64 off = sizeof(struct eth_hdr); in calc_offset() 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() 378 struct eth_hdr *eth; in swap_mac_and_send() 397 if (data + sizeof(struct eth_hdr) in send_icmp_reply() [all...] |
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
H A 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()
|
/kernel/linux/linux-6.6/net/ipv6/netfilter/ |
H A 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()
|
/kernel/linux/linux-5.10/net/hsr/ |
H A D | hsr_forward.c | 37 struct ethhdr *eth_hdr; in is_supervision_frame() local 42 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_supervision_frame() 45 if (!ether_addr_equal(eth_hdr->h_dest, in is_supervision_frame() 50 if (!(eth_hdr->h_proto == htons(ETH_P_PRP) || in is_supervision_frame() 51 eth_hdr->h_proto == htons(ETH_P_HSR))) in is_supervision_frame() 55 if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ in is_supervision_frame() 103 skb->protocol = eth_hdr(skb)->h_proto; in create_stripped_skb_hsr() 189 skb->protocol = eth_hdr(skb)->h_proto; in prp_fill_rct() 332 ether_addr_copy(eth_hdr(skb)->h_source, port->dev->dev_addr); in hsr_xmit() 417 if (hsr_addr_is_self(hsr, eth_hdr(sk in check_local_dest() [all...] |
/kernel/linux/linux-6.6/net/hsr/ |
H A 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() 378 ether_addr_copy(eth_hdr(skb)->h_source, port->dev->dev_addr); in hsr_xmit() 480 if (hsr_addr_is_self(hsr, eth_hdr(sk in check_local_dest() [all...] |
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_skbmod.c | 55 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst); in tcf_skbmod_act() 57 ether_addr_copy(eth_hdr(skb)->h_source, p->eth_src); in tcf_skbmod_act() 59 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act() 64 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); in tcf_skbmod_act() 65 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act() 66 ether_addr_copy(eth_hdr(skb)->h_source, (u8 *)tmpaddr); in tcf_skbmod_act()
|
/kernel/linux/linux-6.6/net/sched/ |
H A D | act_skbmod.c | 70 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst); in tcf_skbmod_act() 72 ether_addr_copy(eth_hdr(skb)->h_source, p->eth_src); in tcf_skbmod_act() 74 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act() 79 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); in tcf_skbmod_act() 80 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act() 81 ether_addr_copy(eth_hdr(skb)->h_source, (u8 *)tmpaddr); in tcf_skbmod_act()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A 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()
|
H A D | parse_simple.c | 20 struct eth_hdr { struct 30 struct eth_hdr *eth = data; in handle_ingress()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A 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()
|
H A D | parse_simple.c | 20 struct eth_hdr { struct 30 struct eth_hdr *eth = data; in handle_ingress()
|
H A D | test_cgrp2_tc.bpf.c | 13 struct eth_hdr { struct 31 struct eth_hdr *eth = data; in handle_egress()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_flows.c | 817 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_prepare_flow_request() local 828 ether_addr_copy(pkt->smac, eth_hdr->h_source); in otx2_prepare_flow_request() 833 ether_addr_copy(pkt->dmac, eth_hdr->h_dest); in otx2_prepare_flow_request() 837 if (eth_hdr->h_proto) { in otx2_prepare_flow_request() 838 memcpy(&pkt->etype, ð_hdr->h_proto, in otx2_prepare_flow_request() 944 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_is_flow_rule_dmacfilter() local 959 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter() 1056 struct ethhdr *eth_hdr; in otx2_add_flow_with_pfmac() local 1070 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac() 1071 ether_addr_copy(eth_hdr in otx2_add_flow_with_pfmac() 1088 struct ethhdr *eth_hdr; otx2_add_flow() local 1231 struct ethhdr *eth_hdr; otx2_update_rem_pfmac() local 1273 struct ethhdr *eth_hdr = &flow->flow_spec.h_u.ether_spec; otx2_remove_flow() local 1503 struct ethhdr *eth_hdr; otx2_dmacflt_reinstall_flows() local [all...] |
/kernel/linux/linux-5.10/drivers/scsi/fnic/ |
H A D | fnic_fcs.c | 1024 struct ethhdr *eth_hdr; in fnic_eth_send() local 1029 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send() 1030 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send() 1031 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send() 1033 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send() 1036 FNIC_FC_SEND|0x80, (char *)eth_hdr, skb->len)) != 0) { in fnic_eth_send() 1078 struct ethhdr *eth_hdr; in fnic_send_frame() local 1096 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame() 1102 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame() 1103 eth_hdr in fnic_send_frame() [all...] |
/kernel/liteos_a/net/lwip-2.1/porting/src/ |
H A D | driverif.c | 146 struct eth_hdr* ethhdr = NULL; 150 struct eth_hdr *ethhdr = NULL; 170 ethhdr = (struct eth_hdr *)p->payload; 192 ethhdr = (struct eth_hdr *)p->payload;
|