We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f1f7cf commit aa6a03eCopy full SHA for aa6a03e
net/netfilter/xt_osf.c
@@ -330,7 +330,8 @@ static bool xt_osf_match_packet(const struct sk_buff *skb,
330
fcount++;
331
332
if (info->flags & XT_OSF_LOG)
333
- nf_log_packet(p->hooknum, 0, skb, p->in, p->out, NULL,
+ nf_log_packet(p->family, p->hooknum, skb,
334
+ p->in, p->out, NULL,
335
"%s [%s:%s] : %pi4:%d -> %pi4:%d hops=%d\n",
336
f->genre, f->version, f->subtype,
337
&ip->saddr, ntohs(tcp->source),
@@ -345,7 +346,7 @@ static bool xt_osf_match_packet(const struct sk_buff *skb,
345
346
rcu_read_unlock();
347
348
if (!fcount && (info->flags & XT_OSF_LOG))
349
+ nf_log_packet(p->family, p->hooknum, skb, p->in, p->out, NULL,
350
"Remote OS is not known: %pi4:%u -> %pi4:%u\n",
351
352
&ip->daddr, ntohs(tcp->dest));
0 commit comments