]> git.proxmox.com Git - mirror_iproute2.git/commit
ip/tunnel: Use tnl_parse_key() to parse tunnel key
authorSerhey Popovych <serhe.popovych@gmail.com>
Mon, 18 Dec 2017 17:48:03 +0000 (19:48 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 19 Dec 2017 16:14:01 +0000 (08:14 -0800)
commit1f44b93744f11f2a8249e3c13751ab7debebaa5f
tree2a8892dcb2d0265229e940525760df91fee924b1
parentdac9ff35ea302124f440c87c68b3dd896712e92a
ip/tunnel: Use tnl_parse_key() to parse tunnel key

It is added with
commit a7ed1520ee96 ("ip/tunnel: introduce tnl_parse_key()")
to avoid code duplication in ip6?tunnel.c.

Reuse it for gre/gre6 and vti/vti6 tunnel rtnl
configuration interface with the same purpose
it is used in tunnel ioctl interface in ip6?tunnel.c.

While there change type of key variables from
unsigned integer to __be32 to reflect nature of the
value they store and place error message in
tnl_parse_key() on a single line to make single
call to fprintf().

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