kern/123568: loopback interface error (don`t ask)

Antoine Brodin antoine at FreeBSD.org
Sat May 10 18:30:05 UTC 2008


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

From: Antoine Brodin <antoine at FreeBSD.org>
To: bug-followup at FreeBSD.org, samflanker at gmail.com
Cc:  
Subject: Re: kern/123568: loopback interface error (don`t ask)
Date: Sat, 10 May 2008 19:57:38 +0200

 This is a multi-part message in MIME format.
 
 --Multipart=_Sat__10_May_2008_19_57_38_+0200_Dn4qh2DByOhJ+Ial
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Could you try the attached patch?
 
 Cheers,
 
 Antoine
 
 --Multipart=_Sat__10_May_2008_19_57_38_+0200_Dn4qh2DByOhJ+Ial
 Content-Type: text/x-diff;
  name="loopback-ping.diff"
 Content-Disposition: attachment;
  filename="loopback-ping.diff"
 Content-Transfer-Encoding: 7bit
 
 Index: sys/netinet/ip_icmp.c
 ===================================================================
 RCS file: /home/ncvs/src/sys/netinet/ip_icmp.c,v
 retrieving revision 1.123
 diff -u -p -r1.123 ip_icmp.c
 --- sys/netinet/ip_icmp.c	9 May 2008 23:02:57 -0000	1.123
 +++ sys/netinet/ip_icmp.c	10 May 2008 17:51:27 -0000
 @@ -631,7 +631,6 @@ icmp_reflect(struct mbuf *m)
  
  	if (IN_MULTICAST(ntohl(ip->ip_src.s_addr)) ||
  	    IN_EXPERIMENTAL(ntohl(ip->ip_src.s_addr)) ||
 -            IN_LOOPBACK(ntohl(ip->ip_src.s_addr)) ||
  	    IN_ZERONET(ntohl(ip->ip_src.s_addr)) ) {
  		m_freem(m);	/* Bad return address */
  		icmpstat.icps_badaddr++;
 
 --Multipart=_Sat__10_May_2008_19_57_38_+0200_Dn4qh2DByOhJ+Ial--


More information about the freebsd-bugs mailing list