From owner-freebsd-net@FreeBSD.ORG Sat Jan 5 19:55:43 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4938E16A417; Sat, 5 Jan 2008 19:55:43 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from mail-defer01.adhost.com (mail-defer01.adhost.com [216.211.128.150]) by mx1.freebsd.org (Postfix) with ESMTP id 2E0D313C447; Sat, 5 Jan 2008 19:55:42 +0000 (UTC) (envelope-from mksmith@adhost.com) Received: from mail-in06.adhost.com (mail-in06.adhost.com [10.211.128.134]) by mail-defer01.adhost.com (Postfix) with ESMTP id 2F1FEED5C0; Sat, 5 Jan 2008 11:39:23 -0800 (PST) (envelope-from mksmith@adhost.com) Received: from ad-exh01.adhost.lan (unknown [216.211.143.69]) by mail-in06.adhost.com (Postfix) with ESMTP id D1AB7164858; Sat, 5 Jan 2008 11:39:22 -0800 (PST) (envelope-from mksmith@adhost.com) Received: from [192.168.100.101] ([10.142.3.67]) by ad-exh01.adhost.lan with Microsoft SMTPSVC(6.0.3790.3959); Sat, 5 Jan 2008 11:39:22 -0800 Message-Id: <8466A01A-B0B3-4163-BDD4-651F4AD1A08E@adhost.com> From: Michael Smith To: Michael Tuexen In-Reply-To: <0AA9B264-8935-41E9-AC26-102ED6EE253C@lurchi.franken.de> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Date: Sat, 5 Jan 2008 11:39:21 -0800 References: <20080104215626.GA88922@goku.pumpky.net> <0AA9B264-8935-41E9-AC26-102ED6EE253C@lurchi.franken.de> X-Mailer: Apple Mail (2.915) X-OriginalArrivalTime: 05 Jan 2008 19:39:22.0255 (UTC) FILETIME=[ABB4F9F0:01C84FD2] X-TM-AS-Product-Ver: SMEX-7.5.0.1243-5.0.1023-15648.002 X-TM-AS-Result: No--11.593000-5.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Cc: "Crist J. Clark" , net@freebsd.org Subject: Re: Text for IPv6 Scope X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2008 19:55:43 -0000 Hello All: I think we're crossing the streams here. The Site Local (FEC0::/10) has been deprecated. The fe80:: is Link Local and is very much alive. Regards, Mike On Jan 5, 2008, at 3:52 AM, Michael Tuexen wrote: > Dear all, > > aren't site-local IPv6 addresses depreceated (RFC 3879)? So shouldn't > the site-local stuff be removed? > > Best regards > Michael > > On Jan 4, 2008, at 10:56 PM, Crist J. Clark wrote: > >> Anyone up for adding text to the scopeid field in the ifconfig(8) >> output for IPv6 addresses? Other OSes do. To avoid too much >> disruption to the current format, the text is appended after the >> currently printed hexadecimal field. >> >> Example: >> >> fxp0: flags=8843 mtu 1500 >> options=8 >> inet6 fe80::290:27ff:fe13:2540%fxp0 prefixlen 64 scopeid >> 0x5(site-local) >> >> While we're at it, update the in6.h file to include all scopes >> in RFC4291. >> >> Look OK? Anyone up for applying these? >> >> Patches (diffs off of a not-too-current CURRENT): >> >> Index: sbin/ifconfig/af_inet6.c >> =================================================================== >> RCS file: /ncvs/freebsd/src/sbin/ifconfig/af_inet6.c,v >> retrieving revision 1.5 >> diff -u -r1.5 af_inet6.c >> --- sbin/ifconfig/af_inet6.c 3 Feb 2007 03:40:33 -0000 1.5 >> +++ sbin/ifconfig/af_inet6.c 4 Jan 2008 21:53:26 -0000 >> @@ -290,8 +290,31 @@ >> if ((flags6 & IN6_IFF_TEMPORARY) != 0) >> printf("temporary "); >> >> - if (scopeid) >> - printf("scopeid 0x%x ", scopeid); >> + if (scopeid) { >> + printf("scopeid 0x%x", scopeid); >> + switch (scopeid) { >> + case __IPV6_ADDR_SCOPE_INTFACELOCAL: >> + printf("(interface-local) "); >> + break; >> + case __IPV6_ADDR_SCOPE_LINKLOCAL: >> + printf("(link-local) "); >> + break; >> + case __IPV6_ADDR_SCOPE_ADMINLOCAL: >> + printf("(admin-local) "); >> + break; >> + case __IPV6_ADDR_SCOPE_SITELOCAL: >> + printf("(site-local) "); >> + break; >> + case __IPV6_ADDR_SCOPE_ORGLOCAL: >> + printf("(org-local) "); >> + break; >> + case __IPV6_ADDR_SCOPE_GLOBAL: >> + printf("(global) "); >> + break; >> + default: >> + putchar(' '); >> + } >> + } >> >> if (ip6lifetime && (lifetime.ia6t_preferred || >> lifetime.ia6t_expire)) { >> printf("pltime "); >> Index: sys/netinet6/in6.h >> =================================================================== >> RCS file: /ncvs/freebsd/src/sys/netinet6/in6.h,v >> retrieving revision 1.44 >> diff -u -r1.44 in6.h >> --- sys/netinet6/in6.h 28 Mar 2006 12:51:22 -0000 1.44 >> +++ sys/netinet6/in6.h 4 Jan 2008 21:44:36 -0000 >> @@ -271,6 +271,7 @@ >> #define IPV6_ADDR_SCOPE_NODELOCAL 0x01 >> #define IPV6_ADDR_SCOPE_INTFACELOCAL 0x01 >> #define IPV6_ADDR_SCOPE_LINKLOCAL 0x02 >> +#define IPV6_ADDR_SCOPE_ADMINLOCAL 0x04 >> #define IPV6_ADDR_SCOPE_SITELOCAL 0x05 >> #define IPV6_ADDR_SCOPE_ORGLOCAL 0x08 /* just used in this file */ >> #define IPV6_ADDR_SCOPE_GLOBAL 0x0e >> @@ -278,6 +279,7 @@ >> #define __IPV6_ADDR_SCOPE_NODELOCAL 0x01 >> #define __IPV6_ADDR_SCOPE_INTFACELOCAL 0x01 >> #define __IPV6_ADDR_SCOPE_LINKLOCAL 0x02 >> +#define __IPV6_ADDR_SCOPE_ADMINLOCAL 0x04 >> #define __IPV6_ADDR_SCOPE_SITELOCAL 0x05 >> #define __IPV6_ADDR_SCOPE_ORGLOCAL 0x08 /* just used in this file */ >> #define __IPV6_ADDR_SCOPE_GLOBAL 0x0e >> -- >> Crist J. Clark | cjclark@alum.mit.edu >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net- >> unsubscribe@freebsd.org" >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"