[Midnightbsd-cvs] src [7527] trunk/usr.bin/netstat/route.c: add comment about why this is here
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Apr 14 08:08:56 EDT 2016
Revision: 7527
http://svnweb.midnightbsd.org/src/?rev=7527
Author: laffer1
Date: 2016-04-14 08:08:56 -0400 (Thu, 14 Apr 2016)
Log Message:
-----------
add comment about why this is here
Modified Paths:
--------------
trunk/usr.bin/netstat/route.c
Modified: trunk/usr.bin/netstat/route.c
===================================================================
--- trunk/usr.bin/netstat/route.c 2016-04-14 12:08:05 UTC (rev 7526)
+++ trunk/usr.bin/netstat/route.c 2016-04-14 12:08:56 UTC (rev 7527)
@@ -637,6 +637,12 @@
{
struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)sa;
+ /*
+ * The sa6->sin6_scope_id must be filled here because
+ * this sockaddr is extracted from kmem(4) directly
+ * and has KAME-specific embedded scope id in
+ * sa6->sin6_addr.s6_addr[2].
+ */
in6_fillscopeid(sa6);
if (flags & RTF_HOST)
More information about the Midnightbsd-cvs
mailing list