Skip to content

Commit

Permalink
netfilter: xt_osf: fix nf_log_packet() arguments
Browse files Browse the repository at this point in the history
The first argument is the address family, the second one the hook
number.

Signed-off-by: Patrick McHardy <[email protected]>
  • Loading branch information
kaber committed Jul 16, 2009
1 parent 3f1f7cf commit aa6a03e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/netfilter/xt_osf.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ static bool xt_osf_match_packet(const struct sk_buff *skb,
fcount++;

if (info->flags & XT_OSF_LOG)
nf_log_packet(p->hooknum, 0, skb, p->in, p->out, NULL,
nf_log_packet(p->family, p->hooknum, skb,
p->in, p->out, NULL,
"%s [%s:%s] : %pi4:%d -> %pi4:%d hops=%d\n",
f->genre, f->version, f->subtype,
&ip->saddr, ntohs(tcp->source),
Expand All @@ -345,7 +346,7 @@ static bool xt_osf_match_packet(const struct sk_buff *skb,
rcu_read_unlock();

if (!fcount && (info->flags & XT_OSF_LOG))
nf_log_packet(p->hooknum, 0, skb, p->in, p->out, NULL,
nf_log_packet(p->family, p->hooknum, skb, p->in, p->out, NULL,
"Remote OS is not known: %pi4:%u -> %pi4:%u\n",
&ip->saddr, ntohs(tcp->source),
&ip->daddr, ntohs(tcp->dest));
Expand Down

0 comments on commit aa6a03e

Please sign in to comment.