Skip to contentSkip to conversation

ip: display the 'netns-immutable' property

PATCH Applied Nicolas Dichtel 2 participants 3 messages Mar 28, 2025 – Apr 1, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip: display the 'netns-immutable' property

The user needs to specify '-details' to have it.

---
 ip/ipaddress.c | 5 +++++
 1 file changed, 5 insertions(+)
ip/ipaddress.c +5 -0
index 70b3d513e510..91d78874699b 100644
@@ -1182,6 +1182,11 @@ int print_linkinfo(struct nlmsghdr *n, void *arg)
 				   "max_mtu", "maxmtu %u ",
 				   rta_getattr_u32(tb[IFLA_MAX_MTU]));
 
+		if (tb[IFLA_NETNS_IMMUTABLE] &&
+		    rta_getattr_u8(tb[IFLA_NETNS_IMMUTABLE]))
+			print_bool(PRINT_ANY, "netns-immutable", "netns-immutable ",
+				   true);
+
 		if (tb[IFLA_LINKINFO])
 			print_linktype(fp, tb[IFLA_LINKINFO]);
 
Signature · 1 line
2.47.1
#1 lore raw
This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:

Hello:

This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:

Quoted 6 lines · On Fri, 28 Mar 2025 10:58:26 +0100 you wrote:

The user needs to specify '-details' to have it.

---
 ip/ipaddress.c | 5 +++++
 1 file changed, 5 insertions(+)

Here is the summary with links:
- [iproute2] ip: display the 'netns-immutable' property

    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=e4e55167d004

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#2 lore raw

Hello,

Le 01/04/2025 à 05:40, [email protected] a écrit :

Quoted 4 lines

Hello:

This patch was applied to iproute2/iproute2-next.git (main) by David Ahern <[email protected]>:

Thanks for applying this patch. Note that the attribute IFLA_NETNS_IMMUTABLE will be available in the 6.15 release.

Regards,
Nicolas

Quoted 14 lines · On Fri, 28 Mar 2025 10:58:26 +0100 you wrote:
Quoted 6 lines

The user needs to specify '-details' to have it.

---
 ip/ipaddress.c | 5 +++++
 1 file changed, 5 insertions(+)

Here is the summary with links:
- [iproute2] ip: display the 'netns-immutable' property

    https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git/commit/?id=e4e55167d004

You are awesome, thank you!