From: Maria Matejka Date: Wed, 24 Jan 2024 16:39:37 +0000 (+0100) Subject: Linux: Not binding the default-vrf socket to the (nonexistent) vrf device X-Git-Tag: v3.0.0~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2379ed40bea517ba6c9fd901b600f187371cb337;p=thirdparty%2Fbird.git Linux: Not binding the default-vrf socket to the (nonexistent) vrf device --- diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index 11dfb2e4e..b4f00107d 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -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. */