]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/link_ip6tnl.c
iptnl/ip6tnl: Unify iptunnel_print_help()
authorSerhey Popovych <serhe.popovych@gmail.com>
Fri, 9 Feb 2018 06:58:42 +0000 (08:58 +0200)
committerDavid Ahern <dsahern@gmail.com>
Fri, 9 Feb 2018 16:04:23 +0000 (08:04 -0800)
commit06e3975f4ca9ad3693af860651e83a5cef7f896d
tree4dade27021643189f183479266411b14641c2118
parentae91205c4d2a70cccfba1ebf649684f654e88a7d
iptnl/ip6tnl: Unify iptunnel_print_help()

Reduce diff lines between iptnl and ip6tnl help printing code.

Use @struct link_util ->id field to print correct link help: all callers
now pass this data structure to iptunnel_print_help().

Get rid of custom print_usage() and usage() functions and use
iptunnel_print_help() directly, return from function on "... type
<help|garbage>" instead of exit(2).

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