Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/rbpf/examples/
H A Dload_elf__block_a_port.c29 struct eth_hdr *eth = data; in handle_ingress() local
30 struct iphdr *iph = data + sizeof(*eth); in handle_ingress()
31 struct tcphdr *tcp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress()
34 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*tcp) > data_end) in handle_ingress()
36 if (eth->h_proto != ETH_P_IP) in handle_ingress()