[Bug 112257] Re: TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket
It looks like this is a Java bug rather than a kernel problem. TTL works correctly in the early-access version of Java 7. $ java -version java version "1.7.0-ea" Java(TM) SE Runtime Environment (build 1.7.0-ea-b22) Java HotSpot(TM) Client VM (build 11.0-b08, mixed mode, sharing) For pre-Java7 applications that only need IPv4 try -Djava.net.preferIPv4Stack=true For applications that needs IPv4 and IPv6, iptables can be used to force the TTL iptables -t mangle --append POSTROUTING --out-interface eth+ --protocol udp -j TTL --ttl-set 64 -- TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket https://bugs.launchpad.net/bugs/112257 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 112257] Re: TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket
Tested on Solaris 10 and TTL is set correctly. Revised test code - multicast_test.c and MulticastTest.java Test results from Linux, Solaris and OS X in sample_results.txt Solaris sets IPv4 Multicast TTL when IPv6 Multicast Hops is set http://cvs.opensolaris.org/source/xref/kernel-sockets/ksocket/usr/src/uts/common/inet/udp/udp.c#3785 Linux sets them separately http://lxr.linux.no/source/net/ipv6/ipv6_sockglue.c#L531 v6 http://lxr.linux.no/source/net/ipv4/ip_sockglue.c#L549 v4 ** Attachment added: "sample_results.txt" http://launchpadlibrarian.net/7907919/sample_results.txt -- TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket https://bugs.launchpad.net/bugs/112257 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 112257] Re: TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket
** Attachment added: "MulticastTest.java" http://launchpadlibrarian.net/7907920/MulticastTest.java -- TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket https://bugs.launchpad.net/bugs/112257 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 112257] Re: TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket
** Attachment added: "multicast_test.c" http://launchpadlibrarian.net/7907922/multicast_test.c -- TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket https://bugs.launchpad.net/bugs/112257 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 112257] Re: TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket
** Attachment added: "MulticastTest.java" http://librarian.launchpad.net/7548756/MulticastTest.java -- TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket https://bugs.launchpad.net/bugs/112257 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 112257] Re: TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket
** Attachment added: "multicast_test.c" http://librarian.launchpad.net/7548758/multicast_test.c -- TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket https://bugs.launchpad.net/bugs/112257 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 112257] TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket
Public bug reported: When sending a UDP datagram to an IPv4 address over an IPv6 socket on Linux, the TTL setting is ignored. This is based on a problem seen in Java that only happens with Linux but Windows XP or Mac OS X. The C code is based on Java's socket implementation in PlainDatagramSocketImpl.c and net_util.c. The attached Java and C code demonstrates the problem. Run the sample code and examine the packets with a tool like tcpdump or ethereal. $ sudo tcpdump -i eth0 -vvv dst port 9891 On OS X and Windows, the TTL will be set to 17. On Linux, the TTL is 1. This problem does not appear to be Ubunut specific it can be duplicated on Ubuntu 7.04 / 2.6.20-15-generic Ubuntu 7.04 / 2.6.20-15-generic x86_64 Debian Sid / 2.6.20-1-686 SuSE Enterprise 9 SP 3 / 2.6.5-7.244-bigsmp ** Affects: Ubuntu Importance: Undecided Status: Unconfirmed -- TTL ignored when sending UDP Datagram to IPv4 address via IPv6 socket https://bugs.launchpad.net/bugs/112257 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 962447] Re: failure to resume from suspend
kernel 3.2.0-21.34 also has the issue -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962447 Title: failure to resume from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/962447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 962447] Re: failure to resume from suspend
Unity2d environment is the only time this happens. Unity3d with compiz appears to resume just fine. ** Tags removed: bot-stop-nagging -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962447 Title: failure to resume from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/962447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 962447] Re: failure to resume from suspend
Thank you Joseph for the quick and accurate response. May I ask what the next step is? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962447 Title: failure to resume from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/962447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 962447] Re: failure to resume from suspend
** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962447 Title: failure to resume from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/962447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 962447] Re: failure to resume from suspend
Tested with 3.2.0-20.33 and issue still exists. ** Tags removed: kernel-request-3.2.0-20.33 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962447 Title: failure to resume from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/962447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 962447] Re: failure to resume from suspend
** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962447 Title: failure to resume from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/962447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 962447] Re: failure to resume from suspend
** Tags removed: kernel-request-3.2.0-20.33 ** Tags added: bot-stop-nagging -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/962447 Title: failure to resume from suspend To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/962447/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs