Skip to content

Commit

Permalink
feat(socket): add support set SO_BROADCAST
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
zhaojh329 committed Dec 16, 2024
1 parent 1105d0c commit e26f7db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,7 @@ static struct sock_opt optsets[] = {
{"reuseaddr", SOL_SOCKET, SO_REUSEADDR, sockopt_set_boolean},
{"reuseport", SOL_SOCKET, SO_REUSEPORT, sockopt_set_boolean},
{"keepalive", SOL_SOCKET, SO_KEEPALIVE, sockopt_set_boolean},
{"broadcast", SOL_SOCKET, SO_BROADCAST, sockopt_set_boolean},
{"sndbuf", SOL_SOCKET, SO_SNDBUF, sockopt_set_int},
{"rcvbuf", SOL_SOCKET, SO_RCVBUF, sockopt_set_int},
{"mark", SOL_SOCKET, SO_MARK, sockopt_set_int},
Expand Down

0 comments on commit e26f7db

Please sign in to comment.