lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <25bdd4763e23c73aca71f17d43753311de0c268a.1670525490.git.dxu@dxuuu.xyz>
Date:   Thu,  8 Dec 2022 11:53:06 -0700
From:   Daniel Xu <dxu@...uu.xyz>
To:     netdev@...r.kernel.org
Cc:     dsahern@...nel.org, stephen@...workplumber.org
Subject: [PATCH iproute2] ip-link: man: Document existence of netns argument in add command

ip-link-add supports netns argument just like ip-link-set. This commit
documents the existence of netns in help text and man page.

Signed-off-by: Daniel Xu <dxu@...uu.xyz>
---
 ip/iplink.c           | 1 +
 man/man8/ip-link.8.in | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/ip/iplink.c b/ip/iplink.c
index 301a535e..adb9524c 100644
--- a/ip/iplink.c
+++ b/ip/iplink.c
@@ -68,6 +68,7 @@ void iplink_usage(void)
 			"		    [ mtu MTU ] [index IDX ]\n"
 			"		    [ numtxqueues QUEUE_COUNT ]\n"
 			"		    [ numrxqueues QUEUE_COUNT ]\n"
+			"		    [ netns { PID | NAME } ]\n"
 			"		    type TYPE [ ARGS ]\n"
 			"\n"
 			"	ip link delete { DEVICE | dev DEVICE | group DEVGROUP } type TYPE [ ARGS ]\n"
diff --git a/man/man8/ip-link.8.in b/man/man8/ip-link.8.in
index 88ad9d7b..6c72e122 100644
--- a/man/man8/ip-link.8.in
+++ b/man/man8/ip-link.8.in
@@ -43,6 +43,8 @@ ip-link \- network device configuration
 .br
 .RB "[ " gro_max_size
 .IR BYTES " ]"
+.RB "[ " netns " {"
+.IR PID " | " NETNSNAME " } ]"
 .br
 .BI type " TYPE"
 .RI "[ " ARGS " ]"
@@ -437,6 +439,10 @@ on this device.
 specifies the desired index of the new virtual device. The link
 creation fails, if the index is busy.
 
+.TP
+.BI netns " { PID | NAME } "
+specifies the desired network namespace to create interface in.
+
 .TP
 VLAN Type Support
 For a link of type
-- 
2.38.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ