| /net/ethernet/ |
| A D | eth.c | 86 eth->h_proto = htons(type); in eth_header() 88 eth->h_proto = htons(len); in eth_header() 108 eth_zero_addr(eth->h_dest); in eth_header() 137 eth->h_proto, sizeof(*eth), in eth_get_headlen() 159 const struct ethhdr *eth; in eth_type_trans() local 164 eth = eth_skb_pull_mac(skb); in eth_type_trans() 177 return eth->h_proto; in eth_type_trans() 219 struct ethhdr *eth; in eth_header_cache() local 222 eth = (struct ethhdr *) in eth_header_cache() 228 eth->h_proto = type; in eth_header_cache() [all …]
|
| A D | Makefile | 6 obj-y += eth.o
|
| /net/openvswitch/ |
| A D | flow.c | 488 key->eth.vlan.tci = 0; in clear_vlan() 489 key->eth.vlan.tpid = 0; in clear_vlan() 490 key->eth.cvlan.tci = 0; in clear_vlan() 491 key->eth.cvlan.tpid = 0; in clear_vlan() 917 struct ethhdr *eth; in key_extract() local 931 key->eth.type = skb->protocol; in key_extract() 933 eth = eth_hdr(skb); in key_extract() 934 ether_addr_copy(key->eth.src, eth->h_source); in key_extract() 935 ether_addr_copy(key->eth.dst, eth->h_dest); in key_extract() 956 skb->protocol = key->eth.type; in key_extract() [all …]
|
| A D | flow_netlink.c | 199 if (eth_p_mpls(match->key->eth.type)) { in match_validate() 1537 SW_FLOW_KEY_MEMCPY(match, eth.src, in ovs_key_from_nlattrs() 1539 SW_FLOW_KEY_MEMCPY(match, eth.dst, in ovs_key_from_nlattrs() 1559 } else if (!match->key->eth.type) { in ovs_key_from_nlattrs() 2081 if (swkey->eth.vlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key() 2085 if (!swkey->eth.vlan.tci) in __ovs_nla_put_key() 2088 if (swkey->eth.cvlan.tci || eth_type_vlan(swkey->eth.type)) { in __ovs_nla_put_key() 2093 if (!swkey->eth.cvlan.tci) in __ovs_nla_put_key() 2105 if (is_mask && output->eth.type) in __ovs_nla_put_key() 2107 output->eth.type)) in __ovs_nla_put_key() [all …]
|
| A D | flow.h | 94 } eth; member 171 return key->eth.type == htons(ETH_P_IPV6) && in sw_flow_key_is_nd()
|
| A D | openvswitch_trace.h | 58 __entry->key_eth_type = key->eth.type; 128 __entry->key_eth_type = key->eth.type;
|
| A D | actions.c | 190 key->eth.vlan.tci = 0; in pop_vlan() 191 key->eth.vlan.tpid = 0; in pop_vlan() 204 key->eth.vlan.tci = vlan->vlan_tci; in push_vlan() 205 key->eth.vlan.tpid = vlan->vlan_tpid; in push_vlan() 244 ether_addr_copy(flow_key->eth.src, eth_hdr(skb)->h_source); in set_eth_addr() 245 ether_addr_copy(flow_key->eth.dst, eth_hdr(skb)->h_dest); in set_eth_addr() 845 if (key->eth.type == htons(ETH_P_IP)) { in ovs_fragment() 861 } else if (key->eth.type == htons(ETH_P_IPV6)) { in ovs_fragment() 880 ovs_vport_name(vport), ntohs(key->eth.type), mru, in ovs_fragment()
|
| A D | conntrack.c | 111 switch (ntohs(key->eth.type)) { in key_to_nfproto() 216 if (key->eth.type == htons(ETH_P_IP) && in __ovs_ct_update_key() 222 } else if (key->eth.type == htons(ETH_P_IPV6) && in __ovs_ct_update_key() 310 if (swkey->eth.type == htons(ETH_P_IP)) { in ovs_ct_put_key() 323 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { in ovs_ct_put_key() 623 if (key->eth.type == htons(ETH_P_IP)) in ovs_nat_update_key() 625 else if (key->eth.type == htons(ETH_P_IPV6)) in ovs_nat_update_key() 645 if (key->eth.type == htons(ETH_P_IP)) in ovs_nat_update_key() 647 else if (key->eth.type == htons(ETH_P_IPV6)) in ovs_nat_update_key()
|
| /net/bridge/netfilter/ |
| A D | nft_reject_bridge.c | 26 struct ethhdr *eth; in nft_reject_br_push_etherhdr() local 28 eth = skb_push(nskb, ETH_HLEN); in nft_reject_br_push_etherhdr() 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()
|
| /net/wireless/ |
| A D | util.c | 559 struct ethhdr eth; in ieee80211_strip_8023_mesh_hdr() member 573 &payload.eth.h_proto))) in ieee80211_strip_8023_mesh_hdr() 578 payload.eth.h_proto = htons(skb->len - hdrlen); in ieee80211_strip_8023_mesh_hdr() 583 memcpy(&payload.eth.h_source, mesh_addr, ETH_ALEN); in ieee80211_strip_8023_mesh_hdr() 586 memcpy(&payload.eth, mesh_addr, 2 * ETH_ALEN); in ieee80211_strip_8023_mesh_hdr() 592 pskb_pull(skb, hdrlen - sizeof(payload.eth)); in ieee80211_strip_8023_mesh_hdr() 593 memcpy(skb->data, &payload.eth, sizeof(payload.eth)); in ieee80211_strip_8023_mesh_hdr() 854 offset = __ieee80211_get_mesh_hdrlen(eth->h_dest[0]); in is_amsdu_aggregation_attack() 879 struct ethhdr eth; in ieee80211_amsdu_to_8023s() member 885 int copy_len = sizeof(hdr.eth); in ieee80211_amsdu_to_8023s() [all …]
|
| /net/netfilter/ |
| A D | nft_inner.c | 67 struct ethhdr *eth, _eth; in nft_inner_parse_l2l3() local 70 eth = skb_header_pointer(pkt->skb, off, sizeof(_eth), &_eth); in nft_inner_parse_l2l3() 71 if (!eth) in nft_inner_parse_l2l3() 74 switch (eth->h_proto) { in nft_inner_parse_l2l3() 77 llproto = eth->h_proto; in nft_inner_parse_l2l3()
|
| A D | nft_reject_netdev.c | 88 struct ethhdr *eth = eth_hdr(pkt->skb); in nft_reject_netdev_eval() local 90 const unsigned char *dest = eth->h_dest; in nft_reject_netdev_eval() 96 switch (eth->h_proto) { in nft_reject_netdev_eval()
|
| /net/core/ |
| A D | netpoll.c | 487 struct ethhdr *eth; in push_eth() local 489 eth = skb_push(skb, ETH_HLEN); in push_eth() 491 ether_addr_copy(eth->h_source, np->dev->dev_addr); in push_eth() 492 ether_addr_copy(eth->h_dest, np->remote_mac); in push_eth() 494 eth->h_proto = htons(ETH_P_IPV6); in push_eth() 496 eth->h_proto = htons(ETH_P_IP); in push_eth()
|
| A D | gro.c | 718 const struct ethhdr *eth; in napi_frags_skb() local 719 unsigned int hlen = sizeof(*eth); in napi_frags_skb() 727 eth = skb_gro_header_slow(skb, hlen, 0); in napi_frags_skb() 728 if (unlikely(!eth)) { in napi_frags_skb() 735 eth = (const struct ethhdr *)skb->data; in napi_frags_skb() 750 skb->protocol = eth->h_proto; in napi_frags_skb()
|
| A D | flow_dissector.c | 720 const struct ethhdr *eth; in __skb_flow_dissect_gre() local 723 eth = __skb_header_pointer(skb, *p_nhoff + offset, in __skb_flow_dissect_gre() 726 if (!eth) in __skb_flow_dissect_gre() 728 *p_proto = eth->h_proto; in __skb_flow_dissect_gre() 729 offset += sizeof(*eth); in __skb_flow_dissect_gre() 801 struct ethhdr eth; in __skb_flow_dissect_batadv() member 815 *p_proto = hdr->eth.h_proto; in __skb_flow_dissect_batadv() 1176 struct ethhdr *eth = eth_hdr(skb); in __skb_flow_dissect() local 1182 memcpy(key_eth_addrs, eth, sizeof(*key_eth_addrs)); in __skb_flow_dissect()
|
| A D | pktgen.c | 2762 struct ethhdr *eth; in process_ipsec() local 2784 eth = skb_push(skb, ETH_HLEN); in process_ipsec() 2786 eth->h_proto = protocol; in process_ipsec() 2931 __u8 *eth; in fill_packet_ipv4() local 2965 eth = skb_push(skb, 14); in fill_packet_ipv4() 2997 memcpy(eth, pkt_dev->hh, 12); in fill_packet_ipv4() 2998 *(__be16 *)ð[12] = protocol; in fill_packet_ipv4() 3059 __u8 *eth; in fill_packet_ipv6() local 3093 eth = skb_push(skb, 14); in fill_packet_ipv6() 3125 memcpy(eth, pkt_dev->hh, 12); in fill_packet_ipv6() [all …]
|
| /net/mac80211/ |
| A D | wme.c | 150 const struct ethhdr *eth = (void *)skb->data; in ieee80211_select_queue() local 159 !is_multicast_ether_addr(eth->h_dest)) || in ieee80211_select_queue()
|
| A D | rx.c | 2790 struct ethhdr eth; in ieee80211_rx_mesh_fast_forward() local 2832 memcpy(ð, skb->data, ETH_HLEN - 2); in ieee80211_rx_mesh_fast_forward() 2835 eth.h_dest, eth.h_source); in ieee80211_rx_mesh_fast_forward() 2858 struct ethhdr *eth; in ieee80211_rx_mesh_data() local 2867 if (!pskb_may_pull(skb, sizeof(*eth) + 6)) in ieee80211_rx_mesh_data() 2876 eth = (struct ethhdr *)skb->data; in ieee80211_rx_mesh_data() 2879 mesh_hdr = (struct ieee80211s_hdr *)(eth + 1); in ieee80211_rx_mesh_data() 2884 if (is_multicast_ether_addr(eth->h_dest) && in ieee80211_rx_mesh_data() 2912 memcpy(mppath->mpp, eth->h_source, ETH_ALEN); in ieee80211_rx_mesh_data() 2939 if (is_multicast_ether_addr(eth->h_dest)) in ieee80211_rx_mesh_data() [all …]
|
| A D | tx.c | 3755 struct ethhdr eth; in ieee80211_xmit_fast() local 3781 memcpy(ð, skb->data, ETH_HLEN - 2); in ieee80211_xmit_fast() 3791 eth.h_dest, eth.h_source); in ieee80211_xmit_fast() 4347 struct ethhdr *eth; in ieee80211_change_da() local 4354 eth = (void *)skb->data; in ieee80211_change_da() 4355 ether_addr_copy(eth->h_dest, sta->sta.addr); in ieee80211_change_da() 4364 const struct ethhdr *eth = (void *)skb->data; in ieee80211_multicast_to_unicast() local 4385 ethertype = eth->h_proto; in ieee80211_multicast_to_unicast() 4406 const struct ethhdr *eth = (struct ethhdr *)skb->data; in ieee80211_convert_to_unicast() local 4502 const struct ethhdr *eth = (void *)skb->data; in ieee80211_subif_start_xmit() local [all …]
|
| /net/bridge/ |
| A D | br_multicast.c | 943 struct ethhdr *eth; in br_ip4_multicast_alloc_query() local 980 eth = eth_hdr(skb); in br_ip4_multicast_alloc_query() 985 skb_put(skb, sizeof(*eth)); in br_ip4_multicast_alloc_query() 1066 __skb_pull(skb, sizeof(*eth)); in br_ip4_multicast_alloc_query() 1094 struct ethhdr *eth; in br_ip6_multicast_alloc_query() local 1131 eth = eth_hdr(skb); in br_ip6_multicast_alloc_query() 1135 skb_put(skb, sizeof(*eth)); in br_ip6_multicast_alloc_query() 1231 __skb_pull(skb, sizeof(*eth)); in br_ip6_multicast_alloc_query() 4910 struct ethhdr eth; in br_multicast_has_querier_anywhere() local 4923 memset(ð, 0, sizeof(eth)); in br_multicast_has_querier_anywhere() [all …]
|
| /net/sched/ |
| A D | cls_flower.c | 59 struct flow_dissector_key_eth_addrs eth; member 1889 fl_set_key_val(tb, key->eth.dst, TCA_FLOWER_KEY_ETH_DST, in fl_set_key() 1890 mask->eth.dst, TCA_FLOWER_KEY_ETH_DST_MASK, in fl_set_key() 1891 sizeof(key->eth.dst)); in fl_set_key() 1893 mask->eth.src, TCA_FLOWER_KEY_ETH_SRC_MASK, in fl_set_key() 1894 sizeof(key->eth.src)); in fl_set_key() 2176 FLOW_DISSECTOR_KEY_ETH_ADDRS, eth); in fl_init_dissector() 3456 mask->eth.dst, TCA_FLOWER_KEY_ETH_DST_MASK, in fl_dump_key() 3457 sizeof(key->eth.dst)) || in fl_dump_key() 3459 mask->eth.src, TCA_FLOWER_KEY_ETH_SRC_MASK, in fl_dump_key() [all …]
|
| /net/xfrm/ |
| A D | xfrm_output.c | 695 const struct ethhdr *eth; in xfrm_get_inner_ipproto() local 731 eth = (struct ethhdr *)skb_inner_mac_header(skb); in xfrm_get_inner_ipproto() 733 switch (ntohs(eth->h_proto)) { in xfrm_get_inner_ipproto()
|
| /net/atm/ |
| A D | mpc.c | 574 struct ethhdr *eth; in mpc_send_packet() local 583 eth = (struct ethhdr *)skb->data; in mpc_send_packet() 584 if (eth->h_proto != htons(ETH_P_IP)) in mpc_send_packet() 595 if (ether_addr_equal(eth->h_dest, mpc->mps_macs + i * ETH_ALEN)) in mpc_send_packet()
|
| /net/ipv6/ |
| A D | seg6_local.c | 854 struct ethhdr *eth; in input_action_end_dx2() local 863 eth = (struct ethhdr *)skb->data; in input_action_end_dx2() 869 if (!eth_proto_is_802_3(eth->h_proto)) in input_action_end_dx2() 896 skb->protocol = eth->h_proto; in input_action_end_dx2()
|
| /net/bpf/ |
| A D | test_run.c | 1377 const struct ethhdr *eth; in bpf_prog_test_run_flow_dissector() local 1393 eth = (struct ethhdr *)data; in bpf_prog_test_run_flow_dissector() 1416 retval = bpf_flow_dissect(prog, &ctx, eth->h_proto, ETH_HLEN, in bpf_prog_test_run_flow_dissector()
|