diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2022-06-20 10:08:39 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2022-06-20 13:24:54 +0200 |
| commit | f2bfa3b3aba781e0990ff592aebf36338b0ed821 (patch) | |
| tree | 76b4e10a8efca376d2c4c9bbf7d204dbbc76954c /sys/linux/socket_ip_tunnel.txt.const | |
| parent | 6247d1c3f73bab8fccd7b0d608d1a0aaf07fecdb (diff) | |
sys/linux: fix tunnel descriptions
sit devices are ipv4 even that it's source is in net/ipv6.
The address length is 4:
https://elixir.bootlin.com/linux/v5.19-rc2/source/net/ipv6/sit.c#L1440
and it accepts ip_tunnel_prl instead of ip6_tnl_parm2 for SIOCADDTUNNEL:
https://elixir.bootlin.com/linux/v5.19-rc2/source/net/ipv6/sit.c#L370
Also SIOC***PRL commands accept ip_tunnel_prl instead of ip6_tnl_parm2:
https://elixir.bootlin.com/linux/v5.19-rc2/source/net/ipv6/sit.c#L457
and SIOC***6RD accept ip_tunnel_6rd struct:
https://elixir.bootlin.com/linux/v5.19-rc2/source/net/ipv6/sit.c#L1169
and both SIOC***PRL and SIOC***6RD are only applicable to sit devices
rather than all tunnel types:
https://elixir.bootlin.com/linux/v5.19-rc2/A/ident/SIOCGET6RD
Diffstat (limited to 'sys/linux/socket_ip_tunnel.txt.const')
| -rw-r--r-- | sys/linux/socket_ip_tunnel.txt.const | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/socket_ip_tunnel.txt.const b/sys/linux/socket_ip_tunnel.txt.const index 96acd057a..1f7d1993d 100644 --- a/sys/linux/socket_ip_tunnel.txt.const +++ b/sys/linux/socket_ip_tunnel.txt.const @@ -20,6 +20,7 @@ IP6_TNL_F_USE_ORIG_TCLASS = 2 IPPROTO_GRE = 47 IPPROTO_IPIP = 4 IPPROTO_IPV6 = 41 +PRL_DEFAULT = 1 SIOCADD6RD = 35321 SIOCADDPRL = 35317 SIOCADDTUNNEL = 35313 |
