[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20111219.160601.947997861151242331.davem@davemloft.net>
Date: Mon, 19 Dec 2011 16:06:01 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: sbohrer@...advisors.com
Cc: netdev@...r.kernel.org
Subject: Re: TTL=0 multicast packets leaving host
From: Shawn Bohrer <sbohrer@...advisors.com>
Date: Wed, 7 Dec 2011 15:31:58 -0600
> This looks like a bug to me. I'd assume that if the local computer
> has not joined the multicast group and I send a TTL=0 packet that it
> would simply get discarded.
This behavior is intentional, several multicast applications set TTL
to zero and expect it to reach the local network.
See the comment elsewhere in route.c:
/* Special hack: user can direct multicasts
and limited broadcast via necessary interface
without fiddling with IP_MULTICAST_IF or IP_PKTINFO.
This hack is not just for fun, it allows
vic,vat and friends to work.
They bind socket to loopback, set ttl to zero
and expect that it will work.
From the viewpoint of routing cache they are broken,
because we are not allowed to build multicast path
with loopback source addr (look, routing cache
cannot know, that ttl is zero, so that packet
will not leave this host and route is valid).
Luckily, this hack is good workaround.
*/
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists