diff options
author | Eric Leblond <eric@inl.fr> | 2006-11-29 02:35:33 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:31:29 -0800 |
commit | 829e17a1a602572ffa3beefe582dc103ee9fb9c7 (patch) | |
tree | 6de236849437c207088f1ef744e77fdfe35b2d8a /net/netfilter | |
parent | 7b621c1ea64a54f77b8a841b16dc4c9fee3ecf48 (diff) | |
download | kernel_goldelico_gta04-829e17a1a602572ffa3beefe582dc103ee9fb9c7.zip kernel_goldelico_gta04-829e17a1a602572ffa3beefe582dc103ee9fb9c7.tar.gz kernel_goldelico_gta04-829e17a1a602572ffa3beefe582dc103ee9fb9c7.tar.bz2 |
[NETFILTER]: nfnetlink_queue: allow changing queue length through netlink
Signed-off-by: Eric Leblond <eric@inl.fr>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index 82e4454..a88a017 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c @@ -947,6 +947,14 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb, ntohl(params->copy_range)); } + if (nfqa[NFQA_CFG_QUEUE_MAXLEN-1]) { + __be32 *queue_maxlen; + queue_maxlen = NFA_DATA(nfqa[NFQA_CFG_QUEUE_MAXLEN-1]); + spin_lock_bh(&queue->lock); + queue->queue_maxlen = ntohl(*queue_maxlen); + spin_unlock_bh(&queue->lock); + } + out_put: instance_put(queue); return ret; |