-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/04/2010 04:00, Earl Lapus wrote:
> Hi,
> 
> I just want to follow-up on this PR. Basically a working icmp6
> functionality that exists in 7.x and below broke in 8.x and CURRENT. I
> believe it's too late to have it fixed in 8.1. Maybe someone on the
> list that really knows the icmp6 code can have a look and verify if it
> is indeed a bug. If it is, hopefully it can be fixed on the next
> releases.
> 
> Cheers!
> Earl
> 
> 

I have reviewed this, edited the patch and determined this does fix the
problem.  The patch is attached and is also here: http://bit.ly/clqhxt


Regards,

- -- 

 +-+-+-+-+-+
 |j|h|e|l|l|
 +-+-+-+-+-+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (FreeBSD)

iQEcBAEBAgAGBQJMMoYaAAoJEJBXh4mJ2FR+dN0H/jGb6K6NiWJuRDjfg+hUBebm
AXfUvhrIyD0SKriaCVM9+ZymkfrgDBzRGWKZ61I7K3ZH/shhbII0NoS+VxFa9sqN
ZuWu/2zDbuyY36+OjRWMreNuXns3/LEm6VxHlo8JbGBAtk0d1BPM3MqrV5JPP0W1
pqy0db3NOqqNMADsK7GYdAfI65cgx+05XuhmKZ86fCsfnd7EkPcFVIGZrJxoT8HB
P7VhtfsxsEwakTMhbcgXltQggWKhGtMKzjscAe5n6ncd5Aq22JjKdPZHTcin8mLi
htqynqfmTcs88D0nG0/m6344HXPFOe16vCRJmJGBvR0wBbICEycBZZtsqgmbqiU=
=huMJ
-----END PGP SIGNATURE-----
Index: sys/netinet6/icmp6.c
===================================================================
--- sys/netinet6/icmp6.c	(revision 209700)
+++ sys/netinet6/icmp6.c	(working copy)
@@ -2162,8 +2162,21 @@
 	}
 
 	if ((srcp != NULL) && 
-	    (in6_addrscope(srcp) != in6_addrscope(&ip6->ip6_src)))
-		srcp = NULL;
+		(in6_addrscope(srcp) != in6_addrscope(&ip6->ip6_src))) {
+			struct sockaddr_in6 sin6;
+ 
+		bzero(&sin6, sizeof(sin6));
+		sin6.sin6_family = AF_INET6;
+		sin6.sin6_len = sizeof(sin6);
+		sin6.sin6_addr = origdst;
+
+		ia = (struct in6_ifaddr *)
+			ifa_ifwithaddr((struct sockaddr *)&sin6);
+
+		if (ia && (ia->ia6_flags & IN6_IFF_ANYCAST))
+			srcp = NULL;
+	}
+
 
 	if (srcp == NULL) {
 		int e;

Attachment: icmp6-ll-Fix-r209700.diff.sig
Description: Binary data

_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to