summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2025-07-09 19:05:13 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2025-07-25 18:40:16 +0200
commit17a20e09f086f2c574ac87f3cf6e14c4377f65f6 (patch)
tree718c19bff842cfcbf2ef90df467e0ae63562a477 /net/unix/af_unix.c
parent7792c1e03054440c60d4bce0c06a31c134601997 (diff)
netfilter: nft_set: remove one argument from lookup and update functions
Return the extension pointer instead of passing it as a function argument to be filled in by the callee. As-is, whenever false is returned, the extension pointer is not used. For all set types, when true is returned, the extension pointer was set to the matching element. Only exception: nft_set_bitmap doesn't support extensions. Return a pointer to a static const empty element extension container. return false -> return NULL return true -> return the elements' extension pointer. This saves one function argument. Signed-off-by: Florian Westphal <fw@strlen.de> Reviewed-by: Stefano Brivio <sbrivio@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions