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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to