]> git.proxmox.com Git - mirror_iproute2.git/commit
vti/tunnel: Unify ikey/okey printing
authorSerhey Popovych <serhe.popovych@gmail.com>
Thu, 18 Jan 2018 14:04:34 +0000 (16:04 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 19 Jan 2018 00:34:41 +0000 (16:34 -0800)
commit34a8c54d6d6b4467e8c72b68691e7f22a3819e9a
treee6a76a7c2a13d5b95186ebd97ad67befe2c03e7c
parent2a8d0f6e9c3f4bbea83b76ab2aa8032be5ecf405
vti/tunnel: Unify ikey/okey printing

For vti6 tunnel we print [io]key in dotted-quad notation
(ipv4 address) while in vti we do that in hex format.

For vti tunnel we print [io]key only if value is not
zero while for vti6 we miss such check.

Unify vti and vti6 tunnel [io]key output.

While here enlarge s2 buffer to the same size as in rest
of tunnel support code (64 bytes) and check return from
inet_ntop().

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/link_vti.c
ip/link_vti6.c