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)
commit0eb4b5ee33f2461d149408a247af8ae24756a6ca
tree7a0bd0a3a6b8914f32974ffe4210f664e755e238
parent8c2d45b2b65ca1f215244be1c600236e83f9815f
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