Ignore:
Timestamp:
Sep 23, 2010, 10:09:19 PM (15 years ago)
Author:
dmik
Message:

WinSock2: IPPROTO_IP option constants have different values than in Winsock1.1 (closes ticket:10).

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/ws2defs.h

    r21446 r21456  
    1 #ifndef _WS2TCPIPODIN_H_
    2 #define _WS2TCPIPODIN_H_
     1#ifndef _WS2DEFS_H_
     2#define _WS2DEFS_H_
    33
    44#define WS2_IPPROTO_OFFSET      100
     
    66#define WS2_IPPROTO_OPT(a)      (a+WS2_IPPROTO_OFFSET)
    77
     8/* These match the WinSock 2 constants */
    89#define IP_OPTIONS_WS2              1 /* set/get IP options */
    910#define IP_HDRINCL_WS2              2 /* header is included with data */
     
    1718#define IP_DONTFRAGMENT_WS2        14 /* don't fragment IP datagrams */
    1819
     20/* These match the OS/2 constants */
    1921#define IP_OPTIONS_OS2              1    /* buf/ip_opts; set/get IP options */
    2022#define IP_MULTICAST_IF_OS2         2    /* u_char; set/get IP multicast i/f  */
     
    3436#define SO_REUSEPORT_OS2            0x1000          /* allow local address & port reuse */
    3537
    36 #endif  /* _WS2TCPIP_H_ */
     38#endif  /* _WS2DEFS_H_ */
    3739
    3840
Note: See TracChangeset for help on using the changeset viewer.