This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: IP_MULTICAST_LOOP support
- From: Tom Tromey <tromey at redhat dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 28 Jan 2005 17:36:28 -0700
- Subject: Re: Patch: IP_MULTICAST_LOOP support
- References: <1106948589.5393.21.camel@to-dhcp28.toronto.redhat.com>
- Reply-to: tromey at redhat dot com
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> I don't really understand networking, but a little app I was
Anthony> trying to run a while ago complained about this missing
Anthony> support. This is my best guess at the right thing to do.
Anthony> Comments?
Anthony> + jbyteArray haddress = inetaddr->addr;
Anthony> + jbyte *bytes = elements (haddress);
Anthony> + int len = haddress->length;
It doesn't look like these are used...?
Anthony> + if (::setsockopt (native_fd, level, opname, (char *) &val,
Anthony> + val_len) != 0)
Anthony> + goto error;
According to this page:
http://www.linux.org/docs/ldp/howto/Multicast-HOWTO-6.html
... the 'val' argument must be an 'unsigned char'. So, I suspect the
above would fail on a big-endian machine. (Though I am not an expert
here by any stretch.)
I wonder whether any of the other code here suffers from this bug.
Tom