From 023946284759fe80fbda396bf9d1968d3e0c9703 Mon Sep 17 00:00:00 2001 From: James Benton Date: Fri, 2 Jun 2017 11:50:43 +0100 Subject: [PATCH] nsysnet: Add defines for UDP broadcast. --- include/nsysnet/socket.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/nsysnet/socket.h b/include/nsysnet/socket.h index 6102143..16b38f8 100644 --- a/include/nsysnet/socket.h +++ b/include/nsysnet/socket.h @@ -13,7 +13,8 @@ */ #define SOL_SOCKET -1 -#define INADDR_ANY 0 +#define INADDR_ANY 0 +#define INADDR_BROADCAST 0xFFFFFFFF #define PF_UNSPEC 0 #define PF_INET 2 @@ -43,6 +44,7 @@ * SOL_SOCKET options */ #define SO_REUSEADDR 0x0004 // reuse address +#define SO_BROADCAST 0x0020 // broadcast #define SO_LINGER 0x0080 // linger (no effect?) #define SO_OOBINLINE 0x0100 // out-of-band data inline (no effect?) #define SO_SNDBUF 0x1001 // send buffer size