How can I send packets to 255.255.255.255 from the command line?

Andrey V. Elsukov bu7cher at yandex.ru
Fri Aug 19 14:48:57 UTC 2016


On 18.08.16 22:29, Ryan Stone wrote:
> I want to test a change to broadcast packet handling and I want to confirm
> that 255.255.255.255 is still handled correctly. Are there any command-line
> tools in FreeBSD that can send to the broadcast address?  ping
> 255.255.255.255 does not work correctly, unfortunately.

There is one in src/tools/regression/netinet/ipbroadcast
You can build it with command
# make WARNS=0

-- 
WBR, Andrey V. Elsukov

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


More information about the freebsd-net mailing list