diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-01-26 12:28:27 +0100 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-02-27 11:11:24 +0100 |
| commit | 2e0d2b3d9c4f2681d00ec2607319f3bb8078e31d (patch) | |
| tree | 05903e6601393cce616c981bcedd4a62282628d4 /doc/code | |
| parent | 40289934f1b07acf934f26aec63ed523e6889a1d (diff) | |
lib: add two APIs to handle socket operations with VRF NETNS
The vrf_sockunion_socket() wraps sockunion_socket() with vrf_id as
additional parameter. The creation of socket forces the user to
transparently move to new NETNS for doing the operation.
The vrf_getaddr_info() wraps getaddr_info() with vrf_id as additional
parameter. That API relies on the underlying system. Then there may be
need to switch to an other netns in that case too.
Also, the vrf_socket() implementation is simplified.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'doc/code')
0 files changed, 0 insertions, 0 deletions
