Home
last modified time | relevance | path

Searched refs:eth_type (Results 1 – 8 of 8) 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/
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/u-boot/drivers/qe/
Duccf.h97 enet_type_e eth_type; member
Duccf.c305 if (uf_info->eth_type == GIGA_ETH) { in ucc_fast_init()
333 if (uf_info->eth_type == FAST_ETH) { in ucc_fast_init()
Duec.c439 if (uec->uec_info->uf_info.eth_type == GIGA_ETH) { in init_phy()
522 if (uec->uec_info->uf_info.eth_type == GIGA_ETH) { in adjust_link()
Duec.h658 .eth_type = CONFIG_SYS_UEC##num##_ETH_TYPE,\
/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 \