| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|