/[lwip]/lwip/src/include/lwip/sockets.h
ViewVC logotype

Diff of /lwip/src/include/lwip/sockets.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by likewise, Mon Jun 9 21:14:47 2003 UTC revision 1.10.2.1 by kieranm, Thu Aug 21 09:59:21 2003 UTC
# Line 70  struct sockaddr { Line 70  struct sockaddr {
70  #define  SO_USELOOPBACK  0x0040    /* bypass hardware when possible */  #define  SO_USELOOPBACK  0x0040    /* bypass hardware when possible */
71  #define  SO_LINGER  0x0080    /* linger on close if data present */  #define  SO_LINGER  0x0080    /* linger on close if data present */
72  #define  SO_OOBINLINE  0x0100    /* leave received OOB data in line */  #define  SO_OOBINLINE  0x0100    /* leave received OOB data in line */
73    #define  SO_REUSEPORT   0x0200          /* allow local address & port reuse */
74    
75  #define SO_DONTLINGER   (int)(~SO_LINGER)  #define SO_DONTLINGER   (int)(~SO_LINGER)
76    
# Line 118  struct linger { Line 119  struct linger {
119    
120    
121  /*  /*
122     * Options for level IPPROTO_IP
123     */
124    #define IP_TOS       1
125    #define IP_TTL       2
126    
127    
128    #define IPTOS_TOS_MASK          0x1E
129    #define IPTOS_TOS(tos)          ((tos) & IPTOS_TOS_MASK)
130    #define IPTOS_LOWDELAY          0x10
131    #define IPTOS_THROUGHPUT        0x08
132    #define IPTOS_RELIABILITY       0x04
133    #define IPTOS_LOWCOST           0x02
134    #define IPTOS_MINCOST           IPTOS_LOWCOST
135    
136    /*
137     * Definitions for IP precedence (also in ip_tos) (hopefully unused)
138     */
139    #define IPTOS_PREC_MASK                 0xe0
140    #define IPTOS_PREC(tos)                ((tos) & IPTOS_PREC_MASK)
141    #define IPTOS_PREC_NETCONTROL           0xe0
142    #define IPTOS_PREC_INTERNETCONTROL      0xc0
143    #define IPTOS_PREC_CRITIC_ECP           0xa0
144    #define IPTOS_PREC_FLASHOVERRIDE        0x80
145    #define IPTOS_PREC_FLASH                0x60
146    #define IPTOS_PREC_IMMEDIATE            0x40
147    #define IPTOS_PREC_PRIORITY             0x20
148    #define IPTOS_PREC_ROUTINE              0x00
149    
150    
151    /*
152   * Commands for ioctlsocket(),  taken from the BSD file fcntl.h.   * Commands for ioctlsocket(),  taken from the BSD file fcntl.h.
153   *   *
154   *   *

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.10.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26