in reply to Intercepting UDP broadcasts

Well that leaves your $socket->recv as the culprit. I'm suspecting your are not getting 1024 bytes due to fragmentation of the packet. This info (Section 5.8) may be of assistance ( long story short a minimum datagram could be as small as 28 bytes ( IP + UDP header )) due to fragmentation.

Replies are listed 'Best First'.
Re: Intercepting UDP broadcasts
by Abigail-II (Bishop) on Jan 30, 2004 at 18:28 UTC
    The length argument is just the maximum that will be read. It doesn't even work if you set it to 1.

    Abigail