UDP broadcast

Goran Mekić meka at tilda.center
Wed Mar 6 11:46:02 UTC 2019


On Wed, Mar 06, 2019 at 03:52:31PM +0700, Eugene Grosbein wrote:
> 06.03.2019 5:46, Goran Mekić wrote:
> As shown, nc generates UDP datagramm without (optional) checksum.
It's because of offloading. When I check it on router, checksum is fine.

> > So what am I doing wrong and how can I send UDP broadcast from either script of C code? Thank you!
>
> You should try ncat from security/nmap instead of nc.
Tried it with this:

printf "/info\0\0\0" | ncat -4u 255.255.255.255 10024

Absolutely same result. If I use mixer IP I get the response, so I know
what I'm sending is OK:

printf "/info\0\0\0" | ncat -4u 192.168.5.80 10024

It works with ncat and nc.

Regards,
meka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20190306/8b9609de/attachment.sig>


More information about the freebsd-net mailing list