xdp-project/bpf-examples

Encap IPv6 with ETH_P_IP?

PolynomialDivision opened this issue · 1 comments

Sry, why do u set ehdr->h_proto = bpf_htons(ETH_P_IP);?
https://github.com/xdp-project/bpf-examples/blob/master/encap-forward/xdp_encap.c#L39

If I have IPv6 I would suspect ehdr->h_proto = bpf_htons(ETH_P_IPV6);?