24 Apr
2006
24 Apr
'06
3:19 a.m.
On 4/23/06, Jim Schuyler <sky@red7.com> wrote:
Did we ever establish that syslog-ng cannot do a broadcast? Sounds like it can not.
It should be trivial to enable, a one-line change to the source, when creating a UDP transmit socket you also call setsockopt with SO_BROADCAST. Maybe a few more lines if the approach taken is to create a new option for udp destinations such as 'so_broadcast(yes)', just like a file destination can have 'create_dirs(yes)' set. There's no harm done in setting SO_BROADCAST and then sending packets to a unicast address -- the option won't change anything for regular packets, it just gives the program permission to send to local broadcast addresses. Kevin