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 <kaber@trash.net>
This commit is contained in:
parent
3a99df7074
commit
0532555202
|
|
@ -274,6 +274,8 @@ int iplink_parse(int argc, char **argv, struct iplink_req *req,
|
||||||
if (strcmp(*argv, "dev") == 0) {
|
if (strcmp(*argv, "dev") == 0) {
|
||||||
NEXT_ARG();
|
NEXT_ARG();
|
||||||
}
|
}
|
||||||
|
if (matches(*argv, "help") == 0)
|
||||||
|
usage();
|
||||||
if (*dev)
|
if (*dev)
|
||||||
duparg2("dev", *argv);
|
duparg2("dev", *argv);
|
||||||
*dev = *argv;
|
*dev = *argv;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue