diff options
author | Joe Perches <joe@perches.com> | 2010-01-11 05:55:36 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-01-11 05:55:36 -0500 |
commit | 7f635d0d1bf84ad7a0032cbce9d902b9384c48b7 (patch) | |
tree | 515e8f502f0f24c4c5e64c276848c0a884e8c8d9 | |
parent | a79e7ac4ad77e1833e8f69e99113204d03018255 (diff) |
netfilter: xt_osf: change %pi4 to %pI4
commit 8a27f7c90ffcb791eed7574922b51fb60b08fc89
changed the output style of %pi4 to use fixed
width leading zero IP addresses "001.002.003.004".
It's useful when printing multiple lines of
addresses, but was a change in output style for
some existing uses.
Using %pI4 restores the previous output style.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | net/netfilter/xt_osf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_osf.c b/net/netfilter/xt_osf.c index 4d1a41bbd5d7..4169e200588d 100644 --- a/net/netfilter/xt_osf.c +++ b/net/netfilter/xt_osf.c | |||
@@ -334,7 +334,7 @@ static bool xt_osf_match_packet(const struct sk_buff *skb, | |||
334 | if (info->flags & XT_OSF_LOG) | 334 | if (info->flags & XT_OSF_LOG) |
335 | nf_log_packet(p->family, p->hooknum, skb, | 335 | nf_log_packet(p->family, p->hooknum, skb, |
336 | p->in, p->out, NULL, | 336 | p->in, p->out, NULL, |
337 | "%s [%s:%s] : %pi4:%d -> %pi4:%d hops=%d\n", | 337 | "%s [%s:%s] : %pI4:%d -> %pI4:%d hops=%d\n", |
338 | f->genre, f->version, f->subtype, | 338 | f->genre, f->version, f->subtype, |
339 | &ip->saddr, ntohs(tcp->source), | 339 | &ip->saddr, ntohs(tcp->source), |
340 | &ip->daddr, ntohs(tcp->dest), | 340 | &ip->daddr, ntohs(tcp->dest), |
@@ -349,7 +349,7 @@ static bool xt_osf_match_packet(const struct sk_buff *skb, | |||
349 | 349 | ||
350 | if (!fcount && (info->flags & XT_OSF_LOG)) | 350 | if (!fcount && (info->flags & XT_OSF_LOG)) |
351 | nf_log_packet(p->family, p->hooknum, skb, p->in, p->out, NULL, | 351 | nf_log_packet(p->family, p->hooknum, skb, p->in, p->out, NULL, |
352 | "Remote OS is not known: %pi4:%u -> %pi4:%u\n", | 352 | "Remote OS is not known: %pI4:%u -> %pI4:%u\n", |
353 | &ip->saddr, ntohs(tcp->source), | 353 | &ip->saddr, ntohs(tcp->source), |
354 | &ip->daddr, ntohs(tcp->dest)); | 354 | &ip->daddr, ntohs(tcp->dest)); |
355 | 355 | ||