]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Linux: Not binding the default-vrf socket to the (nonexistent) vrf device
authorMaria Matejka <mq@ucw.cz>
Wed, 24 Jan 2024 16:39:37 +0000 (17:39 +0100)
committerMaria Matejka <mq@ucw.cz>
Fri, 26 Jan 2024 13:42:55 +0000 (14:42 +0100)
sysdep/unix/io.c

index 11dfb2e4e042ae0270dc4eadab8757684b1ade7c..b4f00107db9ae29370483c26ccb192d9de631f72 100644 (file)
@@ -1049,7 +1049,7 @@ sk_setup(sock *s)
   }
 #endif
 
-  if (s->vrf && !s->iface)
+  if (s->vrf && (s->vrf != &default_vrf) && !s->iface)
   {
     /* Bind socket to associated VRF interface.
        This is Linux-specific, but so is SO_BINDTODEVICE. */