From: Nicolas Dichtel Date: Fri, 28 Mar 2025 09:58:26 +0000 (+0100) Subject: ip: display the 'netns-immutable' property X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4e55167d004c01abbdac164bd01d1a5177bfa0d;p=thirdparty%2Fiproute2.git ip: display the 'netns-immutable' property The user needs to specify '-details' to have it. Signed-off-by: Nicolas Dichtel Signed-off-by: David Ahern --- diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 70b3d513..91d78874 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -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]);