aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-02-28 18:38:19 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-02-28 18:38:19 +0000
commit62585e33b090fe02dc2164c03f4ce44c66f284b2 (patch)
tree1853dfb2d984ef5eb64a6fe80a15acb89f2d7a47 /sbin/ifconfig
parent3fdf7be445d5014c5542daf7fd08a53bb6a49114 (diff)
Notes
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index aa220075c8ee..70437b84cb77 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -977,6 +977,7 @@ in6_status(s, info)
struct in6_addrlifetime lifetime;
time_t t = time(NULL);
int error;
+ u_int32_t scopeid;
memset(&null_sin, 0, sizeof(null_sin));
@@ -1013,6 +1014,7 @@ in6_status(s, info)
if (sin->sin6_scope_id == 0)
sin->sin6_scope_id = ntohs(index);
}
+ scopeid = sin->sin6_scope_id;
error = getnameinfo((struct sockaddr *)sin, sin->sin6_len, addr_buf,
sizeof(addr_buf), NULL, 0,
@@ -1071,6 +1073,8 @@ in6_status(s, info)
if (flags6 & IN6_IFF_DEPRECATED)
printf("deprecated ");
+ if (scopeid)
+ printf(" scopeid 0x%x", scopeid);
if (ip6lifetime && (lifetime.ia6t_preferred || lifetime.ia6t_expire)) {
printf("pltime ");