]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/link_vti.c
vti/vti6: Unify vti_print_help()
authorSerhey Popovych <serhe.popovych@gmail.com>
Fri, 9 Feb 2018 06:58:40 +0000 (08:58 +0200)
committerDavid Ahern <dsahern@gmail.com>
Fri, 9 Feb 2018 16:04:05 +0000 (08:04 -0800)
commit4aa552eac11470f427ee93e78a42ff17565b30fb
treee26e137a1c3bdd96da66d4b6402f6f292f3b7538
parent432e5f97bed10f1f97959d59c94ee142e19ed7e7
vti/vti6: Unify vti_print_help()

Reduce diff lines between vti and vti6 help printing code.

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

Get rid of custom print_usage() and usage() functions and use
vti_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_vti.c
ip/link_vti6.c