Home
last modified time | relevance | path

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

123456

/linux/drivers/scsi/qedf/
H A Dqedf_fip.c124 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...]
/linux/net/hsr/
H A Dhsr_forward.c37 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()
124 struct ethhdr *eth_hdr; in is_proxy_supervision_frame() local
127 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_proxy_supervision_frame()
130 if (eth_hdr->h_proto == htons(ETH_P_HSR)) in is_proxy_supervision_frame()
174 skb->protocol = eth_hdr(sk in create_stripped_skb_hsr()
[all...]
H A Dhsr_slave.c45 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/net/bridge/netfilter/
H A Debt_log.c89 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 Debt_among.c73 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 Debt_redirect.c29 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()
H A Debt_snat.c28 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/net/bridge/
H A Dbr_input.c116 br_fdb_find_rcu(br, eth_hdr(skb)->h_source, vid); in br_handle_frame_finish()
123 br_fdb_update(br, p, eth_hdr(skb)->h_source, in br_handle_frame_finish()
134 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, in br_handle_frame_finish()
144 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish()
149 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
151 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
190 br_multicast_querier_exists(brmctx, eth_hdr(skb), mdst)) { in br_handle_frame_finish()
204 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
247 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish()
336 const unsigned char *dest = eth_hdr(sk in br_handle_frame()
[all...]
H A Dbr_arp_nd_proxy.c163 if (is_unicast_ether_addr(eth_hdr(skb)->h_dest) && in br_do_proxy_suppress_arp()
283 daddr = eth_hdr(request)->h_source; in br_nd_send()
300 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in br_nd_send()
301 ether_addr_copy(eth_hdr(reply)->h_source, n->ha); in br_nd_send()
302 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in br_nd_send()
416 if (is_unicast_ether_addr(eth_hdr(skb)->h_dest) && in br_do_suppress_nd()
H A Dbr_cfm.c169 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()
H A Dbr_device.c73 (eth_hdr(skb)->h_proto == htons(ETH_P_ARP) || in br_dev_xmit()
74 eth_hdr(skb)->h_proto == htons(ETH_P_RARP)) && in br_dev_xmit()
90 dest = eth_hdr(skb)->h_dest; in br_dev_xmit()
105 br_multicast_querier_exists(brmctx, eth_hdr(skb), mdst)) in br_dev_xmit()
/linux/net/ipv6/netfilter/
H A Dip6t_eui64.c33 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/samples/bpf/
H A Dtc_l2_redirect_kern.c34 struct eth_hdr { struct
62 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_forward()
111 struct eth_hdr *eth = data; in _l2_to_iptun_ingress_redirect()
150 struct eth_hdr *eth = data; in _l2_to_ip6tun_ingress_redirect()
204 struct eth_hdr *eth = data; in _drop_non_tun_vip()
35 h_desteth_hdr global() argument
36 h_sourceeth_hdr global() argument
37 h_protoeth_hdr global() argument
H A Dparse_simple.c20 struct eth_hdr { struct
30 struct eth_hdr *eth = data; in handle_ingress() argument
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c825 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_prepare_flow_request() local
836 ether_addr_copy(pkt->smac, eth_hdr->h_source); in otx2_prepare_flow_request()
841 ether_addr_copy(pkt->dmac, eth_hdr->h_dest); in otx2_prepare_flow_request()
845 if (eth_hdr->h_proto) { in otx2_prepare_flow_request()
846 memcpy(&pkt->etype, &eth_hdr->h_proto, in otx2_prepare_flow_request()
952 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_is_flow_rule_dmacfilter() local
967 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter()
1064 struct ethhdr *eth_hdr; in otx2_add_flow_with_pfmac() local
1078 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac()
1079 ether_addr_copy(eth_hdr in otx2_add_flow_with_pfmac()
1096 struct ethhdr *eth_hdr; otx2_add_flow() local
1239 struct ethhdr *eth_hdr; otx2_update_rem_pfmac() local
1281 struct ethhdr *eth_hdr = &flow->flow_spec.h_u.ether_spec; otx2_remove_flow() local
1512 struct ethhdr *eth_hdr; otx2_dmacflt_reinstall_flows() local
[all...]
/linux/net/netfilter/
H A Dnft_reject_netdev.c22 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/net/netfilter/ipset/
H A Dip_set_hash_ipmac.c97 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()
H A Dip_set_hash_mac.c85 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/net/dsa/
H A Dtag_sja1105.c80 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()
626 * so that eth_hdr() continues to works properly. in sja1110_rcv_inband_control_extension()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_l4lb_noinline_dynptr.c162 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()
163 eth_desteth_hdr global() argument
164 eth_sourceeth_hdr global() argument
165 eth_protoeth_hdr global() argument
H A Dtest_l4lb.c164 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()
165 eth_desteth_hdr global() argument
166 eth_sourceeth_hdr global() argument
167 eth_protoeth_hdr global() argument
H A Dtest_l4lb_noinline.c160 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()
161 eth_desteth_hdr global() argument
162 eth_sourceeth_hdr global() argument
163 eth_protoeth_hdr global() argument
/linux/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c163 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(&eth_hdr, in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; ath6kl_wmi_dot3_2_dix() local
[all...]
/linux/net/batman-adv/
H A Drouting.c187 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()
1181 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
/linux/include/linux/
H A Dif_ether.h25 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) in eth_hdr() function
31 * skb_reset_mac_header() + eth_hdr()

123456