]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_set_pipapo: Separate partial and complete overlap cases on insertion
authorStefano Brivio <sbrivio@redhat.com>
Sun, 22 Mar 2020 02:21:59 +0000 (03:21 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Mar 2020 18:59:08 +0000 (19:59 +0100)
commit319baec694adfb06b673e3c9fb2fce3f71baad04
tree7a0bd0a3a6b8914f32974ffe4210f664e755e238
parent615b10dcac0bd59e372fcdce0986598fadb71b1a
netfilter: nft_set_pipapo: Separate partial and complete overlap cases on insertion

...and return -ENOTEMPTY to the front-end on collision, -EEXIST if
an identical element already exists. Together with the previous patch,
element collision will now be returned to the user as -EEXIST.

Reported-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_pipapo.c