diff options
author | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2018-08-07 11:44:06 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-07 17:23:46 +0200 |
commit | cfa7f3aa145755a2abc6e6751e11bac95978cfe4 (patch) | |
tree | 05c7dec425e10c9428152e79f6fd009a00ed784c /include/linux | |
parent | b8fc1f0e39d2ffc18c5db1b129b10f2bfe77e708 (diff) |
src: use NFT_OSF_MAXGENRELEN instead of IFNAMSIZ in osf.c
As no "genre" in pf.os exceed 16 bytes of length, we reduce
NFT_OSF_MAXGENRELEN parameter to 16 bytes and use it instead of IFNAMSIZ.
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netfilter/nf_tables.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index 63b90546..fe656525 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -8,6 +8,7 @@ #define NFT_SET_MAXNAMELEN NFT_NAME_MAXLEN #define NFT_OBJ_MAXNAMELEN NFT_NAME_MAXLEN #define NFT_USERDATA_MAXLEN 256 +#define NFT_OSF_MAXGENRELEN 16 /** * enum nft_registers - nf_tables registers |