221#define SO_BINDTODEVICE 0x100b /* bind to device */
222
223/*
224 * Structure used for manipulating linger option.
225 */
226struct linger {
227int l_onoff; /* option on/off */
228int l_linger; /* linger time in seconds */
229 };
230
231/*
232 * Level number for (get/set)sockopt() to apply to socket itself.
233 */
234#define SOL_SOCKET 0xfff /* options for socket level */
235
236
237#define AF_UNSPEC 0
238#define AF_INET 2
239#if LWIP_IPV6
240#define AF_INET6 10
241#else /* LWIP_IPV6 */
242#define AF_INET6 AF_UNSPEC
243#endif /* LWIP_IPV6 */
244#define PF_INET AF_INET
245#define PF_INET6 AF_INET6
246#define PF_UNSPEC AF_UNSPEC
247
248#define IPPROTO_IP 0
249#define IPPROTO_ICMP 1
250#define IPPROTO_TCP 6
251#define IPPROTO_UDP 17
252#if LWIP_IPV6
253#define IPPROTO_IPV6 41
254#define IPPROTO_ICMPV6 58
255#endif /* LWIP_IPV6 */
256#define IPPROTO_UDPLITE 136
257#define IPPROTO_RAW 255
258
259/* Flags we can use with send and recv. */
260#define MSG_PEEK 0x01 /* Peeks at an incoming message */
261#define MSG_WAITALL 0x02 /* Unimplemented: Requests that the function block until the full amount of data requested can be returned */
262#define MSG_OOB 0x04 /* Unimplemented: Requests out-of-band data. The significance and semantics of out-of-band data are protocol-specific */
263#define MSG_DONTWAIT 0x08 /* Nonblocking i/o for this operation only */
264#define MSG_MORE 0x10 /* Sender will send more */
265#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. */
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.