Searched refs:h_proto (Results 1 - 25 of 247) sorted by relevance

12345678910

/linux-master/samples/bpf/
H A Dtest_cgrp2_tc.bpf.c16 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 Dparse_varlen.c118 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 Dtc_l2_redirect_kern.c37 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 Dparse_simple.c23 unsigned short h_proto; member in struct:eth_hdr
39 if (eth->h_proto != htons(ETH_P_IP))
H A Dxdp_fwd_kern.c51 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 Dxdp_router_ipv4.bpf.c81 __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 Dxdp_adjust_tail_kern.c55 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 Dxdp_tx_iptunnel_kern.c70 __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 Dparse_ldabs.c32 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP)
/linux-master/include/net/
H A Dfirewire.h24 __be16 h_proto; /* packet type ID field */ member in struct:fwnet_header
/linux-master/tools/testing/selftests/bpf/progs/
H A Dxdp_redirect_multi_kern.c44 __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 Dxdp_hw_metadata.c42 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 Dtest_xdp.c72 __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 Dtest_xdp_loop.c68 __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 Dtest_tc_link.c30 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP);
H A Dtest_xdp_dynptr.c70 __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 Dtest_pkt_access.c115 if (eth->h_proto == bpf_htons(ETH_P_IP)) {
123 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
H A Dxdp_metadata.c46 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 Deap_packet.h16 __be16 h_proto; /* packet type ID field */ member in struct:ether_hdr
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c115 .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 Dkfree_skb.c39 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 Deth.c86 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 Debt_log.c90 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 Debt_among.c73 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 Dip6t_eui64.c33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) {

Completed in 216 milliseconds

12345678910