mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-02 15:11:53 +00:00
Merge commit 'df22b314' into thread-merge-2.16
This commit is contained in:
commit
3bbe0ec251
@ -1108,10 +1108,11 @@ sk_setup(sock *s)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (s->vrf && (s->vrf != &default_vrf) && !s->iface)
|
if (s->vrf && (s->vrf != &default_vrf) && !s->iface && (s->type != SK_TCP))
|
||||||
{
|
{
|
||||||
/* Bind socket to associated VRF interface.
|
/* Bind socket to associated VRF interface.
|
||||||
This is Linux-specific, but so is SO_BINDTODEVICE. */
|
This is Linux-specific, but so is SO_BINDTODEVICE.
|
||||||
|
For accepted TCP sockets it is inherited from the listening one. */
|
||||||
#ifdef SO_BINDTODEVICE
|
#ifdef SO_BINDTODEVICE
|
||||||
struct ifreq ifr = {};
|
struct ifreq ifr = {};
|
||||||
strcpy(ifr.ifr_name, s->vrf->name);
|
strcpy(ifr.ifr_name, s->vrf->name);
|
||||||
|
Loading…
Reference in New Issue
Block a user