libnftables: minor cleanups initalizing nf_sock instance of nft_ctx
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | libnftables: always initialize netlink socket in nft_ctx_new()src/ | +1 | 0 replies | |
| 2/4 | libnftables: drop unused argument nf_sock from nft_netlink()src/ | +3 | 0 replies | |
| 3/4 | libnftables: inline creation of nf_sock in nft_ctx_new()src/ | +1 | 0 replies | |
| 4/4 | libnftables: drop check for nf_sock in nft_ctx_free()src/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [nft PATCH 0/4] libnftables: minor cleanups initalizing nf_sock instance of nft_ctx
There is some unnecessary or redundant code in "src/libnftables.c". Clean up.
This was motivated by an attempt to add a new flag for nft_ctx_new(), beside NFT_CTX_DEFAULT. The current "if (flags == NFT_CTX_DEFAULT)" check is an odd usage for flags (because we would want that behavior for all flags).
Thomas Haller (4):
libnftables: always initialize netlink socket in nft_ctx_new()
libnftables: drop unused argument nf_sock from nft_netlink()
libnftables: inline creation of nf_sock in nft_ctx_new()
libnftables: drop check for nf_sock in nft_ctx_free()
src/libnftables.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-)
Signature · 1 line
2.41.0