]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: Add IPv6 link-local address generation tests for GRE devices.
authorGuillaume Nault <gnault@redhat.com>
Fri, 7 Mar 2025 19:28:58 +0000 (20:28 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 13 Mar 2025 09:17:42 +0000 (10:17 +0100)
commit6f50175ccad4278ed3a9394c00b797b75441bd6e
tree33044123c9b88c81f726ba97e5741476486e3134
parent183185a18ff96751db52a46ccf93fff3a1f42815
selftests: Add IPv6 link-local address generation tests for GRE devices.

GRE devices have their special code for IPv6 link-local address
generation that has been the source of several regressions in the past.

Add selftest to check that all gre, ip6gre, gretap and ip6gretap get an
IPv6 link-link local address in accordance with the
net.ipv6.conf.<dev>.addr_gen_mode sysctl.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Link: https://patch.msgid.link/2d6772af8e1da9016b2180ec3f8d9ee99f470c77.1741375285.git.gnault@redhat.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/gre_ipv6_lladdr.sh [new file with mode: 0755]