Commit aa6a03eb authored by Patrick McHardy's avatar Patrick McHardy

netfilter: xt_osf: fix nf_log_packet() arguments

The first argument is the address family, the second one the hook
number.
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 3f1f7cf0
...@@ -330,7 +330,8 @@ static bool xt_osf_match_packet(const struct sk_buff *skb, ...@@ -330,7 +330,8 @@ static bool xt_osf_match_packet(const struct sk_buff *skb,
fcount++; fcount++;
if (info->flags & XT_OSF_LOG) 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", "%s [%s:%s] : %pi4:%d -> %pi4:%d hops=%d\n",
f->genre, f->version, f->subtype, f->genre, f->version, f->subtype,
&ip->saddr, ntohs(tcp->source), &ip->saddr, ntohs(tcp->source),
...@@ -345,7 +346,7 @@ static bool xt_osf_match_packet(const struct sk_buff *skb, ...@@ -345,7 +346,7 @@ static bool xt_osf_match_packet(const struct sk_buff *skb,
rcu_read_unlock(); rcu_read_unlock();
if (!fcount && (info->flags & XT_OSF_LOG)) 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", "Remote OS is not known: %pi4:%u -> %pi4:%u\n",
&ip->saddr, ntohs(tcp->source), &ip->saddr, ntohs(tcp->source),
&ip->daddr, ntohs(tcp->dest)); &ip->daddr, ntohs(tcp->dest));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment