Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9 KiB

  1. // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil -*- (for GNU Emacs)
  2. //
  3. // Copyright (c) 1985-2000 Microsoft Corporation
  4. //
  5. // This file is part of the Microsoft Research IPv6 Network Protocol Stack.
  6. // You should have received a copy of the Microsoft End-User License Agreement
  7. // for this software along with this release; see the file "license.txt".
  8. // If not, please see http://www.research.microsoft.com/msripv6/license.htm,
  9. // or write to Microsoft Research, One Microsoft Way, Redmond, WA 98052-6399.
  10. //
  11. // Abstract:
  12. //
  13. // TDI Query/SetInfo and Action definitions.
  14. //
  15. #include "tcpinfo.h"
  16. #define TL_INSTANCE 0
  17. #ifndef UDP_ONLY
  18. extern TCPStats TStats;
  19. typedef struct TCPConnContext {
  20. uint tcc_index;
  21. struct TCB *tcc_tcb;
  22. } TCPConnContext;
  23. #define TCB_STATE_DELTA 1
  24. #endif
  25. typedef struct UDPContext {
  26. uint uc_index;
  27. struct AddrObj *uc_ao;
  28. } UDPContext;
  29. extern UDPStats UStats;
  30. extern struct TDIEntityID *EntityList;
  31. extern uint EntityCount;
  32. extern TDI_STATUS TdiQueryInformation(PTDI_REQUEST Request, uint QueryType,
  33. PNDIS_BUFFER Buffer, uint *BufferSize,
  34. uint IsConn);
  35. extern TDI_STATUS TdiSetInformation(PTDI_REQUEST Request, uint SetType,
  36. PNDIS_BUFFER Buffer, uint BufferSize,
  37. uint IsConn);
  38. extern TDI_STATUS TdiAction(PTDI_REQUEST Request, uint ActionType,
  39. PNDIS_BUFFER Buffer, uint BufferSize);
  40. extern TDI_STATUS TdiQueryInformationEx(PTDI_REQUEST Request,
  41. struct TDIObjectID *ID,
  42. PNDIS_BUFFER Buffer, uint *Size,
  43. void *Context, uint ContextSize);
  44. extern TDI_STATUS TdiSetInformationEx(PTDI_REQUEST Request,
  45. struct TDIObjectID *ID, void *Buffer,
  46. uint Size);