Lines Matching full:eth
35 struct ethhdr *eth; in rx() local
40 eth = data; in rx()
42 if (eth + 1 < data_end && (eth->h_proto == bpf_htons(ETH_P_8021AD) || in rx()
43 eth->h_proto == bpf_htons(ETH_P_8021Q))) in rx()
44 eth = (void *)eth + sizeof(struct vlan_hdr); in rx()
46 if (eth + 1 < data_end && eth->h_proto == bpf_htons(ETH_P_8021Q)) in rx()
47 eth = (void *)eth + sizeof(struct vlan_hdr); in rx()
49 if (eth + 1 < data_end) { in rx()
50 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in rx()
51 iph = (void *)(eth + 1); in rx()
55 if (eth->h_proto == bpf_htons(ETH_P_IPV6)) { in rx()
56 ip6h = (void *)(eth + 1); in rx()