From 1f5373b14db9a60ec3afc0e4e67e43fc888ba695 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Sat, 29 Sep 2018 12:16:37 +0200 Subject: expr: osf: add ttl option support Signed-off-by: Fernando Fernandez Mancera Signed-off-by: Pablo Neira Ayuso --- include/libnftnl/expr.h | 1 + include/linux/netfilter/nf_tables.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index 6285c6f..6988c62 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -281,6 +281,7 @@ enum { enum { NFTNL_EXPR_OSF_DREG = NFTNL_EXPR_BASE, + NFTNL_EXPR_OSF_TTL, }; enum { diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index f2ee638..40c71c9 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -936,11 +936,13 @@ enum nft_socket_keys { /** * enum nft_osf_attributes - nf_tables osf expression netlink attributes * - * @NFTA_OSF_DREG: OS to match + * @NFTA_OSF_DREG: destination register (NLA_U32) + * @NFTA_OSF_TTL: Value of the TTL osf option (NLA_U8) */ enum nft_osf_attributes { NFTA_OSF_UNSPEC, NFTA_OSF_DREG, + NFTA_OSF_TTL, __NFTA_OSF_MAX, }; #define NFTA_OSF_MAX (__NFTA_OSF_MAX - 1) -- cgit v1.2.3