Date: Sun, 21 Aug 2011 00:48:15 +0100 From: "Steven Hartland" <killing@multiplay.co.uk> To: "Garrett Wollman" <wollman@csail.mit.edu>, <java@freebsd.org>, <network@freebsd.org> Subject: Re: Why doesn't UDP work for ICSI Netalyzr in INET6 kernels? Message-ID: <35F287D35661432CB3821B7A4FEBBB0D@multiplay.co.uk> References: <20048.15888.402674.836232@khavrinen.csail.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Do you have the following ipv6 udp patch in your kernel? --- sys/netinet6/udp6_usrreq.c.orig 2010-12-21 17:09:25.000000000 +0000 +++ sys/netinet6/udp6_usrreq.c 2011-06-25 15:44:22.050847587 +0000 @@ -1044,18 +1044,6 @@ if (hasv4addr) { struct pr_usrreqs *pru; - if (!IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_laddr) && - !IN6_IS_ADDR_V4MAPPED(&inp->in6p_laddr)) { - /* - * When remote addr is IPv4-mapped address, - * local addr should not be an IPv6 address; - * since you cannot determine how to map IPv6 - * source address to IPv4. - */ - error = EINVAL; - goto out; - } - /* * XXXRW: We release UDP-layer locks before calling * udp_send() in order to avoid recursion. However, @@ -1079,7 +1067,7 @@ mac_inpcb_create_mbuf(inp, m); #endif error = udp6_output(inp, m, addr, control, td); -out: + INP_WUNLOCK(inp); INP_INFO_WUNLOCK(&V_udbinfo); return (error); If not apply it, rebuild and reinstall the kernel and it will likely fix the issue your seeing. Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35F287D35661432CB3821B7A4FEBBB0D>