]> git.ipfire.org Git - thirdparty/nftables.git/commit
ct: add maximum helper length value
authorPatrick McHardy <kaber@trash.net>
Tue, 2 Jun 2015 10:53:10 +0000 (12:53 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 2 Jun 2015 10:56:53 +0000 (12:56 +0200)
commit19719a352683fcf32bfb5e3e61a03fc61c1d94cc
treec828d7f68ec0b2130dcfda09d483d31adfb18370
parent5764e58f0e0b3ace1b1c1cdb5c149a6c679ff6d6
ct: add maximum helper length value

The current kernel restricts ct helper names to 16 bytes length. Specify
this limit in the ct expression table to catch oversized strings in userspace.
Since older versions of nft didn't support larger values, this does not
negatively affect interaction with old kernel versions.

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/ct.c