summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiayun Chen <jiayunchen@smail.nju.edu.cn>2024-04-16 09:32:15 +0800
committerStephen Hemminger <stephen@networkplumber.org>2024-04-20 20:07:28 -0700
commit11543416d9bcdf58c385c635295b074dcdb6bc5a (patch)
tree387b53ece022b65c94ec5c34dc612f4717613736
parentdedcf62f3956ab671813e9461d8780a0e8b1e6ac (diff)
man: fix doc, ip link does support "change"
ip link does support "change". if (matches(*argv, "set") == 0 || matches(*argv, "change") == 0) return iplink_modify(RTM_NEWLINK, 0, argc-1, argv+1); The attached patch documents this. Signed-off-by: Jiayun Chen <jiayunchen@smail.nju.edu.cn> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r--ip/iplink.c2
-rw-r--r--man/man8/ip-link.8.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/ip/iplink.c b/ip/iplink.c
index 95314af5..d5cb9a04 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -64,7 +64,7 @@ void iplink_usage(void)
"\n"
" ip link delete { DEVICE | dev DEVICE | group DEVGROUP } type TYPE [ ARGS ]\n"
"\n"
- " ip link set { DEVICE | dev DEVICE | group DEVGROUP }\n"
+ " ip link { set | change } { DEVICE | dev DEVICE | group DEVGROUP }\n"
" [ { up | down } ]\n"
" [ type TYPE ARGS ]\n");
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 31e2d7f0..1e4dfcdd 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -63,7 +63,7 @@ ip-link \- network device configuration
.RI "[ " ARGS " ]"
.ti -8
-.BR "ip link set " {
+.BR "ip link" " { " set " | " change " } " {
.IR DEVICE " | "
.BI "group " GROUP
}