Skip to content

netns support

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libnftables: add nft_ctx_set_netns()include/namespace.h include/nftables/libnftables.h src/Makefile.am +3 more+156 -06 replies
2/3main: split parsing from libnftables initializationsrc/main.c+13 -160 replies
3/3main: add -w/--netns optiondoc/nft.txt src/main.c+27 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/3] netns support

Hi,

This patchset adds native netns support:

1) Add nft_ctx_set_netns() to libnftables to specify the network namespace.

2) Add new -w/--netns option to specify the network namespace from the command line.

Pablo Neira Ayuso (3):
libnftables: add nft_ctx_set_netns()
main: split parsing from libnftables initialization
main: add -w/--netns option

 doc/nft.txt                    |   4 ++
 include/namespace.h            |  21 ++++++++
 include/nftables/libnftables.h |   3 ++
 src/Makefile.am                |   1 +
 src/libnftables.c              |  20 ++++++++
 src/libnftables.map            |   4 ++
 src/main.c                     |  53 ++++++++++++--------
 src/namespace.c                | 107 +++++++++++++++++++++++++++++++++++++++++
 8 files changed, 194 insertions(+), 19 deletions(-)
 create mode 100644 include/namespace.h
 create mode 100644 src/namespace.c
Signature · 1 line
2.11.0