Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41935
b: refs/heads/master
c: 829e17a
h: refs/heads/master
i:
  41933: 3f517cb
  41931: 5f6a37b
  41927: 6c91f30
  41919: 0fe4f61
v: v3
  • Loading branch information
Eric Leblond authored and David S. Miller committed Dec 3, 2006
1 parent 51b9113 commit a7698ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b621c1ea64a54f77b8a841b16dc4c9fee3ecf48
refs/heads/master: 829e17a1a602572ffa3beefe582dc103ee9fb9c7
1 change: 1 addition & 0 deletions trunk/include/linux/netfilter/nfnetlink_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ enum nfqnl_attr_config {
NFQA_CFG_UNSPEC,
NFQA_CFG_CMD, /* nfqnl_msg_config_cmd */
NFQA_CFG_PARAMS, /* nfqnl_msg_config_params */
NFQA_CFG_QUEUE_MAXLEN, /* u_int32_t */
__NFQA_CFG_MAX
};
#define NFQA_CFG_MAX (__NFQA_CFG_MAX-1)
Expand Down
8 changes: 8 additions & 0 deletions trunk/net/netfilter/nfnetlink_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7698ca

Please sign in to comment.