]> git.ipfire.org Git - thirdparty/iproute2.git/commit
gre/gre6: Unify gre_print_help()
authorSerhey Popovych <serhe.popovych@gmail.com>
Fri, 9 Feb 2018 06:58:41 +0000 (08:58 +0200)
committerDavid Ahern <dsahern@gmail.com>
Fri, 9 Feb 2018 16:04:19 +0000 (08:04 -0800)
commitae91205c4d2a70cccfba1ebf649684f654e88a7d
tree24d6e5258f644f3e8e8d311ea1d55e20d61449f7
parent4aa552eac11470f427ee93e78a42ff17565b30fb
gre/gre6: Unify gre_print_help()

Reduce diff lines between gre and gre6 help printing code.

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

Get rid of custom print_usage() and usage() functions and use
gre_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_gre.c
ip/link_gre6.c