[Swan-commit] Changes to ref refs/heads/main
Andrew Cagney
cagney at vault.libreswan.fi
Thu Oct 7 18:37:45 UTC 2021
New commits:
commit 8d08bb31eb332d2307cbb65b35f00f00b30df6ae
Author: Andrew Cagney <cagney at gnu.org>
Date: Thu Oct 7 12:30:10 2021 -0400
addr_lookup: when IPv6 + peer==group + seeking==prefsrc, add gateway to getroute request
This is the newoe-20-ipv6 "clear" case where peer's address is
%oppogroup, the gateway has been discovered, and the host's address is
still %defaultroute.
With this change, when seeking the host's address, the request adds:
IPv4: gateway (if known), peer (if known)
IPv6: peer (if known), gateway (if known and peer is group)
Here's some background:
- why IPv6 prefers the peer can be found in the tests
ipv6-addresspool-05-dual-stack and addconn-07-defaultroute, and the
commits around:
37ef81564178964c9a57bd5dc17552fbe4c99f52
pluto: fix %defaultroute when the gatewy is link-local fe80::
- why IPv4 prefers the gateway can be found in the tests
ikev1-hostpair-02 and addconn-07-defaultroute
it's all pretty weird and can probably be simplified.
More information about the Swan-commit
mailing list