man: fix doc, ip link does support "change"
Subsystems (2)
PATCH 1/1 man: fix doc, ip link does support "change"
From: Jiayun Chen <[email protected]>
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 <[email protected]>
--- ip/iplink.c | 2 +- man/man8/ip-link.8.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
ip/iplink.c +1 -1
@@ -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");
man/man8/ip-link.8.in +1 -1
@@ -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 }
Signature · 1 line
2.34.1
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Hello:
This patch was applied to iproute2/iproute2.git (main) by Stephen Hemminger <[email protected]>:
Quoted 10 lines · On Tue, 16 Apr 2024 09:32:15 +0800 you wrote:
From: Jiayun Chen <[email protected]>
ip link does support "change".
if (
matches(*argv, "set")== 0 ||matches(*argv, "change") == 0) return iplink_modify(RTM_NEWLINK, 0, argc-1, argv+1);[...]
Here is the summary with links:
- man: fix doc, ip link does support "change"
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=11543416d9bc
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html