Searched refs:h_proto (Results 51 - 75 of 247) sorted by relevance

12345678910

/linux-master/net/bluetooth/bnep/
H A Dnetdev.c137 u16 proto = ntohs(eh->h_proto);
/linux-master/net/netfilter/
H A Dxt_AUDIT.c82 switch (eth_hdr(skb)->h_proto) {
H A Dnft_reject_netdev.c96 switch (eth->h_proto) {
H A Dnft_inner.c67 switch (eth->h_proto) {
70 llproto = eth->h_proto;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_btf_skc_cls_ingress.c161 if (eth->h_proto != bpf_htons(ETH_P_IPV6))
H A Dtest_tcp_check_syncookie_kern.c64 switch (bpf_ntohs(ethh->h_proto)) {
H A Dtest_xdp_vlan.c67 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 Dtest_sk_lookup_kern.c69 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4);
H A Dtest_assign_reuse.c117 if (eth->h_proto == bpf_htons(ETH_P_IP)) {
H A Dxdping_kern.c71 if (eth->h_proto != bpf_htons(ETH_P_IP))
/linux-master/include/uapi/linux/
H A Dif_ether.h176 __be16 h_proto; /* packet type ID field */ member in struct:ethhdr
/linux-master/drivers/infiniband/core/
H A Dlag.c72 skb->protocol = eth->h_proto = htons(is_ipv4 ? ETH_P_IP : ETH_P_IPV6);
/linux-master/net/llc/
H A Dllc_input.c136 pdulen = eth_hdr(skb)->h_proto;
H A Dllc_s_ac.c164 data_size = ntohs(eth_hdr(skb)->h_proto) - 3;
/linux-master/net/dsa/
H A Dtag_sja1105.c83 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 Dnf_queue.h86 switch (eth_hdr(skb)->h_proto) {
/linux-master/net/hsr/
H A Dhsr_slave.c55 protocol = eth_hdr(skb)->h_proto;
H A Dhsr_framereg.c229 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 Dpsock_snd.c108 eth->h_proto = htons(ETH_P_8021Q);
113 eth->h_proto = htons(ETH_P_IP);
/linux-master/drivers/net/wireless/ath/ath11k/
H A Dwow.c191 &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 Drtllib_tx.c134 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 Drtl871x_xmit.c219 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 Dxdp_hw_metadata.c354 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 Dnetwork_helpers.c39 .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 Dpsample.c55 eth->h_proto = htons(ETH_P_IP);

Completed in 329 milliseconds

12345678910