Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/ifconfig Display the IPv6 address flags autoconf and te...



details:   https://anonhg.NetBSD.org/src/rev/b50252d9eff5
branches:  trunk
changeset: 335681:b50252d9eff5
user:      roy <roy%NetBSD.org@localhost>
date:      Tue Jan 20 22:13:19 2015 +0000

description:
Display the IPv6 address flags autoconf and temporary

diffstat:

 sbin/ifconfig/af_inet6.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r a0855ac35c2d -r b50252d9eff5 sbin/ifconfig/af_inet6.c
--- a/sbin/ifconfig/af_inet6.c  Tue Jan 20 21:51:05 2015 +0000
+++ b/sbin/ifconfig/af_inet6.c  Tue Jan 20 22:13:19 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: af_inet6.c,v 1.30 2014/10/20 14:50:09 roy Exp $        */
+/*     $NetBSD: af_inet6.c,v 1.31 2015/01/20 22:13:19 roy Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: af_inet6.c,v 1.30 2014/10/20 14:50:09 roy Exp $");
+__RCSID("$NetBSD: af_inet6.c,v 1.31 2015/01/20 22:13:19 roy Exp $");
 #endif /* not lint */
 
 #include <sys/param.h> 
@@ -330,6 +330,10 @@
                        printf(" detached");
                if (ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_DEPRECATED)
                        printf(" deprecated");
+               if (ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_AUTOCONF)
+                       printf(" autoconf");
+               if (ifr6.ifr_ifru.ifru_flags6 & IN6_IFF_TEMPORARY)
+                       printf(" temporary");
        }
 
        if (scopeid)



Home | Main Index | Thread Index | Old Index