ip6tnl_linux.go 493 B

123456789101112131415161718192021
  1. package nl
  2. // id's of route attribute from https://elixir.bootlin.com/linux/v5.17.3/source/include/uapi/linux/lwtunnel.h#L38
  3. // the value's size are specified in https://elixir.bootlin.com/linux/v5.17.3/source/net/ipv4/ip_tunnel_core.c#L928
  4. const (
  5. LWTUNNEL_IP6_UNSPEC = iota
  6. LWTUNNEL_IP6_ID
  7. LWTUNNEL_IP6_DST
  8. LWTUNNEL_IP6_SRC
  9. LWTUNNEL_IP6_HOPLIMIT
  10. LWTUNNEL_IP6_TC
  11. LWTUNNEL_IP6_FLAGS
  12. LWTUNNEL_IP6_PAD // not implemented
  13. LWTUNNEL_IP6_OPTS // not implemented
  14. __LWTUNNEL_IP6_MAX
  15. )