]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_osf: use NFT_OSF_MAXGENRELEN instead of IFNAMSIZ
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Tue, 7 Aug 2018 09:43:02 +0000 (11:43 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 7 Aug 2018 15:14:04 +0000 (17:14 +0200)
commit6efa20e39bd1db9d6c9deb1f775fd80fb2519414
tree9a77ca62c92641ecde1207fbd462a3fb799bf222
parent155e912bd8789d37c0534e3e6746ea1e6f679b0f
netfilter: nft_osf: use NFT_OSF_MAXGENRELEN instead of IFNAMSIZ

As no "genre" on 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>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_osf.c