Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315021
b: refs/heads/master
c: 46ba5a2
h: refs/heads/master
i:
  315019: 428fb64
v: v3
  • Loading branch information
Krishna Kumar authored and Pablo Neira Ayuso committed Jul 4, 2012
1 parent e2f6a5a commit e8713bb
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 59560a38a379b6c9048620ee10711d3c0c5974b3
refs/heads/master: 46ba5a25f521e3c50d7bb81b1abb977769047456
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 @@ -95,5 +95,6 @@ enum nfqnl_attr_config {
/* Flags for NFQA_CFG_FLAGS */
#define NFQA_CFG_F_FAIL_OPEN (1 << 0)
#define NFQA_CFG_F_CONNTRACK (1 << 1)
#define NFQA_CFG_F_MAX (1 << 2)

#endif /* _NFNETLINK_QUEUE_H */
5 changes: 5 additions & 0 deletions trunk/net/netfilter/nfnetlink_queue_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,11 @@ nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
flags = ntohl(nla_get_be32(nfqa[NFQA_CFG_FLAGS]));
mask = ntohl(nla_get_be32(nfqa[NFQA_CFG_MASK]));

if (flags >= NFQA_CFG_F_MAX) {
ret = -EOPNOTSUPP;
goto err_out_unlock;
}

spin_lock_bh(&queue->lock);
queue->flags &= ~mask;
queue->flags |= flags & mask;
Expand Down

0 comments on commit e8713bb

Please sign in to comment.