On Wed, 2006-05-03 at 12:27 +0100, Alexander Clouter wrote:
Hi,
Bad of me to reply to my own posting....
Alexander Clouter <ac56@soas.ac.uk> [20060503 12:23:53 +0100]:
[snipped]
I would recommend *only* when its a bind address that setsockopt(MULTICAST_BLAH) is called...
to clarify
binding wise you need to call ADD_MEMBERSHIP but TTL has no net effect. For sending the data to a multicast address ADD_MEMBERSHIP should not be used whilst the TTL functionality is pretty much critical to the whole thing.
I'm using IP_MULTICAST_TTL instead of IP_TTL when the destination is a multicast address, but you are right that I should not call IP_ADD_MEMBERSHIP if syslog-ng is only sending to multicast. I'm going to change that. Thanks for the comments. -- Bazsi