* [PATCH iproute2] ip tunnel: fix 'ip -oneline tunnel show' for some GRE tunnels
@ 2014-10-04 15:00 Dmitry Popov
0 siblings, 0 replies; only message in thread
From: Dmitry Popov @ 2014-10-04 15:00 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: netdev
'ip -oneline tunnel show' was not "oneline" for GRE tunnels with iseq:
# ip tun add gre_test remote 1.1.1.1 local 2.2.2.2 mode gre iseq oseq
# ip -oneline tun show gre_test | wc -l
2
The problem existed because of a typo: '\n' was printed when it shouldn't be.
Fixed.
Signed-off-by: Dmitry Popov <ixaphire@qrator.net>
---
ip/ip6tunnel.c | 2 +-
ip/iptunnel.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ip/ip6tunnel.c b/ip/ip6tunnel.c
index 4b73ec6..b83534e 100644
--- a/ip/ip6tunnel.c
+++ b/ip/ip6tunnel.c
@@ -117,7 +117,7 @@ static void print_tunnel(struct ip6_tnl_parm2 *p)
}
if (p->i_flags&GRE_SEQ)
- printf("%s Drop packets out of sequence.\n", _SL_);
+ printf("%s Drop packets out of sequence.", _SL_);
if (p->i_flags&GRE_CSUM)
printf("%s Checksum in received packet is required.", _SL_);
if (p->o_flags&GRE_SEQ)
diff --git a/ip/iptunnel.c b/ip/iptunnel.c
index 0844a4f..caf8a28 100644
--- a/ip/iptunnel.c
+++ b/ip/iptunnel.c
@@ -409,7 +409,7 @@ static void print_tunnel(struct ip_tunnel_parm *p)
}
if (p->i_flags&GRE_SEQ)
- printf("%s Drop packets out of sequence.\n", _SL_);
+ printf("%s Drop packets out of sequence.", _SL_);
if (p->i_flags&GRE_CSUM)
printf("%s Checksum in received packet is required.", _SL_);
if (p->o_flags&GRE_SEQ)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-04 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-04 15:00 [PATCH iproute2] ip tunnel: fix 'ip -oneline tunnel show' for some GRE tunnels Dmitry Popov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox