mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-08-15 04:35:14 +00:00
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) {
|
||||
NEXT_ARG();
|
||||
}
|
||||
if (matches(*argv, "help") == 0)
|
||||
usage();
|
||||
if (*dev)
|
||||
duparg2("dev", *argv);
|
||||
*dev = *argv;
|
||||
|
Loading…
Reference in New Issue
Block a user