aboutgitcodebugslistschat
path: root/seccomp.sh
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-03-21 15:04:49 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-04-05 16:59:08 +0200
commit97e8b33f8708dea4d5666e4612c0377eb158b470 (patch)
treefc706f2fe0c82aeb2bded3561a60ec92a3d844ae /seccomp.sh
parent67a62589185f947a8757528818e090f9ae264738 (diff)
downloadpasst-97e8b33f8708dea4d5666e4612c0377eb158b470.tar
passt-97e8b33f8708dea4d5666e4612c0377eb158b470.tar.gz
passt-97e8b33f8708dea4d5666e4612c0377eb158b470.tar.bz2
passt-97e8b33f8708dea4d5666e4612c0377eb158b470.tar.lz
passt-97e8b33f8708dea4d5666e4612c0377eb158b470.tar.xz
passt-97e8b33f8708dea4d5666e4612c0377eb158b470.tar.zst
passt-97e8b33f8708dea4d5666e4612c0377eb158b470.zip
netlink: Ignore routes to link-local addresses for selecting interface
Since f919dc7a4b1c ("conf, netlink: Don't require a default route to start"), and since 639fdf06ede ("netlink: Fix selection of template interface") less buggily, we haven't required a default route on the host in order to operate. Instead, if we lack a default route we'll pick an interface with any route, as long as there's only one such interface. If there's more than one, we don't have a good criterion to pick, so we give up with an informational message. Paul Holzinger pointed out that this code considers it ambiguous even if all but one of the interfaces has only routes to link-local addresses (fe80::/10). A route to link-local addresses isn't really useful from pasta's point of view, so ignore them instead. This removes a misleading message in many cases, and a spurious failure in some cases. Suggested-by: Paul Holzinger <pholzing@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'seccomp.sh')
0 files changed, 0 insertions, 0 deletions