]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_queue: return error number to caller
authorFlorian Westphal <fw@strlen.de>
Tue, 18 Jan 2011 14:27:28 +0000 (15:27 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 18 Jan 2011 14:27:28 +0000 (15:27 +0100)
commit0a0dd5892ac655dc115d1de3409555f5abe2038e
tree463d73647de2a43138bdd8259c259137a3bb3e3b
parent3ce759bc1ad47de6de019c06939810785aaf689e
netfilter: nfnetlink_queue: return error number to caller

instead of returning -1 on error, return an error number to allow the
caller to handle some errors differently.

ECANCELED is used to indicate that the hook is going away and should be
ignored.

A followup patch will introduce more 'ignore this hook' conditions,
(depending on queue settings) and will move kfree_skb responsibility
to the caller.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/core.c
net/netfilter/nf_queue.c
net/netfilter/nfnetlink_queue.c