Searched refs:h_proto (Results 26 - 50 of 247) sorted by relevance

12345678910

/linux-master/drivers/net/ethernet/engleder/
H A Dtsnep_rxnfc.c115 fsp->h_u.ether_spec.h_proto = htons(rule->filter.ether_type);
116 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK;
180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto);
214 fsp->m_u.ether_spec.h_proto != ETHER_TYPE_FULL_MASK) {
/linux-master/tools/testing/selftests/net/
H A Dnat6to4.c70 if (eth->h_proto != bpf_htons(ETH_P_IPV6))
92 eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype
167 if (eth->h_proto != bpf_htons(ETH_P_IP))
227 eth2.h_proto = bpf_htons(ETH_P_IPV6); // But replace the ethertype
H A Dtxring_overwrite.c51 eth->h_proto = htons(ETH_P_IP);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dvrf_socket_lookup.c29 if (eth->h_proto != bpf_htons(ETH_P_IP))
H A Ddynptr_fail.c1086 hdr->h_proto = 1;
1106 val = hdr->h_proto;
1112 val = hdr->h_proto;
1132 hdr->h_proto = 123;
1138 hdr->h_proto = 1;
1159 val = hdr->h_proto;
1164 val = hdr->h_proto;
1184 hdr->h_proto = 123;
1189 hdr->h_proto = 1;
1208 val = hdr->h_proto;
[all...]
H A Dtest_sk_assign.c68 if (eth->h_proto == bpf_htons(ETH_P_IP)) {
80 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
H A Dtest_migrate_reuseport.c55 switch (bpf_ntohs(eth->h_proto)) {
H A Dxdp_features.c77 if (eh->h_proto == bpf_htons(ETH_P_IP)) {
98 } else if (eh->h_proto == bpf_htons(ETH_P_IPV6)) {
/linux-master/net/hsr/
H A Dhsr_forward.c52 if (!(eth_hdr->h_proto == htons(ETH_P_PRP) ||
53 eth_hdr->h_proto == htons(ETH_P_HSR)))
57 if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */
145 skb->protocol = eth_hdr(skb)->h_proto;
231 skb->protocol = eth_hdr(skb)->h_proto;
269 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto;
270 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ?
272 skb->protocol = hsr_ethhdr->ethhdr.h_proto;
585 proto = ethhdr->h_proto;
/linux-master/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_tx.c115 static int libipw_copy_snap(u8 * data, __be16 h_proto) argument
125 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX))
133 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16));
215 if (eth->h_proto != htons(ETH_P_IP))
281 ether_type = ((struct ethhdr *)skb->data)->h_proto;
/linux-master/net/bridge/netfilter/
H A Debt_snat.c30 eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
H A Dnft_reject_bridge.c32 eth->h_proto = eth_hdr(oldskb)->h_proto;
121 switch (eth_hdr(pkt->skb)->h_proto) {
/linux-master/drivers/net/usb/
H A Dlg-vl600.c30 * multiplexing by using non standard values of the .h_proto field.
49 __be16 h_proto; member in struct:vl600_pkt_hdr
172 * the h_proto field is in the same place so we just leave it
176 if (be16_to_cpup(&ethhdr->h_proto) == ETH_P_ARP &&
195 ethhdr->h_proto = htons(ETH_P_IPV6);
277 * h_proto field is in the same place so we just leave it alone and
285 packet->h_proto = htons(ETH_P_IP);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmpls.c84 attr->esw_attr->eth.h_proto = act->mpls_pop.proto;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dparse_tcp_hdr_opt.c15 .pk6_v6.eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
/linux-master/drivers/staging/gdm724x/
H A Dgdm_lte.c118 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) {
164 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto;
238 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) {
246 if (ntohs(eth.h_proto) != ETH_P_IPV6)
325 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto;
351 if (ntohs(eth->h_proto) == ETH_P_8021Q) {
357 mac_proto = ntohs(eth->h_proto);
642 eth.h_proto = htons(ETH_P_ARP);
647 eth.h_proto = htons(ETH_P_IP);
650 eth.h_proto
[all...]
/linux-master/drivers/net/wireless/ath/ath10k/
H A Dwow.c121 &old_hdr_pattern->h_proto,
122 sizeof(old_hdr_pattern->h_proto));
124 &old_hdr_mask->h_proto,
125 sizeof(old_hdr_mask->h_proto));
131 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto))
141 else if (total_len > offsetof(struct ethhdr, h_proto))
/linux-master/net/bluetooth/bnep/
H A Dcore.c349 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2));
358 if (ntohs(s->eh.h_proto) == ETH_P_8021Q) {
361 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2));
383 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2));
389 put_unaligned(s->eh.h_proto, (__be16 *)__skb_put(nskb, 2));
394 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2));
/linux-master/net/llc/
H A Dllc_station.c83 data_size = ntohs(eth_hdr(skb)->h_proto) - 3;
/linux-master/include/net/
H A Derspan.h197 if (eth->h_proto == htons(ETH_P_8021Q)) {
291 if (eth->h_proto == htons(ETH_P_8021Q)) {
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A D11n_aggr.c60 snap.snap_type = ((struct ethhdr *)skb_src->data)->h_proto;
69 tx_header->eth803_hdr.h_proto = htons(skb_src->len + LLC_SNAP_LEN);
H A Dsta_rx.c32 switch (ntohs(eth->h_proto)) {
149 ntohs(rx_pkt_hdr->eth803_hdr.h_proto) == ETH_P_TDLS) {
/linux-master/arch/powerpc/platforms/ps3/
H A Dgelic_udbg.c157 h_eth->h_proto= ETH_P_8021Q;
165 h_eth->h_proto= 0x0800;
/linux-master/fs/lockd/
H A Dhost.c145 host->h_proto = ni->protocol;
259 if (host->h_proto != protocol)
370 if (host->h_proto != ni.protocol)
453 .protocol = host->h_proto,
503 if (host->h_proto != IPPROTO_UDP)
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c70 ethh->h_proto = htons(ETH_P_ARP);

Completed in 350 milliseconds

12345678910