Commit 05325552 authored by Patrick McHardy's avatar Patrick McHardy Committed by Stephen Hemminger

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: default avatarPatrick McHardy <kaber@trash.net>
parent 3a99df70
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment