vppinfra: add abstract socket & netns fns 77/33177/3
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Mon, 19 Jul 2021 16:21:43 +0000 (18:21 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 22 Jul 2021 15:22:22 +0000 (15:22 +0000)
commit4cef6de5915d22508c3e79335fbbe226f47ad0f5
tree2f002039bc89a43d37265deee740330d84bfaf56
parent2cf583e3d6b7f8290e4fefec3b70968048d8dae0
vppinfra: add abstract socket & netns fns

* Add clib_socket_init support for abstract sockets
if name starts with an '@'
* Add clib_socket_init_netns to open socket in netns
* Add clib_netns_open

Type: feature

Change-Id: I89637ad657c702ec38ddecb5c03a1673d0dfb104
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/plugins/linux-cp/lcp_interface.c
src/vnet/devices/tap/tap.c
src/vppinfra/CMakeLists.txt
src/vppinfra/linux/netns.c [new file with mode: 0644]
src/vppinfra/linux/netns.h [new file with mode: 0644]
src/vppinfra/socket.c
src/vppinfra/socket.h