2ed72467286c3bfb545e46926db244c955f0f8e7
[reactos.git] / reactos / drivers / net / tcpip / include / ticonsts.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: include/ticonsts.h
5 * PURPOSE: TCP/IP protocol driver constants
6 */
7 #ifndef __TICONSTS_H
8 #define __TICONSTS_H
9
10 /* NDIS version this driver supports */
11 #define NDIS_VERSION_MAJOR 3
12 #define NDIS_VERSION_MINOR 0
13
14 #ifdef _NTTEST_
15 /* Name of devices */
16 #define DD_TCP_DEVICE_NAME L"\\Device\\NTTcp"
17 #define DD_UDP_DEVICE_NAME L"\\Device\\NTUdp"
18 #define DD_IP_DEVICE_NAME L"\\Device\\NTIp"
19 #define DD_RAWIP_DEVICE_NAME L"\\Device\\NTRawIp"
20
21 /* For NDIS protocol registration */
22 #define IP_DEVICE_NAME "\\Device\\NTIp"
23 #else
24 #define DD_TCP_DEVICE_NAME L"\\Device\\Tcp"
25 #define DD_UDP_DEVICE_NAME L"\\Device\\Udp"
26 #define DD_IP_DEVICE_NAME L"\\Device\\Ip"
27 #define DD_RAWIP_DEVICE_NAME L"\\Device\\RawIp"
28
29 /* For NDIS protocol registration */
30 #define IP_DEVICE_NAME "\\Device\\Ip"
31 #endif /* _NTTEST_ */
32
33 /* TCP/UDP/RawIP IOCTL code definitions */
34
35 #define FSCTL_TCP_BASE FILE_DEVICE_NETWORK
36
37 #define _TCP_CTL_CODE(Function, Method, Access) \
38 CTL_CODE(FSCTL_TCP_BASE, Function, Method, Access)
39
40 #define IOCTL_TCP_QUERY_INFORMATION_EX \
41 _TCP_CTL_CODE(0, METHOD_NEITHER, FILE_ANY_ACCESS)
42
43 #define IOCTL_TCP_SET_INFORMATION_EX \
44 _TCP_CTL_CODE(1, METHOD_BUFFERED, FILE_WRITE_ACCESS)
45
46 /* Unique error values for log entries */
47 #define TI_ERROR_DRIVERENTRY 0
48
49 /* Internal status codes */
50 #define IP_SUCCESS 0x0000 /* Successful */
51 #define IP_NO_RESOURCES 0x0001 /* Not enough free resources */
52 #define IP_NO_ROUTE_TO_DESTINATION 0x0002 /* No route to destination */
53
54 #endif /* __TICONSTS_H */
55
56 /* EOF */