ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ticonsts.h
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  * PROJECT:     ReactOS TCP/IP protocol driver
00004  * FILE:        include/ticonsts.h
00005  * PURPOSE:     TCP/IP protocol driver constants
00006  */
00007 
00008 #pragma once
00009 
00010 /* NDIS version this driver supports */
00011 #define NDIS_VERSION_MAJOR 4
00012 #define NDIS_VERSION_MINOR 0
00013 
00014 #ifdef _NTTEST_
00015 /* Name of devices */
00016 #define DD_TCP_DEVICE_NAME      L"\\Device\\NTTcp"
00017 #define DD_UDP_DEVICE_NAME      L"\\Device\\NTUdp"
00018 #define DD_IP_DEVICE_NAME       L"\\Device\\NTIp"
00019 #define DD_RAWIP_DEVICE_NAME    L"\\Device\\NTRawIp"
00020 
00021 /* For NDIS protocol registration */
00022 #define IP_DEVICE_NAME          L"\\Device\\NTIp"
00023 #else
00024 #define DD_TCP_DEVICE_NAME      L"\\Device\\Tcp"
00025 #define DD_UDP_DEVICE_NAME      L"\\Device\\Udp"
00026 #define DD_IP_DEVICE_NAME       L"\\Device\\Ip"
00027 #define DD_RAWIP_DEVICE_NAME    L"\\Device\\RawIp"
00028 
00029 /* For NDIS protocol registration */
00030 /* The DDK says you have to register with the name that's regstered with SCM, e.g. tcpip */
00031 #define IP_DEVICE_NAME          L"\\Device\\Ip"
00032 #define TCPIP_PROTOCOL_NAME     L"Tcpip"
00033 #endif /* _NTTEST_ */
00034 
00035 /* TCP/UDP/RawIP IOCTL code definitions */
00036 
00037 #define FSCTL_TCP_BASE     FILE_DEVICE_NETWORK
00038 
00039 #define _TCP_CTL_CODE(Function, Method, Access) \
00040     CTL_CODE(FSCTL_TCP_BASE, Function, Method, Access)
00041 
00042 #define IOCTL_TCP_QUERY_INFORMATION_EX \
00043     _TCP_CTL_CODE(0, METHOD_NEITHER, FILE_ANY_ACCESS)
00044 
00045 #define IOCTL_TCP_SET_INFORMATION_EX \
00046     _TCP_CTL_CODE(1, METHOD_BUFFERED, FILE_WRITE_ACCESS)
00047 
00048 #define IOCTL_SET_IP_ADDRESS \
00049     _TCP_CTL_CODE(14, METHOD_BUFFERED, FILE_WRITE_ACCESS)
00050 
00051 #define IOCTL_DELETE_IP_ADDRESS \
00052     _TCP_CTL_CODE(16, METHOD_BUFFERED, FILE_WRITE_ACCESS)
00053 
00054 /* Unique error values for log entries */
00055 #define TI_ERROR_DRIVERENTRY 0
00056 
00057 /* Internal status codes */
00058 #define IP_SUCCESS                 0x0000 /* Successful */
00059 #define IP_NO_RESOURCES            0x0001 /* Not enough free resources */
00060 #define IP_NO_ROUTE_TO_DESTINATION 0x0002 /* No route to destination */
00061 
00062 /* EOF */

Generated on Fri May 25 2012 04:26:13 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.