diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-01-25 20:49:52 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-01-26 16:30:59 +0100 |
commit | 64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec (patch) | |
tree | 1984097814df152cffc640e4764b3e47a85e9f29 /netlink.c | |
parent | caa22aa644cb56e6fda77ff80c62d038653f3cf9 (diff) | |
download | passt-64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec.tar passt-64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec.tar.gz passt-64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec.tar.bz2 passt-64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec.tar.lz passt-64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec.tar.xz passt-64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec.tar.zst passt-64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec.zip |
netlink: Fix swapped v4/v6-only flags in external interface detection
The effect of this typo became visible in an IPv6-only environment,
where passt wouldn't work at all.
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'netlink.c')
-rw-r--r-- | netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -231,8 +231,8 @@ v6: } if (first_v6) { - *v4 = IP_VERSION_ENABLED; - *v6 = IP_VERSION_DISABLED; + *v4 = IP_VERSION_DISABLED; + *v6 = IP_VERSION_ENABLED; return first_v6; } |