mbox series

[v4,0/2] ip/ip6_gre: Fix GRE tunnels not generating IPv6 link local addresses

Message ID 20230127025941.2813766-1-Thomas.Winter@alliedtelesis.co.nz (mailing list archive)
Headers show
Series ip/ip6_gre: Fix GRE tunnels not generating IPv6 link local addresses | expand

Message

Thomas Winter Jan. 27, 2023, 2:59 a.m. UTC
For our point-to-point GRE tunnels, they have IN6_ADDR_GEN_MODE_NONE
when they are created then we set IN6_ADDR_GEN_MODE_EUI64 when they
come up to generate the IPv6 link local address for the interface.
Recently we found that they were no longer generating IPv6 addresses.

Also, non-point-to-point tunnels were not generating any IPv6 link
local address and instead generating an IPv6 compat address,
breaking IPv6 communication on the tunnel.

These failures were caused by commit e5dd729460ca and this patch set
aims to resolve these issues.

Thomas Winter (2):
  ip/ip6_gre: Fix changing addr gen mode not generating IPv6 link local
    address
  ip/ip6_gre: Fix non-point-to-point tunnel not generating IPv6 link
    local address

 net/ipv6/addrconf.c | 61 ++++++++++++++++++++++++---------------------
 1 file changed, 33 insertions(+), 28 deletions(-)