241 * Level number for (get/set)sockopt() to apply to socket itself.
242 */
243#define SOL_SOCKET 0xfff /* options for socket level */
244
245
246#define AF_UNSPEC 0
247#define AF_INET 2
248#if LWIP_IPV6
249#define AF_INET6 10
250#else /* LWIP_IPV6 */
251#define AF_INET6 AF_UNSPEC
252#endif /* LWIP_IPV6 */
253#define PF_INET AF_INET
254#define PF_INET6 AF_INET6
255#define PF_UNSPEC AF_UNSPEC
256
257#define IPPROTO_IP 0
258#define IPPROTO_ICMP 1
259#define IPPROTO_TCP 6
260#define IPPROTO_UDP 17
261#if LWIP_IPV6
262#define IPPROTO_IPV6 41
263#define IPPROTO_ICMPV6 58
264#endif /* LWIP_IPV6 */
265#define IPPROTO_UDPLITE 136
266#define IPPROTO_RAW 255
267
268/* Flags we can use with send and recv. */
269#define MSG_PEEK 0x01 /* Peeks at an incoming message */
270#define MSG_WAITALL 0x02 /* Unimplemented: Requests that the function block until the full amount of data requested can be returned */
271#define MSG_OOB 0x04 /* Unimplemented: Requests out-of-band data. The significance and semantics of out-of-band data are protocol-specific */
272#define MSG_DONTWAIT 0x08 /* Nonblocking i/o for this operation only */
273#define MSG_MORE 0x10 /* Sender will send more */
274#define MSG_NOSIGNAL 0x20 /* Uninmplemented: Requests not to send the SIGPIPE signal if an attempt to send is made on a stream-oriented socket that is no longer connected. */