ip tunnel: fix 'ip -oneline tunnel show' for some GRE tunnels

'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>
This commit is contained in:
Dmitry Popov 2014-10-04 19:00:25 +04:00 committed by Stephen Hemminger
parent 5d5cf1b437
commit 4cb8d03078
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ static void print_tunnel(struct ip6_tnl_parm2 *p)
} }
if (p->i_flags&GRE_SEQ) 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) if (p->i_flags&GRE_CSUM)
printf("%s Checksum in received packet is required.", _SL_); printf("%s Checksum in received packet is required.", _SL_);
if (p->o_flags&GRE_SEQ) if (p->o_flags&GRE_SEQ)

View File

@ -409,7 +409,7 @@ static void print_tunnel(struct ip_tunnel_parm *p)
} }
if (p->i_flags&GRE_SEQ) 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) if (p->i_flags&GRE_CSUM)
printf("%s Checksum in received packet is required.", _SL_); printf("%s Checksum in received packet is required.", _SL_);
if (p->o_flags&GRE_SEQ) if (p->o_flags&GRE_SEQ)