]> git.proxmox.com Git - mirror_frr.git/commit
lib: perform a bind inside vrf_socket() call
authorPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 23 Apr 2019 15:31:42 +0000 (17:31 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Wed, 8 Jan 2020 06:55:36 +0000 (08:55 +0200)
commita06437e63246521f6b8a7a24c33fd4c87b7d05d8
tree37bbec60cda83acffb146eeb502512b32938fc07
parentc785c0516e0fbea03ea946966aa5c4c58b5b41dc
lib: perform a bind inside vrf_socket() call

This is an extension to previous behavior, where the bind() operation
was performed only when vrf was not a netns backend kind. This was done
like that because usually the bind parameter is the vrf name itself, and
having an interface name with vrf name is an expectation so that the
bind operation works.
the bind() operation can be performed on whatever device provided that
that name is not null and there is an interface in the vrf that has the
same name as the parameter.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/vrf.c