Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236562
b: refs/heads/master
c: ca36181
h: refs/heads/master
v: v3
  • Loading branch information
Changli Gao authored and Patrick McHardy committed Nov 12, 2010
1 parent 3dda7e5 commit b8d0bbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5fc9e7a666e5964b60e05903b90aa832354b68c
refs/heads/master: ca36181050a523f6c0af3ef7cb509bbbc4ede276
6 changes: 4 additions & 2 deletions trunk/net/netfilter/xt_NFQUEUE.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,12 @@ nfqueue_tg_v1(struct sk_buff *skb, const struct xt_action_param *par)

if (info->queues_total > 1) {
if (par->family == NFPROTO_IPV4)
queue = hash_v4(skb) % info->queues_total + queue;
queue = (((u64) hash_v4(skb) * info->queues_total) >>
32) + queue;
#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE)
else if (par->family == NFPROTO_IPV6)
queue = hash_v6(skb) % info->queues_total + queue;
queue = (((u64) hash_v6(skb) * info->queues_total) >>
32) + queue;
#endif
}
return NF_QUEUE_NR(queue);
Expand Down

0 comments on commit b8d0bbb

Please sign in to comment.