[PATCH nf-next v2] nft_osf: Add ttl option support

2018-09-29 Thread Fernando Fernandez Mancera
Add ttl option support to the nftables "osf" expression. Signed-off-by: Fernando Fernandez Mancera --- v1: initial patch v2: code correctness and fix the "~" typo. --- include/linux/netfilter/nfnetlink_osf.h | 3 ++- include/uapi/linux/netfilter/nf_tables.h | 7 +++

[PATCH libnftnl] expr: osf: add ttl option support

2018-09-29 Thread Fernando Fernandez Mancera
Signed-off-by: Fernando Fernandez Mancera --- include/libnftnl/expr.h | 1 + include/linux/netfilter/nf_tables.h | 4 +++- src/expr/osf.c | 26 +- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/include/libnftnl/expr.h

[PATCH 2/2 nft] doc: osf: add ttl option to man page

2018-09-29 Thread Fernando Fernandez Mancera
--- doc/primary-expression.txt | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/doc/primary-expression.txt b/doc/primary-expression.txt index 0fda76d..92dd89a 100644 --- a/doc/primary-expression.txt +++ b/doc/primary-expression.txt @@ -187,18 +187,30 @@

[PATCH 1/2 nft v2] src: osf: add ttl option support

2018-09-29 Thread Fernando Fernandez Mancera
Add support for ttl option in "osf" expression. Example: table ip foo { chain bar { type filter hook input priority filter; policy accept; osf ttl nocheck name "Linux" } } Signed-off-by: Fernando Fernandez Mancera --- v1: initial patch v2: use