]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/iptunnel.c
ip tunnel: fix 'ip -oneline tunnel show' for some GRE tunnels
authorDmitry Popov <ixaphire@qrator.net>
Sat, 4 Oct 2014 15:00:25 +0000 (19:00 +0400)
committerStephen Hemminger <shemming@brocade.com>
Thu, 9 Oct 2014 15:24:01 +0000 (08:24 -0700)
commit4cb8d0307885b57389778c5d8ea6502d54926d44
tree886ec4e002ed62c254841513aa5d7b5f95724446
parent5d5cf1b43706721c1db68ba5d54098a81390bc11
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>
ip/ip6tunnel.c
ip/iptunnel.c