ipaddress: support printing the stable-privacy flag
Subsystems (2)
PATCH 1/1 ipaddress: support printing the stable-privacy flag
Currently, this flag is only shown as "flags 800".
Signed-off-by Lorenzo Colitti <[email protected]>
--- ip/ipaddress.c | 4 ++++ 1 file changed, 4 insertions(+)
ip/ipaddress.c +4 -0
@@ -1166,6 +1166,10 @@ int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n, ifa_flags &= ~IFA_F_DADFAILED ;fprintf (fp,"dadfailed " ); } +if (ifa_flags &IFA_F_STABLE_PRIVACY ) { + ifa_flags &= ~IFA_F_STABLE_PRIVACY ; +fprintf (fp,"stable-privacy " ); + }if (ifa_flags)fprintf (fp,"flags %02x " , ifa_flags);if (rta_tb[IFA_LABEL ])
Signature · 1 line
2.13.2.725.g09c95d1e9-goog