On Mon, 19 Mar 2007, David Miller wrote:
From: Patrick McHardy <[EMAIL PROTECTED]>
Date: Mon, 19 Mar 2007 16:27:29 +0100

Mhh actually this looks intentional:

icmpv6_send and some other output functions do:
        int hlimit;
...
        if (hlimit < 0)
                hlimit = dst_metric(dst, RTAX_HOPLIMIT);
        if (hlimit < 0)
                hlimit = ipv6_get_hoplimit(dst->dev);

Yep, negative value has a specific meaning.

Which seems to indicate that the kernel-internal implementation has a need to store a negative TTL. Reporting it to the userspace as a negative doesn't seem right though?

--
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to