/linux-master/net/bluetooth/bnep/ |
H A D | netdev.c | 137 u16 proto = ntohs(eh->h_proto);
|
/linux-master/net/netfilter/ |
H A D | xt_AUDIT.c | 82 switch (eth_hdr(skb)->h_proto) {
|
H A D | nft_reject_netdev.c | 96 switch (eth->h_proto) {
|
H A D | nft_inner.c | 67 switch (eth->h_proto) { 70 llproto = eth->h_proto;
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_btf_skc_cls_ingress.c | 161 if (eth->h_proto != bpf_htons(ETH_P_IPV6))
|
H A D | test_tcp_check_syncookie_kern.c | 64 switch (bpf_ntohs(ethh->h_proto)) {
|
H A D | test_xdp_vlan.c | 67 eth_type = eth->h_proto; 218 * overwritten, is ethhdr->h_proto and vlan_hdr->h_vlan_TCI. 220 * ethhdr->h_proto. 242 /* Simply shift down MAC addrs 4 bytes, overwrite h_proto + TCI */
|
H A D | test_sk_lookup_kern.c | 69 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4);
|
H A D | test_assign_reuse.c | 117 if (eth->h_proto == bpf_htons(ETH_P_IP)) {
|
H A D | xdping_kern.c | 71 if (eth->h_proto != bpf_htons(ETH_P_IP))
|
/linux-master/include/uapi/linux/ |
H A D | if_ether.h | 176 __be16 h_proto; /* packet type ID field */ member in struct:ethhdr
|
/linux-master/drivers/infiniband/core/ |
H A D | lag.c | 72 skb->protocol = eth->h_proto = htons(is_ipv4 ? ETH_P_IP : ETH_P_IPV6);
|
/linux-master/net/llc/ |
H A D | llc_input.c | 136 pdulen = eth_hdr(skb)->h_proto;
|
H A D | llc_s_ac.c | 164 data_size = ntohs(eth_hdr(skb)->h_proto) - 3;
|
/linux-master/net/dsa/ |
H A D | tag_sja1105.c | 83 if (ntohs(hdr->h_proto) == ETH_P_SJA1105_META) 134 if (ntohs(hdr->h_proto) != ETH_P_SJA1105_META) 464 u16 tpid = ntohs(eth_hdr(skb)->h_proto); 472 return ntohs(eth_hdr(skb)->h_proto) == ETH_P_SJA1110;
|
/linux-master/include/net/netfilter/ |
H A D | nf_queue.h | 86 switch (eth_hdr(skb)->h_proto) {
|
/linux-master/net/hsr/ |
H A D | hsr_slave.c | 55 protocol = eth_hdr(skb)->h_proto;
|
H A D | hsr_framereg.c | 229 if (ethhdr->h_proto == htons(ETH_P_PRP) || 230 ethhdr->h_proto == htons(ETH_P_HSR)) { 294 if (ethhdr->h_proto == htons(ETH_P_HSR)) {
|
/linux-master/tools/testing/selftests/net/ |
H A D | psock_snd.c | 108 eth->h_proto = htons(ETH_P_8021Q); 113 eth->h_proto = htons(ETH_P_IP);
|
/linux-master/drivers/net/wireless/ath/ath11k/ |
H A D | wow.c | 191 &old_hdr_pattern->h_proto, 192 sizeof(old_hdr_pattern->h_proto)); 194 &old_hdr_mask->h_proto, 195 sizeof(old_hdr_mask->h_proto)); 201 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) 211 else if (total_len > offsetof(struct ethhdr, h_proto))
|
/linux-master/drivers/staging/rtl8192e/ |
H A D | rtllib_tx.c | 134 static int rtllib_put_snap(u8 *data, u16 h_proto) argument 144 if (h_proto == 0x8137 || h_proto == 0x80f3) 152 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); 237 if (eth->h_proto != htons(ETH_P_IP)) 567 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto);
|
/linux-master/drivers/staging/rtl8712/ |
H A D | rtl871x_xmit.c | 219 pattrib->ether_type = ntohs(etherhdr.h_proto); 572 static sint r8712_put_snap(u8 *data, u16 h_proto) argument 581 if (h_proto == 0x8137 || h_proto == 0x80f3) 588 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto);
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | xdp_hw_metadata.c | 354 if (eth->h_proto == htons(ETH_P_IP)) { 357 } else if (eth->h_proto == htons(ETH_P_IPV6)) { 361 printf("%p: failed to detect IP version for ping pong %04x\n", xsk, eth->h_proto);
|
H A D | network_helpers.c | 39 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 48 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
|
/linux-master/drivers/net/netdevsim/ |
H A D | psample.c | 55 eth->h_proto = htons(ETH_P_IP);
|