Changeset 21456 for trunk/include


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).

Location:
trunk/include
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winsock.h

    r21417 r21456  
    233233typedef WSADATA *LPWSADATA;
    234234
     235#ifndef __WINSOCK2API__
    235236#define IP_OPTIONS          1
    236237#define IP_MULTICAST_IF     2
     
    242243#define IP_TOS              8
    243244#define IP_DONTFRAGMENT     9
    244 
     245#endif
    245246
    246247#define IP_DEFAULT_MULTICAST_TTL   1
  • trunk/include/win/winsock2.h

    r21420 r21456  
    88#define __WINSOCK2API__
    99
    10 #include "winsock.h"
     10#include <winsock.h>
    1111
    1212/* proper 4-byte packing */
    13 #include "pshpack4.h"
     13#include <pshpack4.h>
    1414
    1515#define SO_GROUP_ID       0x2001
     
    372372extern INT WINAPI ioctlsocket(SOCKET s, LONG cmd, ULONG *argp);
    373373
    374 #include "poppack.h"
     374#include <poppack.h>
    375375
    376376#endif
  • 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.