Re: TTL ignored when sending Multicast UDP Datagram to IPv4 address via IPv6 socket

2007-06-25 Thread Edward Wang
Hi Don, The fix has been integrated. See attachment. It should be in next build of JDK 7. -Edward Don Coleman wrote: -Djava.net.preferIPv4Stack=true works fine for IPv4, but my application needs to send both IPv4 and IPv6. I'd be interested to see Edward Wang's patch for this issue. On 6/1

Re: TTL ignored when sending Multicast UDP Datagram to IPv4 address via IPv6 socket

2007-06-03 Thread Edward Wang
Hi Don, Yes, in recent kernels (2.6.*), both IPv4 and IPv6 socket options can be set for an IPv6 socket. And seems setting both of them is the only way to make things like TTL/HOP_LIMIT works properly as expected. Only that I still need to do more testing for different kernel versions. Hope

Re: TTL ignored when sending Multicast UDP Datagram to IPv4 address via IPv6 socket

2007-06-01 Thread Don Coleman
-Djava.net.preferIPv4Stack=true works fine for IPv4, but my application needs to send both IPv4 and IPv6. I'd be interested to see Edward Wang's patch for this issue. On 6/1/07, Alan Bateman <[EMAIL PROTECTED]> wrote: Don Coleman wrote: > I'm have a problem setting TTL when sending Multicast pa

Re: TTL ignored when sending Multicast UDP Datagram to IPv4 address via IPv6 socket

2007-06-01 Thread Alan Bateman
Don Coleman wrote: I'm have a problem setting TTL when sending Multicast packets to an IPv4 address over an IPv6 socket. Setting the TTL in Java has no effect when sending to an IPv4 address. It is always 1. This is only a problem on Linux, it works fine on OS X, Solaris and Windows. This pr

TTL ignored when sending Multicast UDP Datagram to IPv4 address via IPv6 socket

2007-05-31 Thread Don Coleman
I'm have a problem setting TTL when sending Multicast packets to an IPv4 address over an IPv6 socket. Setting the TTL in Java has no effect when sending to an IPv4 address. It is always 1. This is only a problem on Linux, it works fine on OS X, Solaris and Windows. This problem exists with JDK5