Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327796
b: refs/heads/master
c: 1c15b67
h: refs/heads/master
v: v3
  • Loading branch information
Michael Wang authored and Pablo Neira Ayuso committed Sep 3, 2012
1 parent 0e71ae1 commit 4577826
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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: 2a6decfd8a5fae0422c98a22aa6bc30224b8a3ec
refs/heads/master: 1c15b677097fc133cc23108d98e0f0846e94cd48
4 changes: 2 additions & 2 deletions trunk/net/netfilter/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ int nf_hook_slow(u_int8_t pf, unsigned int hook, struct sk_buff *skb,
if (ret == 0)
ret = -EPERM;
} else if ((verdict & NF_VERDICT_MASK) == NF_QUEUE) {
int err = nf_queue(skb, &elem->list, pf, hook, indev, outdev,
okfn, verdict >> NF_VERDICT_QBITS);
int err = nf_queue(skb, elem, pf, hook, indev, outdev, okfn,
verdict >> NF_VERDICT_QBITS);
if (err < 0) {
if (err == -ECANCELED)
goto next_hook;
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/netfilter/nf_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ extern unsigned int nf_iterate(struct list_head *head,

/* nf_queue.c */
extern int nf_queue(struct sk_buff *skb,
struct list_head *elem,
struct nf_hook_ops *elem,
u_int8_t pf, unsigned int hook,
struct net_device *indev,
struct net_device *outdev,
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/netfilter/nf_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static void nf_queue_entry_release_refs(struct nf_queue_entry *entry)
* through nf_reinject().
*/
static int __nf_queue(struct sk_buff *skb,
struct list_head *elem,
struct nf_hook_ops *elem,
u_int8_t pf, unsigned int hook,
struct net_device *indev,
struct net_device *outdev,
Expand Down Expand Up @@ -155,7 +155,7 @@ static int __nf_queue(struct sk_buff *skb,

*entry = (struct nf_queue_entry) {
.skb = skb,
.elem = list_entry(elem, struct nf_hook_ops, list),
.elem = elem,
.pf = pf,
.hook = hook,
.indev = indev,
Expand Down Expand Up @@ -225,7 +225,7 @@ static void nf_bridge_adjust_segmented_data(struct sk_buff *skb)
#endif

int nf_queue(struct sk_buff *skb,
struct list_head *elem,
struct nf_hook_ops *elem,
u_int8_t pf, unsigned int hook,
struct net_device *indev,
struct net_device *outdev,
Expand Down Expand Up @@ -323,7 +323,7 @@ void nf_reinject(struct nf_queue_entry *entry, unsigned int verdict)
local_bh_enable();
break;
case NF_QUEUE:
err = __nf_queue(skb, &elem->list, entry->pf, entry->hook,
err = __nf_queue(skb, elem, entry->pf, entry->hook,
entry->indev, entry->outdev, entry->okfn,
verdict >> NF_VERDICT_QBITS);
if (err < 0) {
Expand Down

0 comments on commit 4577826

Please sign in to comment.