]> git.puffer.fish 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)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 7 May 2019 13:49:39 +0000 (15:49 +0200)
commit91f854f62a204c6440b5e13f8e959450869f494b
treed1876eb142f507f8bc70a39a4c14004a0b5752e2
parent218afa3671382f60d8b62c286739afd6f77cd2c6
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