Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Feb 2012 01:50:11 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-rc@FreeBSD.org
Subject:   Re: kern/161899: commit references a PR
Message-ID:  <201202160150.q1G1oBMi081411@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/161899; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/161899: commit references a PR
Date: Thu, 16 Feb 2012 01:41:48 +0000 (UTC)

 Author: hrs
 Date: Thu Feb 16 01:41:34 2012
 New Revision: 231803
 URL: http://svn.freebsd.org/changeset/base/231803
 
 Log:
   Add static routes to ::ffff:0.0.0.0/96 and ::0.0.0.0/96 unconditionally when
   the kernel supports PF_INET6.
   
   PR:	kern/161899
 
 Modified:
   stable/8/etc/rc.d/network_ipv6
   stable/8/etc/rc.d/routing
 
 Modified: stable/8/etc/rc.d/network_ipv6
 ==============================================================================
 --- stable/8/etc/rc.d/network_ipv6	Thu Feb 16 01:32:23 2012	(r231802)
 +++ stable/8/etc/rc.d/network_ipv6	Thu Feb 16 01:41:34 2012	(r231803)
 @@ -41,10 +41,6 @@ start_cmd="network_ipv6_start"
  
  network_ipv6_start()
  {
 -	# disallow "internal" addresses to appear on the wire
 -	route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject
 -	route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject
 -
  	case ${ipv6_network_interfaces} in
  	[Aa][Uu][Tt][Oo])
  		# Get a list of network interfaces
 
 Modified: stable/8/etc/rc.d/routing
 ==============================================================================
 --- stable/8/etc/rc.d/routing	Thu Feb 16 01:32:23 2012	(r231802)
 +++ stable/8/etc/rc.d/routing	Thu Feb 16 01:41:34 2012	(r231803)
 @@ -57,6 +57,14 @@ static_start()
  			atmconfig natm add ${route_args}
  		done
  	fi
 +
 +	# Disallow "internal" addresses to appear on the wire if inet6
 +	# is enabled.
 +	if afexists inet6; then
 +		# disallow "internal" addresses to appear on the wire
 +		route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject
 +		route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject
 +	fi
  }
  
  _ropts_initdone=
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202160150.q1G1oBMi081411>