/linux-master/samples/bpf/ |
H A D | test_cgrp2_tc.bpf.c | 16 unsigned short h_proto; member in struct:eth_hdr 42 if (eth->h_proto != bpf_htons(ETH_P_IPV6) || 45 eth->h_proto, ip6h->nexthdr);
|
H A D | parse_varlen.c | 118 uint64_t h_proto, nh_off; local 124 h_proto = eth->h_proto; 126 if (h_proto == ETH_P_8021Q || h_proto == ETH_P_8021AD) { 133 h_proto = vhdr->h_vlan_encapsulated_proto; 135 if (h_proto == ETH_P_8021Q || h_proto == ETH_P_8021AD) { 142 h_proto = vhdr->h_vlan_encapsulated_proto; 144 if (h_proto [all...] |
H A D | tc_l2_redirect_kern.c | 37 unsigned short h_proto; member in struct:eth_hdr 76 if (eth->h_proto == htons(ETH_P_IP)) { 89 } else if (eth->h_proto == htons(ETH_P_IPV6)) { 127 if (eth->h_proto == htons(ETH_P_IP)) { 135 if (!is_vip_addr(eth->h_proto, daddr)) 166 if (eth->h_proto == htons(ETH_P_IP)) { 173 if (!is_vip_addr(eth->h_proto, iph->daddr)) 178 } else if (eth->h_proto == htons(ETH_P_IPV6)) { 185 if (!is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) 216 if (eth->h_proto [all...] |
H A D | parse_simple.c | 23 unsigned short h_proto; member in struct:eth_hdr 39 if (eth->h_proto != htons(ETH_P_IP))
|
H A D | xdp_fwd_kern.c | 51 u16 h_proto; local 61 h_proto = eth->h_proto; 62 if (h_proto == htons(ETH_P_IP)) { 79 } else if (h_proto == htons(ETH_P_IPV6)) { 133 if (h_proto == htons(ETH_P_IP)) 135 else if (h_proto == htons(ETH_P_IPV6))
|
H A D | xdp_router_ipv4.bpf.c | 81 __be16 h_proto; local 91 h_proto = eth->h_proto; 92 if (h_proto == bpf_htons(ETH_P_8021Q) || 93 h_proto == bpf_htons(ETH_P_8021AD)) { 101 h_proto = vhdr->h_vlan_encapsulated_proto; 104 switch (bpf_ntohs(h_proto)) {
|
H A D | xdp_adjust_tail_kern.c | 55 eth->h_proto = orig_eth->h_proto; 142 __u16 h_proto; local 147 h_proto = eth->h_proto; 149 if (h_proto == htons(ETH_P_IP))
|
H A D | xdp_tx_iptunnel_kern.c | 70 __be16 h_proto) 74 new_eth->h_proto = h_proto; 221 __u16 h_proto; local 226 h_proto = eth->h_proto; 228 if (h_proto == htons(ETH_P_IP)) 230 else if (h_proto == htons(ETH_P_IPV6)) 67 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument
|
H A D | parse_ldabs.c | 32 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP)
|
/linux-master/include/net/ |
H A D | firewire.h | 24 __be16 h_proto; /* packet type ID field */ member in struct:fwnet_header
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | xdp_redirect_multi_kern.c | 44 __u16 h_proto; local 51 h_proto = eth->h_proto; 54 if (h_proto == bpf_htons(ETH_P_IP)) 58 else if (h_proto == bpf_htons(ETH_P_IPV6))
|
H A D | xdp_hw_metadata.c | 42 if (eth + 1 < data_end && (eth->h_proto == bpf_htons(ETH_P_8021AD) || 43 eth->h_proto == bpf_htons(ETH_P_8021Q))) 46 if (eth + 1 < data_end && eth->h_proto == bpf_htons(ETH_P_8021Q)) 50 if (eth->h_proto == bpf_htons(ETH_P_IP)) { 55 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
|
H A D | test_xdp.c | 72 __be16 h_proto) 76 new_eth->h_proto = h_proto; 218 __u16 h_proto; local 223 h_proto = eth->h_proto; 225 if (h_proto == bpf_htons(ETH_P_IP)) 227 else if (h_proto == bpf_htons(ETH_P_IPV6)) 69 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument
|
H A D | test_xdp_loop.c | 68 __be16 h_proto) 72 new_eth->h_proto = h_proto; 214 __u16 h_proto; local 219 h_proto = eth->h_proto; 221 if (h_proto == bpf_htons(ETH_P_IP)) 223 else if (h_proto == bpf_htons(ETH_P_IPV6)) 65 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument
|
H A D | test_tc_link.c | 30 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP);
|
H A D | test_xdp_dynptr.c | 70 __be16 h_proto) 74 new_eth->h_proto = h_proto; 236 __u16 h_proto; local 245 h_proto = eth->h_proto; 247 if (h_proto == bpf_htons(ETH_P_IP)) 249 else if (h_proto == bpf_htons(ETH_P_IPV6)) 67 set_ethhdr(struct ethhdr *new_eth, const struct ethhdr *old_eth, const struct iptnl_info *tnl, __be16 h_proto) argument
|
H A D | test_pkt_access.c | 115 if (eth->h_proto == bpf_htons(ETH_P_IP)) { 123 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
|
H A D | xdp_metadata.c | 46 if (eth->h_proto == bpf_htons(ETH_P_IP)) { 51 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
|
/linux-master/drivers/staging/ks7010/ |
H A D | eap_packet.h | 16 __be16 h_proto; /* packet type ID field */ member in struct:ether_hdr
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 115 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 137 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 158 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q), 181 .eth.h_proto = __bpf_constant_htons(ETH_P_8021AD), 205 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 232 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 255 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 282 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 305 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 328 .eth.h_proto [all...] |
H A D | kfree_skb.c | 39 if (CHECK(pkt_v6->eth.h_proto != htons(ETH_P_IPV6), "check_eth", 40 "h_proto %x\n", pkt_v6->eth.h_proto))
|
/linux-master/net/ethernet/ |
H A D | eth.c | 86 eth->h_proto = htons(type); 88 eth->h_proto = htons(len); 137 eth->h_proto, sizeof(*eth), 178 if (likely(eth_proto_is_802_3(eth->h_proto))) 179 return eth->h_proto; 230 eth->h_proto = type; 268 return eth->h_proto; 424 type = eh->h_proto; 449 __be16 type = eh->h_proto;
|
/linux-master/net/bridge/netfilter/ |
H A D | ebt_log.c | 90 ntohs(eth_hdr(skb)->h_proto)); 97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == 114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == 139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || 140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) {
|
H A D | ebt_among.c | 73 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { 81 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { 104 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { 112 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
|
/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_eui64.c | 33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) {
|