Home
last modified time | relevance | path

Searched refs:eth_type (Results 1 – 5 of 5) sorted by relevance

/external/iproute2/tc/
Df_flower.c127 static int flower_parse_vlan_eth_type(char *str, __be16 eth_type, int type, in flower_parse_vlan_eth_type() argument
133 if (eth_type != htons(ETH_P_8021Q)) { in flower_parse_vlan_eth_type()
199 static int flower_parse_ip_proto(char *str, __be16 eth_type, int type, in flower_parse_ip_proto() argument
205 if (eth_type != htons(ETH_P_IP) && eth_type != htons(ETH_P_IPV6)) in flower_parse_ip_proto()
215 if (eth_type != htons(ETH_P_IP)) in flower_parse_ip_proto()
219 if (eth_type != htons(ETH_P_IPV6)) in flower_parse_ip_proto()
278 static int flower_parse_ip_addr(char *str, __be16 eth_type, in flower_parse_ip_addr() argument
285 if (eth_type == htons(ETH_P_IP)) { in flower_parse_ip_addr()
287 } else if (eth_type == htons(ETH_P_IPV6)) { in flower_parse_ip_addr()
289 } else if (!eth_type) { in flower_parse_ip_addr()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_xdp_vlan.c59 __u16 eth_type; in parse_eth_frame() local
67 eth_type = eth->h_proto; in parse_eth_frame()
70 if (eth_type == bpf_htons(ETH_P_8021Q) in parse_eth_frame()
71 || eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth_frame()
78 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame()
83 if (eth_type == bpf_htons(ETH_P_8021Q) in parse_eth_frame()
84 || eth_type == bpf_htons(ETH_P_8021AD)) { in parse_eth_frame()
91 eth_type = vlan_hdr->h_vlan_encapsulated_proto; in parse_eth_frame()
95 pkt->l3_proto = bpf_ntohs(eth_type); /* Convert to host-byte-order */ in parse_eth_frame()
/external/scapy/scapy/contrib/
Dopenflow3.uts22 ofm = OFPMatch(oxm_fields=OFBEthType(eth_type=0x86dd))
/external/iproute2/bash-completion/
Dtc188 eth_type)
457 _tc_once_attr 'action classid indev dst_mac src_mac eth_type \
/external/libbpf/.github/actions/build-selftests/
Dvmlinux.h86921 __be16 eth_type; member