UDP broadcast

Andrey V. Elsukov bu7cher at yandex.ru
Wed Mar 6 13:03:00 UTC 2019


On 06.03.2019 15:53, Goran Mekić wrote:
> I checked, and 02:c9:63:0b:f4:00 is my router MAC, so I suppose the
> ff:ff:ff:ff:ff:ff should be what I see.
> 
> Of course, I tried to write a simple C program that does the same, but
> just using 255.255.255.255 as IP address gives the same result as nc. Do
> I need to use raw sockets, perheps?

Take a look at ip(4) manual page, read about SO_BROADCAST and IP_ONESBCAST.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20190306/299cf20e/attachment.sig>


More information about the freebsd-net mailing list