| /OK3568_Linux_fs/kernel/samples/bpf/ |
| H A D | xdp1_kern.c | 50 u16 h_proto; in xdp_prog1() local 58 h_proto = eth->h_proto; in xdp_prog1() 60 if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { in xdp_prog1() 67 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1() 69 if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { in xdp_prog1() 76 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1() 79 if (h_proto == htons(ETH_P_IP)) in xdp_prog1() 81 else if (h_proto == htons(ETH_P_IPV6)) in xdp_prog1()
|
| H A D | xdp2_kern.c | 66 u16 h_proto; in xdp_prog1() local 74 h_proto = eth->h_proto; in xdp_prog1() 76 if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { in xdp_prog1() 83 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1() 85 if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { in xdp_prog1() 92 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_prog1() 95 if (h_proto == htons(ETH_P_IP)) in xdp_prog1() 97 else if (h_proto == htons(ETH_P_IPV6)) in xdp_prog1()
|
| H A D | parse_varlen.c | 118 uint64_t h_proto, nh_off; in handle_ingress() local 124 h_proto = eth->h_proto; in handle_ingress() 126 if (h_proto == ETH_P_8021Q || h_proto == ETH_P_8021AD) { in handle_ingress() 133 h_proto = vhdr->h_vlan_encapsulated_proto; in handle_ingress() 135 if (h_proto == ETH_P_8021Q || h_proto == ETH_P_8021AD) { in handle_ingress() 142 h_proto = vhdr->h_vlan_encapsulated_proto; in handle_ingress() 144 if (h_proto == htons(ETH_P_IP)) in handle_ingress() 146 else if (h_proto == htons(ETH_P_IPV6)) in handle_ingress()
|
| H A D | tc_l2_redirect_kern.c | 37 unsigned short h_proto; member 76 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward() 89 } else if (eth->h_proto == htons(ETH_P_IPV6)) { in _l2_to_iptun_ingress_forward() 127 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect() 135 if (!is_vip_addr(eth->h_proto, daddr)) in _l2_to_iptun_ingress_redirect() 166 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect() 173 if (!is_vip_addr(eth->h_proto, iph->daddr)) in _l2_to_ip6tun_ingress_redirect() 178 } else if (eth->h_proto == htons(ETH_P_IPV6)) { in _l2_to_ip6tun_ingress_redirect() 185 if (!is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) in _l2_to_ip6tun_ingress_redirect() 216 if (eth->h_proto == htons(ETH_P_IP)) { in _drop_non_tun_vip() [all …]
|
| H A D | xdp_router_ipv4_kern.c | 119 u16 h_proto; in xdp_router_ipv4_prog() local 127 h_proto = eth->h_proto; in xdp_router_ipv4_prog() 129 if (h_proto == htons(ETH_P_8021Q) || h_proto == htons(ETH_P_8021AD)) { in xdp_router_ipv4_prog() 136 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_router_ipv4_prog() 138 if (h_proto == htons(ETH_P_ARP)) { in xdp_router_ipv4_prog() 140 } else if (h_proto == htons(ETH_P_IP)) { in xdp_router_ipv4_prog()
|
| H A D | xdp_fwd_kern.c | 51 u16 h_proto; in xdp_fwd_flags() local 61 h_proto = eth->h_proto; in xdp_fwd_flags() 62 if (h_proto == htons(ETH_P_IP)) { in xdp_fwd_flags() 79 } else if (h_proto == htons(ETH_P_IPV6)) { in xdp_fwd_flags() 133 if (h_proto == htons(ETH_P_IP)) in xdp_fwd_flags() 135 else if (h_proto == htons(ETH_P_IPV6)) in xdp_fwd_flags()
|
| H A D | xdp_tx_iptunnel_kern.c | 70 __be16 h_proto) in set_ethhdr() argument 74 new_eth->h_proto = h_proto; in set_ethhdr() 221 __u16 h_proto; in _xdp_tx_iptunnel() local 226 h_proto = eth->h_proto; in _xdp_tx_iptunnel() 228 if (h_proto == htons(ETH_P_IP)) in _xdp_tx_iptunnel() 230 else if (h_proto == htons(ETH_P_IPV6)) in _xdp_tx_iptunnel()
|
| H A D | xdp_adjust_tail_kern.c | 55 eth->h_proto = orig_eth->h_proto; in swap_mac() 142 __u16 h_proto; in _xdp_icmp() local 147 h_proto = eth->h_proto; in _xdp_icmp() 149 if (h_proto == htons(ETH_P_IP)) in _xdp_icmp()
|
| H A D | test_cgrp2_tc_kern.c | 19 unsigned short h_proto; member 56 if (eth->h_proto != htons(ETH_P_IPV6) || in handle_egress() 59 eth->h_proto, ip6h->nexthdr); in handle_egress()
|
| H A D | parse_simple.c | 23 unsigned short h_proto; member 39 if (eth->h_proto != htons(ETH_P_IP)) in handle_ingress()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/ |
| H A D | test_xdp.c | 73 __be16 h_proto) in set_ethhdr() argument 77 new_eth->h_proto = h_proto; in set_ethhdr() 219 __u16 h_proto; in _xdp_tx_iptunnel() local 224 h_proto = eth->h_proto; in _xdp_tx_iptunnel() 226 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel() 228 else if (h_proto == bpf_htons(ETH_P_IPV6)) in _xdp_tx_iptunnel()
|
| H A D | test_xdp_loop.c | 69 __be16 h_proto) in set_ethhdr() argument 73 new_eth->h_proto = h_proto; in set_ethhdr() 215 __u16 h_proto; in _xdp_tx_iptunnel() local 220 h_proto = eth->h_proto; in _xdp_tx_iptunnel() 222 if (h_proto == bpf_htons(ETH_P_IP)) in _xdp_tx_iptunnel() 224 else if (h_proto == bpf_htons(ETH_P_IPV6)) in _xdp_tx_iptunnel()
|
| H A D | test_pkt_access.c | 113 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in test_pkt_access() 121 } else if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in test_pkt_access()
|
| /OK3568_Linux_fs/kernel/net/ethernet/ |
| H A D | eth.c | 86 eth->h_proto = htons(type); in eth_header() 88 eth->h_proto = htons(len); in eth_header() 137 eth->h_proto, sizeof(*eth), in eth_get_headlen() 192 if (likely(eth_proto_is_802_3(eth->h_proto))) in eth_type_trans() 193 return eth->h_proto; in eth_type_trans() 244 eth->h_proto = type; in eth_header_cache() 282 return eth->h_proto; in eth_header_parse_protocol() 441 type = eh->h_proto; in eth_gro_receive() 466 __be16 type = eh->h_proto; in eth_gro_complete()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 111 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 132 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 152 .eth.h_proto = __bpf_constant_htons(ETH_P_8021Q), 174 .eth.h_proto = __bpf_constant_htons(ETH_P_8021AD), 197 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 223 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 245 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 271 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 293 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 315 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), [all …]
|
| /OK3568_Linux_fs/kernel/net/bridge/netfilter/ |
| H A D | ebt_log.c | 90 ntohs(eth_hdr(skb)->h_proto)); in ebt_log_packet() 97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto == in ebt_log_packet() 114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto == in ebt_log_packet() 139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) || in ebt_log_packet() 140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) { in ebt_log_packet()
|
| H A D | ebt_among.c | 73 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_dst() 81 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in get_ip_dst() 104 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) { in get_ip_src() 112 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) { in get_ip_src()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/ipw2x00/ |
| H A D | libipw_tx.c | 115 static int libipw_copy_snap(u8 * data, __be16 h_proto) in libipw_copy_snap() argument 125 if (h_proto == htons(ETH_P_AARP) || h_proto == htons(ETH_P_IPX)) in libipw_copy_snap() 133 memcpy(data + SNAP_SIZE, &h_proto, sizeof(u16)); in libipw_copy_snap() 215 if (eth->h_proto != htons(ETH_P_IP)) in libipw_classify() 281 ether_type = ((struct ethhdr *)skb->data)->h_proto; in libipw_xmit()
|
| /OK3568_Linux_fs/kernel/net/hsr/ |
| H A D | hsr_forward.c | 50 if (!(eth_hdr->h_proto == htons(ETH_P_PRP) || in is_supervision_frame() 51 eth_hdr->h_proto == htons(ETH_P_HSR))) in is_supervision_frame() 55 if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */ in is_supervision_frame() 103 skb->protocol = eth_hdr(skb)->h_proto; in create_stripped_skb_hsr() 226 hsr_ethhdr->hsr_tag.encap_proto = hsr_ethhdr->ethhdr.h_proto; in hsr_fill_tag() 227 hsr_ethhdr->ethhdr.h_proto = htons(proto_version ? in hsr_fill_tag() 520 proto = ethhdr->h_proto; in fill_frame_info()
|
| /OK3568_Linux_fs/kernel/drivers/staging/gdm724x/ |
| H A D | gdm_lte.c | 118 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_arp() 164 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_arp() 239 if (ntohs(((struct ethhdr *)skb_in->data)->h_proto) == ETH_P_8021Q) { in gdm_lte_emulate_ndp() 247 if (ntohs(eth.h_proto) != ETH_P_IPV6) in gdm_lte_emulate_ndp() 326 skb_out->protocol = ((struct ethhdr *)mac_header_data)->h_proto; in gdm_lte_emulate_ndp() 352 if (ntohs(eth->h_proto) == ETH_P_8021Q) { in gdm_lte_tx_nic_type() 358 mac_proto = ntohs(eth->h_proto); in gdm_lte_tx_nic_type() 643 eth.h_proto = htons(ETH_P_ARP); in gdm_lte_netif_rx() 648 eth.h_proto = htons(ETH_P_IP); in gdm_lte_netif_rx() 651 eth.h_proto = htons(ETH_P_IPV6); in gdm_lte_netif_rx() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/usb/ |
| H A D | lg-vl600.c | 49 __be16 h_proto; member 176 if (be16_to_cpup(ðhdr->h_proto) == ETH_P_ARP && in vl600_rx_fixup() 195 ethhdr->h_proto = htons(ETH_P_IPV6); in vl600_rx_fixup() 285 packet->h_proto = htons(ETH_P_IP); in vl600_tx_fixup()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath10k/ |
| H A D | wow.c | 120 &old_hdr_pattern->h_proto, in ath10k_wow_convert_8023_to_80211() 121 sizeof(old_hdr_pattern->h_proto)); in ath10k_wow_convert_8023_to_80211() 123 &old_hdr_mask->h_proto, in ath10k_wow_convert_8023_to_80211() 124 sizeof(old_hdr_mask->h_proto)); in ath10k_wow_convert_8023_to_80211() 130 else if (old->pkt_offset < offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211() 140 else if (total_len > offsetof(struct ethhdr, h_proto)) in ath10k_wow_convert_8023_to_80211()
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8192u/ieee80211/ |
| H A D | ieee80211_tx.c | 141 static inline int ieee80211_put_snap(u8 *data, u16 h_proto) in ieee80211_put_snap() argument 151 if (h_proto == 0x8137 || h_proto == 0x80f3) in ieee80211_put_snap() 159 *(__be16 *)(data + SNAP_SIZE) = htons(h_proto); in ieee80211_put_snap() 265 if (eth->h_proto != htons(ETH_P_IP)) in ieee80211_classify() 572 ether_type = ntohs(((struct ethhdr *)skb->data)->h_proto); in ieee80211_xmit()
|
| /OK3568_Linux_fs/kernel/fs/lockd/ |
| H A D | host.c | 145 host->h_proto = ni->protocol; in nlm_alloc_host() 259 if (host->h_proto != protocol) in nlmclnt_lookup_host() 370 if (host->h_proto != ni.protocol) in nlmsvc_lookup_host() 453 .protocol = host->h_proto, in nlm_bind_host() 503 if (host->h_proto != IPPROTO_UDP) in nlm_rebind_host()
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/ |
| H A D | rtw_recv_shortcut.c | 126 …_entry->rxsc_payload_offset+(ETH_ALEN*2)]), *(unsigned short *)(&rxsc_entry->rxsc_ethhdr.h_proto)); in core_rxsc_get_entry() 133 …entry->rxsc_payload_offset+(ETH_ALEN*2)]) == *(unsigned short *)(&rxsc_entry->rxsc_ethhdr.h_proto)) in core_rxsc_get_entry() 140 …->rxsc_payload_offset+(ETH_ALEN * 2)]) == *(unsigned short *)(&rxsc_entry->rxsc_ethhdr.h_proto))) { in core_rxsc_get_entry()
|