2 * WSOCK32 specific functions
4 * Copyright (C) 1993,1994,1996,1997 John Brezak, Erik Bos, Alex Korobka.
8 #include "debugtools.h"
10 DEFAULT_DEBUG_CHANNEL(winsock);
12 /* TCP/IP action codes */
13 #define WSCNTL_TCPIP_QUERY_INFO 0x00000000
14 #define WSCNTL_TCPIP_SET_INFO 0x00000001
15 #define WSCNTL_TCPIP_ICMP_ECHO 0x00000002
16 #define WSCNTL_TCPIP_TEST 0x00000003
18 /***********************************************************************
21 DWORD WINAPI WsControl(DWORD protocoll,DWORD action,
22 LPVOID inbuf,LPDWORD inbuflen,
23 LPVOID outbuf,LPDWORD outbuflen)
27 case WSCNTL_TCPIP_ICMP_ECHO:
29 unsigned int addr = *(unsigned int*)inbuf;
31 int timeout= *(unsigned int*)(inbuf+4);
32 short x1 = *(unsigned short*)(inbuf+8);
33 short sendbufsize = *(unsigned short*)(inbuf+10);
34 char x2 = *(unsigned char*)(inbuf+12);
35 char ttl = *(unsigned char*)(inbuf+13);
36 char service = *(unsigned char*)(inbuf+14);
37 char type= *(unsigned char*)(inbuf+15); /* 0x2: don't fragment*/
40 FIXME("(ICMP_ECHO) to 0x%08x stub \n", addr);
44 FIXME("(%lx,%lx,%p,%p,%p,%p) stub\n",
45 protocoll,action,inbuf,inbuflen,outbuf,outbuflen);
50 /***********************************************************************
51 * WS_s_perror (WSOCK32.1108)
53 void WINAPI WS_s_perror(LPCSTR message)
55 FIXME("(%s): stub\n",message);