]> git.proxmox.com Git - mirror_iproute2.git/commit
ip/tunnel: Minor cleanups
authorSerhey Popovych <serhe.popovych@gmail.com>
Thu, 8 Feb 2018 10:57:02 +0000 (12:57 +0200)
committerDavid Ahern <dsahern@gmail.com>
Fri, 9 Feb 2018 16:05:18 +0000 (08:05 -0800)
commit5bd937957db08e66ac6129b5dc42c8740bd1da64
tree5e43be13ffbec49132ca6243a7175c2bbc1e34e4
parent8e7548462e286f9823a23405ff84244ab07a3e6e
ip/tunnel: Minor cleanups

Few minor changes to reduce diffs between ip and ipv6 tunnel code:

  1) reduce intendation by one level when adding attributes in gre and
     gre6; reorder addattr*() calls to simplify diff

  2) reorder local variables definition; change their type (e.g. for
     IFLA_LINK) to match ones returned by rta_getattr_*()

  3) move "mode" parameter parsing in link_iptnl.c to the similar
     position as in link_ip6tnl.c

  4) handle "tc" as shortcut for "tclass"/"tos" in link_iptnl.c

  5) add whitespace where required

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/link_gre.c
ip/link_gre6.c
ip/link_ip6tnl.c
ip/link_iptnl.c
ip/link_vti.c
ip/link_vti6.c