/linux-master/drivers/net/ethernet/engleder/ |
H A D | tsnep_rxnfc.c | 115 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 D | nat6to4.c | 70 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 D | txring_overwrite.c | 51 eth->h_proto = htons(ETH_P_IP);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | vrf_socket_lookup.c | 29 if (eth->h_proto != bpf_htons(ETH_P_IP))
|
H A D | dynptr_fail.c | 1086 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 D | test_sk_assign.c | 68 if (eth->h_proto == bpf_htons(ETH_P_IP)) { 80 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) {
|
H A D | test_migrate_reuseport.c | 55 switch (bpf_ntohs(eth->h_proto)) {
|
H A D | xdp_features.c | 77 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 D | hsr_forward.c | 52 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 D | libipw_tx.c | 115 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 D | ebt_snat.c | 30 eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
|
H A D | nft_reject_bridge.c | 32 eth->h_proto = eth_hdr(oldskb)->h_proto; 121 switch (eth_hdr(pkt->skb)->h_proto) {
|
/linux-master/drivers/net/usb/ |
H A D | lg-vl600.c | 30 * 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(ðhdr->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 D | mpls.c | 84 attr->esw_attr->eth.h_proto = act->mpls_pop.proto;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | parse_tcp_hdr_opt.c | 15 .pk6_v6.eth.h_proto = __bpf_constant_htons(ETH_P_IPV6),
|
/linux-master/drivers/staging/gdm724x/ |
H A D | gdm_lte.c | 118 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 D | wow.c | 121 &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 D | core.c | 349 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 D | llc_station.c | 83 data_size = ntohs(eth_hdr(skb)->h_proto) - 3;
|
/linux-master/include/net/ |
H A D | erspan.h | 197 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 D | 11n_aggr.c | 60 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 D | sta_rx.c | 32 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 D | gelic_udbg.c | 157 h_eth->h_proto= ETH_P_8021Q; 165 h_eth->h_proto= 0x0800;
|
/linux-master/fs/lockd/ |
H A D | host.c | 145 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 D | en_selftest.c | 70 ethh->h_proto = htons(ETH_P_ARP);
|