Encap IPv6 with ETH_P_IP?
PolynomialDivision opened this issue · 1 comments
PolynomialDivision commented
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);
?
tohojo commented
Polynomdivision <notifications@github.com> writes:
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);`?
Yeah, you're right; did most of the testing with IPv4 (and TC) :)