2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TDI test driver
4 * FILE: include/tditest.h
5 * PURPOSE: Testing TDI drivers
17 #include <ddk/ntddk.h>
18 #include <net/tdikrnl.h>
19 #include <net/tdiinfo.h>
25 /* Name of UDP device */
26 #define UDP_DEVICE_NAME L"\\Device\\Udp"
27 //#define UDP_DEVICE_NAME L"\\Device\\NTUdp"
32 /* DWORD network to host byte order conversion for i386 */
34 ((((dw) & 0xFF000000L) >> 24) | \
35 (((dw) & 0x00FF0000L) >> 8) | \
36 (((dw) & 0x0000FF00L) << 8) | \
37 (((dw) & 0x000000FFL) << 24))
39 /* DWORD host to network byte order conversion for i386 */
41 ((((dw) & 0xFF000000L) >> 24) | \
42 (((dw) & 0x00FF0000L) >> 8) | \
43 (((dw) & 0x0000FF00L) << 8) | \
44 (((dw) & 0x000000FFL) << 24))
46 /* WORD network to host order conversion for i386 */
48 ((((w) & 0xFF00) >> 8) | \
49 (((w) & 0x00FF) << 8))
51 /* WORD host to network byte order conversion for i386 */
53 ((((w) & 0xFF00) >> 8) | \
54 (((w) & 0x00FF) << 8))
58 /* DWORD network to host byte order conversion for other architectures */
62 /* DWORD host to network byte order conversion for other architectures */
66 /* WORD network to host order conversion for other architectures */
70 /* WORD host to network byte order conversion for other architectures */
77 typedef struct IPSNMP_INFO
{
84 ULONG InUnknownProtos
;
88 ULONG RoutingDiscards
;
101 } IPSNMP_INFO
, *PIPSNMP_INFO
;
103 typedef struct IPADDR_ENTRY
{
111 } IPADDR_ENTRY
, *PIPADDR_ENTRY
;
114 #define TL_INSTANCE 0
116 #define IP_MIB_STATS_ID 0x1
117 #define IP_MIB_ADDRTABLE_ENTRY_ID 0x102
121 #define IOCTL_TCP_QUERY_INFORMATION_EX \
122 CTL_CODE(FILE_DEVICE_NETWORK, 0, METHOD_NEITHER, FILE_ANY_ACCESS)
123 #define IOCTL_TCP_SET_INFORMATION_EX \
124 CTL_CODE(FILE_DEVICE_NETWORK, 1, METHOD_BUFFERED, FILE_WRITE_ACCESS)
127 #define TEST_PORT 2000
129 #endif /*__TDITEST_H */