aboutgitcodebugslistschat
path: root/netlink.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-01-25 20:49:52 +0100
committerStefano Brivio <sbrivio@redhat.com>2022-01-26 16:30:59 +0100
commit64f7d81d9ae4fd7e6bd21a3e0a1ce3d3d0250bec (patch)
tree1984097814df152cffc640e4764b3e47a85e9f29 /netlink.c
parentcaa22aa644cb56e6fda77ff80c62d038653f3cf9 (diff)
downloadpasst-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netlink.c b/netlink.c
index 3ba5f05..532868d 100644
--- a/netlink.c
+++ b/netlink.c
@@ -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;
}