diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2024-02-02 00:09:37 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-02-09 13:24:33 +0100 |
commit | 6c7623d07bbd44d81beb4aa60b0a1de12b622630 (patch) | |
tree | 918337ec32c47da14a6a869355b4d7493385332d /passt.c | |
parent | 322660b0b931e5fc1873659182559284e7a0946a (diff) | |
download | passt-6c7623d07bbd44d81beb4aa60b0a1de12b622630.tar passt-6c7623d07bbd44d81beb4aa60b0a1de12b622630.tar.gz passt-6c7623d07bbd44d81beb4aa60b0a1de12b622630.tar.bz2 passt-6c7623d07bbd44d81beb4aa60b0a1de12b622630.tar.lz passt-6c7623d07bbd44d81beb4aa60b0a1de12b622630.tar.xz passt-6c7623d07bbd44d81beb4aa60b0a1de12b622630.tar.zst passt-6c7623d07bbd44d81beb4aa60b0a1de12b622630.zip |
netlink: Add support to fetch default gateway from multipath routes
If the default route for a given IP version is a multipath one,
instead of refusing to start because there's no RTA_GATEWAY attribute
in the set returned by the kernel, we can just pick one of the paths.
To make this somewhat less arbitrary, pick the path with the highest
weight, if weights differ.
Reported-by: Ed Santiago <santiago@redhat.com>
Link: https://github.com/containers/podman/issues/20927
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'passt.c')
0 files changed, 0 insertions, 0 deletions