/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 | 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 | 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() 296 const unsigned char *dest = eth_hdr(pkt->skb)->h_dest; in nft_reject_bridge_eval() 302 switch (eth_hdr(pkt->skb)->h_proto) { in nft_reject_bridge_eval()
|
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()
|
D | nf_log_bridge.c | 24 nf_log_l2packet(net, pf, eth_hdr(skb)->h_proto, hooknum, skb, in nf_log_bridge_packet()
|
/net/hsr/ |
D | hsr_forward.c | 47 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() 226 ether_addr_copy(eth_hdr(skb)->h_source, port->dev->dev_addr); in hsr_xmit() 292 if (hsr_addr_is_self(hsr, eth_hdr(skb)->h_dest)) { in check_local_dest()
|
D | hsr_slave.c | 31 if (hsr_addr_is_self(port->hsr, eth_hdr(skb)->h_source)) { in hsr_handle_frame() 37 protocol = eth_hdr(skb)->h_proto; in hsr_handle_frame()
|
D | hsr_framereg.c | 293 memcpy(ð_hdr(skb)->h_source, node->macaddress_A, ETH_ALEN); in hsr_addr_subst_source() 315 if (!is_unicast_ether_addr(eth_hdr(skb)->h_dest)) in hsr_addr_subst_dest() 319 eth_hdr(skb)->h_dest); in hsr_addr_subst_dest() 327 ether_addr_copy(eth_hdr(skb)->h_dest, node_dst->macaddress_B); in hsr_addr_subst_dest()
|
/net/bridge/ |
D | br_input.c | 91 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, false); in br_handle_frame_finish() 94 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 96 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) { in br_handle_frame_finish() 133 br_multicast_querier_exists(br, eth_hdr(skb))) { in br_handle_frame_finish() 146 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid); in br_handle_frame_finish() 187 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, false); in __br_handle_local_finish() 260 const unsigned char *dest = eth_hdr(skb)->h_dest; in br_handle_frame() 265 if (!is_valid_ether_addr(eth_hdr(skb)->h_source)) in br_handle_frame()
|
D | br_arp_nd_proxy.c | 273 daddr = eth_hdr(request)->h_source; in br_nd_send() 286 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in br_nd_send() 287 ether_addr_copy(eth_hdr(reply)->h_source, n->ha); in br_nd_send() 288 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in br_nd_send()
|
D | br_device.c | 56 eth = eth_hdr(skb); 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()
|
D | br_stp_bpdu.c | 174 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()
|
D | br_forward.c | 247 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/ |
D | act_skbmod.c | 51 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst); in tcf_skbmod_act() 53 ether_addr_copy(eth_hdr(skb)->h_source, p->eth_src); in tcf_skbmod_act() 55 eth_hdr(skb)->h_proto = p->eth_type; in tcf_skbmod_act() 60 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest); in tcf_skbmod_act() 61 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source); in tcf_skbmod_act() 62 ether_addr_copy(eth_hdr(skb)->h_source, (u8 *)tmpaddr); in tcf_skbmod_act()
|
/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()
|
D | nf_log_ipv6.c | 301 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest, in dump_ipv6_mac_header() 302 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv6_mac_header()
|
/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()
|
/net/dsa/ |
D | tag_sja1105.c | 13 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()
|
/net/batman-adv/ |
D | routing.c | 190 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() 994 orig_addr_gw = eth_hdr(skb)->h_source; in batadv_recv_unicast_packet() 1199 ethhdr = eth_hdr(skb); in batadv_recv_bcast_packet()
|
D | soft-interface.c | 216 ethhdr = eth_hdr(skb); in batadv_interface_tx() 244 ethhdr = eth_hdr(skb); in batadv_interface_tx() 284 ethhdr = eth_hdr(skb); in batadv_interface_tx() 445 ethhdr = eth_hdr(skb); in batadv_interface_rx() 465 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); in batadv_interface_rx()
|
D | send.c | 91 ethhdr = eth_hdr(skb); in batadv_send_skb_packet() 367 ethhdr = eth_hdr(skb); in batadv_send_skb_unicast() 895 neigh_addr = eth_hdr(forw_packet->skb)->h_source; in batadv_send_outstanding_bcast_packet()
|
/net/ipv4/netfilter/ |
D | nf_log_ipv4.c | 288 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest, in dump_ipv4_mac_header() 289 ntohs(eth_hdr(skb)->h_proto)); in dump_ipv4_mac_header()
|
/net/netfilter/ |
D | xt_mac.c | 36 ret = ether_addr_equal(eth_hdr(skb)->h_source, info->srcaddr); in mac_mt()
|