Home
last modified time | relevance | path

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

1234567

/linux/drivers/scsi/qedf/
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->h_dest, qedf->data_src_addr)) { in qedf_fip_recv()
204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
/linux/net/hsr/
A Dhsr_forward.c37 struct ethhdr *eth_hdr; in is_supervision_frame() local
47 if (!ether_addr_equal(eth_hdr->h_dest, in is_supervision_frame()
53 eth_hdr->h_proto == htons(ETH_P_HSR))) in is_supervision_frame()
124 struct ethhdr *eth_hdr; in is_proxy_supervision_frame() local
130 if (eth_hdr->h_proto == htons(ETH_P_HSR)) in is_proxy_supervision_frame()
174 skb->protocol = eth_hdr(skb)->h_proto; in create_stripped_skb_hsr()
260 skb->protocol = eth_hdr(skb)->h_proto; in prp_fill_rct()
415 ether_addr_copy(eth_hdr(skb)->h_source, in hsr_xmit()
450 eth_hdr(skb)->h_dest)) { in hsr_drop_frame()
463 eth_hdr(skb)->h_dest)) { in hsr_drop_frame()
[all …]
A Dhsr_framereg.c419 memcpy(&eth_hdr(skb)->h_source, node->macaddress_A, ETH_ALEN); in hsr_addr_subst_source()
441 if (!is_unicast_ether_addr(eth_hdr(skb)->h_dest)) in hsr_addr_subst_dest()
445 eth_hdr(skb)->h_dest); in hsr_addr_subst_dest()
448 eth_hdr(skb)->h_dest); in hsr_addr_subst_dest()
459 ether_addr_copy(eth_hdr(skb)->h_dest, node_dst->macaddress_B); in hsr_addr_subst_dest()
/linux/net/bridge/
A Dbr_input.c113 br_fdb_find_rcu(br, eth_hdr(skb)->h_source, vid); in br_handle_frame_finish()
120 br_fdb_update(br, p, eth_hdr(skb)->h_source, in br_handle_frame_finish()
131 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, in br_handle_frame_finish()
141 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0); in br_handle_frame_finish()
146 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
148 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
185 br_multicast_querier_exists(brmctx, eth_hdr(skb), mdst)) { in br_handle_frame_finish()
198 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
241 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0); in __br_handle_local_finish()
329 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
[all …]
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()
A Dbr_arp_nd_proxy.c280 daddr = eth_hdr(request)->h_source; in br_nd_send()
297 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in br_nd_send()
298 ether_addr_copy(eth_hdr(reply)->h_source, n->ha); in br_nd_send()
299 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in br_nd_send()
/linux/net/bridge/netfilter/
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()
A Dnft_reject_bridge.c30 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()
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()
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()
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/tools/testing/selftests/bpf/progs/
A Dtest_xdp_noinline.c211 struct eth_hdr { struct
283 struct eth_hdr *new_eth; in encap_v6()
284 struct eth_hdr *old_eth; in encap_v6()
336 struct eth_hdr *new_eth; in encap_v4()
337 struct eth_hdr *old_eth; in encap_v4()
391 struct eth_hdr *eth; in swap_mac_and_send()
410 if (data + sizeof(struct eth_hdr) in send_icmp_reply()
413 off += sizeof(struct eth_hdr); in send_icmp_reply()
443 off += sizeof(struct eth_hdr); in send_icmp6_reply()
778 struct eth_hdr *eth = data; in balancer_ingress_v4()
[all …]
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()
/linux/net/ipv6/netfilter/
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/net/sched/
A Dact_skbmod.c70 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()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_flows.c839 if (eth_hdr->h_proto) { in otx2_prepare_flow_request()
840 memcpy(&pkt->etype, &eth_hdr->h_proto, in otx2_prepare_flow_request()
961 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter()
1058 struct ethhdr *eth_hdr; in otx2_add_flow_with_pfmac() local
1076 otx2_dmacflt_add(pfvf, eth_hdr->h_dest, 0); in otx2_add_flow_with_pfmac()
1090 struct ethhdr *eth_hdr; in otx2_add_flow() local
1142 eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_add_flow()
1233 struct ethhdr *eth_hdr; in otx2_update_rem_pfmac() local
1245 ether_addr_copy(eth_hdr->h_dest, in otx2_update_rem_pfmac()
1506 struct ethhdr *eth_hdr; in otx2_dmacflt_reinstall_flows() local
[all …]
/linux/samples/bpf/
A Dtc_l2_redirect_kern.c34 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()
A Dparse_simple.c20 struct eth_hdr { struct
30 struct eth_hdr *eth = data; in handle_ingress() argument
A Dtest_cgrp2_tc.bpf.c13 struct eth_hdr { struct
31 struct eth_hdr *eth = data; in handle_egress() argument
/linux/net/netfilter/
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/drivers/scsi/fnic/
A Dfnic_fcs.c1022 struct ethhdr *eth_hdr; in fnic_eth_send() local
1027 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send()
1029 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send()
1076 struct ethhdr *eth_hdr; in fnic_send_frame() local
1094 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame()
1100 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame()
1101 eth_hdr = skb_push(skb, eth_hdr_len); in fnic_send_frame()
1102 eth_hdr->h_proto = htons(ETH_P_FCOE); in fnic_send_frame()
1103 fcoe_hdr = (struct fcoe_hdr *)(eth_hdr + 1); in fnic_send_frame()
1107 fc_fcoe_set_mac(eth_hdr->h_dest, fh->fh_d_id); in fnic_send_frame()
[all …]
/linux/net/netfilter/ipset/
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()
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/
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()
/linux/drivers/net/wireless/ath/ath6kl/
A Dwmi.c163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3() local
177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3()
192 memcpy(datap, eth_hdr, 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, 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()
441 skb_push(skb, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
445 memcpy(datap, &eth_hdr, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; in ath6kl_wmi_dot3_2_dix() local
465 memcpy(&eth_hdr, datap, sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()
[all …]

Completed in 42 milliseconds

1234567