Leaked source code of windows server 2003
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.

63 lines
1.4 KiB

  1. //============================================================================
  2. // Copyright (c) 1995, Microsoft Corporation
  3. //
  4. // File: queue.h
  5. //
  6. // History:
  7. // Abolade Gbadegesin Aug-8-1995 Created.
  8. //
  9. // Contains structures and macros used for internal route structures.
  10. //============================================================================
  11. #ifndef _ROUTE_H_
  12. #define _ROUTE_H_
  13. typedef struct _PROTOCOL_SPECIFIC_DATA {
  14. DWORD PSD_Data[4];
  15. } PROTOCOL_SPECIFIC_DATA, *PPROTOCOL_SPECIFIC_DATA;
  16. typedef struct _IP_NETWORK {
  17. DWORD N_NetNumber;
  18. DWORD N_NetMask;
  19. } IP_NETWORK, *PIP_NETWORK;
  20. typedef struct _IP_SPECIFIC_DATA {
  21. DWORD FSD_Metric;
  22. DWORD FSD_Metric1;
  23. } IP_SPECIFIC_DATA, *PIP_SPECIFIC_DATA;
  24. typedef struct _RIP_IP_ROUTE {
  25. DWORD RR_RoutingProtocol;
  26. DWORD RR_InterfaceID;
  27. PROTOCOL_SPECIFIC_DATA RR_ProtocolSpecificData;
  28. IP_NETWORK RR_Network;
  29. IP_NETWORK RR_NextHopAddress;
  30. IP_SPECIFIC_DATA RR_FamilySpecificData;
  31. RTM_DEST_HANDLE hDest;
  32. } RIP_IP_ROUTE, *PRIP_IP_ROUTE;
  33. DWORD
  34. GetRouteInfo(
  35. IN RTM_ROUTE_HANDLE hRoute,
  36. IN PRTM_ROUTE_INFO pInRouteInfo, OPTIONAL
  37. IN PRTM_DEST_INFO pInDestInfo, OPTIONAL
  38. OUT PRIP_IP_ROUTE pRoute
  39. );
  40. #endif