nft include path updates
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | libnftables: add base directory of -f/--filename to include pathdoc/ src/ | +20 | 0 replies | |
| 2/2 | libnftables: search for default include path lastsrc/ src/ | +41 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH nft 0/2] nft include path updates
Hi,
This patchset updates include path logic of nftables:
Patch #1 adds -f/--filename base directory as implicit include path,
so users do not need to add a redundant -I/--includepath such as:
# nft -I /path/to/files -f /path/to/files/ruleset.nft
Patch #2 searches for default include path last so users have a way
to override the default include path either via -I/--includepath or the implicit include path added by Patch #1
For instance, assuming you have:
# cat /path/to/files/ruleset.nft
include "file1.nft"
include "file2.nft"
# ls /path/to/files/
file1.nft file2.nftthen, make a copy of the ruleset:
# mkdir update
# cp -r /path/to/files/* update
# vim update/file1.nft
...
file edit goes here
...
# nft -f copy/ruleset.nftComments welcome, thanks.
Pablo Neira Ayuso (2):
libnftables: add base directory of -f/--filename to include path
libnftables: search for default include path last
doc/nft.txt | 2 ++ src/libnftables.c | 19 +++++++++++++- src/scanner.l | 63 ++++++++++++++++++++++++++++++----------------- 3 files changed, 61 insertions(+), 23 deletions(-)
--
2.30.2