Home
last modified time | relevance | path

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

123

/net/bridge/netfilter/
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()
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()
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()
302 const unsigned char *dest = eth_hdr(pkt->skb)->h_dest; in nft_reject_bridge_eval()
308 switch (eth_hdr(pkt->skb)->h_proto) { in nft_reject_bridge_eval()
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()
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()
/net/hsr/
Dhsr_forward.c47 struct ethhdr *eth_hdr; in is_supervision_frame() local
52 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in is_supervision_frame()
55 if (!ether_addr_equal(eth_hdr->h_dest, in is_supervision_frame()
60 if (!(eth_hdr->h_proto == htons(ETH_P_PRP) || in is_supervision_frame()
61 eth_hdr->h_proto == htons(ETH_P_HSR))) in is_supervision_frame()
65 if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ in is_supervision_frame()
111 skb->protocol = eth_hdr(skb)->h_proto; in create_stripped_skb()
227 ether_addr_copy(eth_hdr(skb)->h_source, port->dev->dev_addr); in hsr_xmit()
293 if (hsr_addr_is_self(hsr, eth_hdr(skb)->h_dest)) { in check_local_dest()
Dhsr_slave.c33 if (hsr_addr_is_self(port->hsr, eth_hdr(skb)->h_source)) { in hsr_handle_frame()
39 protocol = eth_hdr(skb)->h_proto; in hsr_handle_frame()
Dhsr_framereg.c300 memcpy(&eth_hdr(skb)->h_source, node->macaddress_A, ETH_ALEN); in hsr_addr_subst_source()
322 if (!is_unicast_ether_addr(eth_hdr(skb)->h_dest)) in hsr_addr_subst_dest()
326 eth_hdr(skb)->h_dest); in hsr_addr_subst_dest()
335 ether_addr_copy(eth_hdr(skb)->h_dest, node_dst->macaddress_B); in hsr_addr_subst_dest()
/net/bridge/
Dbr_input.c98 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, false); in br_handle_frame_finish()
101 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
103 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish()
140 br_multicast_querier_exists(br, eth_hdr(skb))) { in br_handle_frame_finish()
153 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish()
194 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, false); in __br_handle_local_finish()
267 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame()
272 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) in br_handle_frame()
Dbr_device.c63 (eth_hdr(skb)->h_proto == htons(ETH_P_ARP) || in br_dev_xmit()
64 eth_hdr(skb)->h_proto == htons(ETH_P_RARP)) && in br_dev_xmit()
80 dest = eth_hdr(skb)->h_dest; in br_dev_xmit()
95 br_multicast_querier_exists(br, eth_hdr(skb))) in br_dev_xmit()
Dbr_arp_nd_proxy.c275 daddr = eth_hdr(request)->h_source; in br_nd_send()
292 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in br_nd_send()
293 ether_addr_copy(eth_hdr(reply)->h_source, n->ha); in br_nd_send()
294 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in br_nd_send()
Dbr_stp_bpdu.c174 if (!ether_addr_equal(eth_hdr(skb)->h_dest, br->group_addr)) in br_stp_rcv()
230 eth_hdr(skb)->h_source, in br_stp_rcv()
Dbr_forward.c247 const unsigned char *src = eth_hdr(skb)->h_source; in maybe_deliver_addr()
263 memcpy(eth_hdr(skb)->h_dest, addr, ETH_ALEN); in maybe_deliver_addr()
/net/sched/
Dact_skbmod.c55 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()
/net/ipv6/netfilter/
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()
Dnf_log_ipv6.c301 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv6_mac_header()
304 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv6_mac_header()
/net/dsa/
Dtag_sja1105.c13 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_link_local()
59 const struct ethhdr *hdr = eth_hdr(skb); in sja1105_is_meta_frame()
117 struct ethhdr *hdr = eth_hdr(skb); in sja1105_transfer_meta()
247 hdr = eth_hdr(skb); in sja1105_rcv()
Dtag_mtk.c27 unsigned char *dest = eth_hdr(skb)->h_dest; in mtk_tag_xmit()
79 unsigned char *dest = eth_hdr(skb)->h_dest; in mtk_tag_rcv()
/net/ipv4/netfilter/
Dnf_log_arp.c65 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_arp_packet()
68 ntohs(eth_hdr(skb)->h_proto)); in dump_arp_packet()
Dnf_log_ipv4.c288 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest); in dump_ipv4_mac_header()
291 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv4_mac_header()
/net/netfilter/ipset/
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()
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()
/net/batman-adv/
Drouting.c190 ethhdr = eth_hdr(skb); in batadv_check_management_packet()
369 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
396 ethhdr = eth_hdr(skb); in batadv_recv_icmp_packet()
467 ethhdr = eth_hdr(skb); in batadv_check_unicast_packet()
681 struct ethhdr *ethhdr = eth_hdr(skb); in batadv_route_unicast_packet()
998 orig_addr_gw = eth_hdr(skb)->h_source; in batadv_recv_unicast_packet()
1203 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
Dsoft-interface.c220 ethhdr = eth_hdr(skb); in batadv_interface_tx()
248 ethhdr = eth_hdr(skb); in batadv_interface_tx()
288 ethhdr = eth_hdr(skb); in batadv_interface_tx()
450 ethhdr = eth_hdr(skb); in batadv_interface_rx()
470 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); in batadv_interface_rx()
/net/netfilter/
Dxt_mac.c36 ret = ether_addr_equal(eth_hdr(skb)->h_source, info->srcaddr); in mac_mt()

123