aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netinet/broadcast.c
Commit message (Collapse)AuthorAgeFilesLines
* netinet/tests: Mark broadcast:INADDR_BROADCAST as needing network accessMark Johnston2025-06-241-1/+5
| | | | | | | The test fails in environments where there is no broadcast address configured, and this arises in some CI environments. Fixes: ad77d3177f3e ("tests/netinet: add few tests for sending a broadcast packet")
* tests/netinet: add few tests for sending a broadcast packetGleb Smirnoff2025-02-221-0/+192
1) Set SO_BROADCAST and send to INADDR_BROADCAST. 2) Set SO_BROADCAST, set IP_ONESBCAST and cycle through broadcast capable interfaces sending a datagram on each. 3) Set SO_BROADCAST and send to local broadcast address. For each test we bind a second socket to check whether the broadcast is actually received. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D49040