From: Patrick McHardy Date: Tue, 7 Oct 2008 15:16:08 +0000 (+0200) Subject: Support "ip link add help" for rtnl_link API X-Git-Tag: v2.6.27~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0532555;p=thirdparty%2Fiproute2.git Support "ip link add help" for rtnl_link API For some reason "ip link add help" is currently not supported when using the new rtnl_link API. Fix that. Signed-off-by: Patrick McHardy --- diff --git a/ip/iplink.c b/ip/iplink.c index f4cbeb3ea..81122aec9 100644 --- a/ip/iplink.c +++ b/ip/iplink.c @@ -274,6 +274,8 @@ int iplink_parse(int argc, char **argv, struct iplink_req *req, if (strcmp(*argv, "dev") == 0) { NEXT_ARG(); } + if (matches(*argv, "help") == 0) + usage(); if (*dev) duparg2("dev", *argv); *dev = *argv;