Changeset 21456


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
Files:
1 added
4 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
  • trunk/src/ws2_32/socketodin.cpp

    r8828 r21456  
    11/* $Id: socketodin.cpp,v 1.3 2002-07-03 09:47:37 sandervl Exp $ */
    22
    3 #include <odin.h>
    4 #include <winsock2.h>
    5 #include <ws2tcpip.h>
    6 #include <debugtools.h>
    7 #include <misc.h>
     3#include "odin.h"
     4#include "winsock2.h"
     5#include "ws2defs.h"
     6#include "debugtools.h"
     7#include "misc.h"
    88
    99ODINDEBUGCHANNEL(WS2_32-SOCKETODIN)
  • trunk/src/wsock32/wsock32.cpp

    r21308 r21456  
    6262
    6363#include "wsock32.h"
    64 #include <ws2tcpip.h>
     64#include "ws2defs.h"
    6565#include "wsastruct.h"
    6666#include "asyncthread.h"
Note: See TracChangeset for help on using the changeset viewer.