[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-net
Subject:    Re: kern/159603: commit references a PR
From:       dfilter () freebsd ! org (dfilter service)
Date:       2011-08-28 0:20:12
Message-ID: 201108280020.p7S0KCu0031666 () freefall ! freebsd ! org
[Download RAW message or body]

The following reply was made to PR kern/159603; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/159603: commit references a PR
Date: Sun, 28 Aug 2011 00:14:53 +0000 (UTC)

 Author: qingli
 Date: Sun Aug 28 00:14:40 2011
 New Revision: 225223
 URL: http://svn.freebsd.org/changeset/base/225223
 
 Log:
   When an interface address route is removed from the system, another
   route with the same prefix is searched for as a replacement. The
   current code did not bypass routes that have non-operational
   interfaces. This patch fixes that bug and will find a replacement
   route with an active interface.
   
   PR:		kern/159603
   Submitted by:	pluknet, ambrisko at ambrisko dot com
   Reviewed by:	discussed on net@
   Approved by:	re (bz)
   MFC after:	3 days
 
 Modified:
   head/sys/netinet/in.c
 
 Modified: head/sys/netinet/in.c
 ==============================================================================
 --- head/sys/netinet/in.c	Sat Aug 27 22:10:53 2011	(r225222)
 +++ head/sys/netinet/in.c	Sun Aug 28 00:14:40 2011	(r225223)
 @@ -1163,7 +1163,8 @@ in_scrubprefix(struct in_ifaddr *target,
  			p.s_addr &= ia->ia_sockmask.sin_addr.s_addr;
  		}
  
 -		if (prefix.s_addr != p.s_addr)
 +		if ((prefix.s_addr != p.s_addr) ||
 +		    !(ia->ia_ifp->if_flags & IFF_UP))
  			continue;
  
  		/*
 _______________________________________________
 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"
 
_______________________________________________
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"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic