64 lines
1.3 KiB
C
64 lines
1.3 KiB
C
|
//============================================================================
|
||
|
// Copyright (c) 1995, Microsoft Corporation
|
||
|
//
|
||
|
// File: queue.h
|
||
|
//
|
||
|
// History:
|
||
|
// Abolade Gbadegesin Aug-8-1995 Created.
|
||
|
//
|
||
|
// Contains structures and macros used for internal route structures.
|
||
|
//============================================================================
|
||
|
|
||
|
|
||
|
#ifndef _ROUTE_H_
|
||
|
#define _ROUTE_H_
|
||
|
|
||
|
typedef struct _PROTOCOL_SPECIFIC_DATA {
|
||
|
|
||
|
DWORD PSD_Data[4];
|
||
|
|
||
|
} PROTOCOL_SPECIFIC_DATA, *PPROTOCOL_SPECIFIC_DATA;
|
||
|
|
||
|
|
||
|
typedef struct _IP_NETWORK {
|
||
|
|
||
|
DWORD N_NetNumber;
|
||
|
DWORD N_NetMask;
|
||
|
|
||
|
} IP_NETWORK, *PIP_NETWORK;
|
||
|
|
||
|
|
||
|
typedef struct _IP_SPECIFIC_DATA {
|
||
|
|
||
|
DWORD FSD_Metric;
|
||
|
DWORD FSD_Metric1;
|
||
|
|
||
|
} IP_SPECIFIC_DATA, *PIP_SPECIFIC_DATA;
|
||
|
|
||
|
|
||
|
typedef struct _RIP_IP_ROUTE {
|
||
|
|
||
|
DWORD RR_RoutingProtocol;
|
||
|
DWORD RR_InterfaceID;
|
||
|
PROTOCOL_SPECIFIC_DATA RR_ProtocolSpecificData;
|
||
|
IP_NETWORK RR_Network;
|
||
|
IP_NETWORK RR_NextHopAddress;
|
||
|
IP_SPECIFIC_DATA RR_FamilySpecificData;
|
||
|
|
||
|
RTM_DEST_HANDLE hDest;
|
||
|
|
||
|
} RIP_IP_ROUTE, *PRIP_IP_ROUTE;
|
||
|
|
||
|
|
||
|
DWORD
|
||
|
GetRouteInfo(
|
||
|
IN RTM_ROUTE_HANDLE hRoute,
|
||
|
IN PRTM_ROUTE_INFO pInRouteInfo, OPTIONAL
|
||
|
IN PRTM_DEST_INFO pInDestInfo, OPTIONAL
|
||
|
OUT PRIP_IP_ROUTE pRoute
|
||
|
);
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|