1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 | #ifndef __ROUTING_RTMv2_H__
|
---|
7 | #define __ROUTING_RTMv2_H__
|
---|
8 |
|
---|
9 | #ifdef __cplusplus
|
---|
10 | extern "C" {
|
---|
11 | #endif
|
---|
12 |
|
---|
13 | #define RTM_MAX_ADDRESS_SIZE 16
|
---|
14 |
|
---|
15 | #define RTM_MAX_VIEWS 32
|
---|
16 |
|
---|
17 | #define RTM_VIEW_ID_UCAST 0
|
---|
18 | #define RTM_VIEW_ID_MCAST 1
|
---|
19 |
|
---|
20 | #define RTM_VIEW_MASK_SIZE 0x20
|
---|
21 | #define RTM_VIEW_MASK_NONE 0x00000000
|
---|
22 | #define RTM_VIEW_MASK_ANY 0x00000000
|
---|
23 | #define RTM_VIEW_MASK_UCAST 0x00000001
|
---|
24 | #define RTM_VIEW_MASK_MCAST 0x00000002
|
---|
25 | #define RTM_VIEW_MASK_ALL 0xFFFFFFFF
|
---|
26 |
|
---|
27 | typedef INT RTM_VIEW_ID,*PRTM_VIEW_ID;
|
---|
28 | typedef DWORD RTM_VIEW_SET,*PRTM_VIEW_SET;
|
---|
29 |
|
---|
30 | typedef struct _RTM_REGN_PROFILE {
|
---|
31 | UINT MaxNextHopsInRoute;
|
---|
32 | UINT MaxHandlesInEnum;
|
---|
33 | RTM_VIEW_SET ViewsSupported;
|
---|
34 | UINT NumberOfViews;
|
---|
35 | } RTM_REGN_PROFILE,*PRTM_REGN_PROFILE;
|
---|
36 |
|
---|
37 | typedef HANDLE RTM_ENTITY_HANDLE,*PRTM_ENTITY_HANDLE,RTM_DEST_HANDLE,*PRTM_DEST_HANDLE,RTM_ROUTE_HANDLE,*PRTM_ROUTE_HANDLE,RTM_NEXTHOP_HANDLE,*PRTM_NEXTHOP_HANDLE,RTM_ENUM_HANDLE,*PRTM_ENUM_HANDLE,RTM_ROUTE_LIST_HANDLE,*PRTM_ROUTE_LIST_HANDLE,RTM_NOTIFY_HANDLE,*PRTM_NOTIFY_HANDLE;
|
---|
38 |
|
---|
39 | typedef struct _RTM_NET_ADDRESS {
|
---|
40 | USHORT AddressFamily;
|
---|
41 | USHORT NumBits;
|
---|
42 | UCHAR AddrBits[RTM_MAX_ADDRESS_SIZE];
|
---|
43 | } RTM_NET_ADDRESS,*PRTM_NET_ADDRESS;
|
---|
44 |
|
---|
45 | #define RTM_IPV4_MAKE_NET_ADDRESS(NetAddress,Addr,Len) RTM_IPV4_SET_ADDR_AND_LEN(NetAddress,Addr,Len)
|
---|
46 |
|
---|
47 | #define RTM_CHECK_NTH_BIT(Value,N,Len) if ((Value) & (1 << (N))) { (Len) += (N); (Value) <<= (N); }
|
---|
48 | #define RTM_IPV4_LEN_FROM_MASK(Len,Mask) { ULONG _Temp_ = ntohl(Mask); (Len) = 0; RTM_CHECK_NTH_BIT(_Temp_,16,(Len)); RTM_CHECK_NTH_BIT(_Temp_,8,(Len)); RTM_CHECK_NTH_BIT(_Temp_,4,(Len)); while (_Temp_) { (Len) += 1; _Temp_ <<= 1; } }
|
---|
49 | #define RTM_IPV4_MASK_FROM_LEN(Len) ((Len) ? htonl(~0 << (32 - (Len))): 0);
|
---|
50 |
|
---|
51 | #define RTM_IPV4_SET_ADDR_AND_LEN(NetAddress,Addr,Len) (NetAddress)->AddressFamily = AF_INET; (NetAddress)->NumBits = (USHORT) (Len); (*(ULONG *) ((NetAddress)->AddrBits)) = (Addr);
|
---|
52 | #define RTM_IPV4_GET_ADDR_AND_LEN(Addr,Len,NetAddress) (Len) = (NetAddress)->NumBits; (Addr) = (*(ULONG *) ((NetAddress)->AddrBits));
|
---|
53 | #define RTM_IPV4_SET_ADDR_AND_MASK(NetAddress,Addr,Mask) (NetAddress)->AddressFamily = AF_INET; (*(ULONG *) ((NetAddress)->AddrBits)) = (Addr); RTM_IPV4_LEN_FROM_MASK((NetAddress)->NumBits,Mask)
|
---|
54 | #define RTM_IPV4_GET_ADDR_AND_MASK(Addr,Mask,NetAddress) (Addr) = (*(ULONG *) ((NetAddress)->AddrBits)); (Mask) = RTM_IPV4_MASK_FROM_LEN((NetAddress)->NumBits);
|
---|
55 |
|
---|
56 | typedef struct _RTM_PREF_INFO {
|
---|
57 | ULONG Metric;
|
---|
58 | ULONG Preference;
|
---|
59 | } RTM_PREF_INFO,*PRTM_PREF_INFO;
|
---|
60 |
|
---|
61 | typedef struct _RTM_NEXTHOP_LIST {
|
---|
62 | USHORT NumNextHops;
|
---|
63 | RTM_NEXTHOP_HANDLE NextHops[1];
|
---|
64 | } RTM_NEXTHOP_LIST,*PRTM_NEXTHOP_LIST;
|
---|
65 |
|
---|
66 | typedef struct _RTM_DEST_INFO {
|
---|
67 | RTM_DEST_HANDLE DestHandle;
|
---|
68 | RTM_NET_ADDRESS DestAddress;
|
---|
69 | FILETIME LastChanged;
|
---|
70 | RTM_VIEW_SET BelongsToViews;
|
---|
71 | UINT NumberOfViews;
|
---|
72 | struct {
|
---|
73 | RTM_VIEW_ID ViewId;
|
---|
74 | UINT NumRoutes;
|
---|
75 | RTM_ROUTE_HANDLE Route;
|
---|
76 | RTM_ENTITY_HANDLE Owner;
|
---|
77 | DWORD DestFlags;
|
---|
78 | RTM_ROUTE_HANDLE HoldRoute;
|
---|
79 | } ViewInfo[1];
|
---|
80 | } RTM_DEST_INFO,*PRTM_DEST_INFO;
|
---|
81 |
|
---|
82 | #define RTM_BASIC_DEST_INFO_SIZE FIELD_OFFSET(RTM_DEST_INFO,ViewInfo)
|
---|
83 | #define RTM_DEST_VIEW_INFO_SIZE (sizeof(RTM_DEST_INFO) - RTM_BASIC_DEST_INFO_SIZE)
|
---|
84 | #define RTM_SIZE_OF_DEST_INFO(NumViews) (RTM_BASIC_DEST_INFO_SIZE + (NumViews) *RTM_DEST_VIEW_INFO_SIZE)
|
---|
85 |
|
---|
86 | #define RTM_DEST_FLAG_NATURAL_NET 0x01
|
---|
87 | #define RTM_DEST_FLAG_FWD_ENGIN_ADD 0x02
|
---|
88 | #define RTM_DEST_FLAG_DONT_FORWARD 0x04
|
---|
89 |
|
---|
90 | typedef struct _RTM_ROUTE_INFO {
|
---|
91 | RTM_DEST_HANDLE DestHandle;
|
---|
92 | RTM_ENTITY_HANDLE RouteOwner;
|
---|
93 | RTM_NEXTHOP_HANDLE Neighbour;
|
---|
94 | UCHAR State;
|
---|
95 | UCHAR Flags1;
|
---|
96 | USHORT Flags;
|
---|
97 | RTM_PREF_INFO PrefInfo;
|
---|
98 | RTM_VIEW_SET BelongsToViews;
|
---|
99 | PVOID EntitySpecificInfo;
|
---|
100 | RTM_NEXTHOP_LIST NextHopsList;
|
---|
101 | } RTM_ROUTE_INFO,*PRTM_ROUTE_INFO;
|
---|
102 |
|
---|
103 | #define RTM_BASIC_ROUTE_INFO_SIZE FIELD_OFFSET(RTM_ROUTE_INFO,NextHopsList.NumNextHops)
|
---|
104 | #define RTM_SIZE_OF_ROUTE_INFO(NumHops) (RTM_BASIC_ROUTE_INFO_SIZE + (NumHops) *sizeof(RTM_NEXTHOP_HANDLE))
|
---|
105 |
|
---|
106 | #define RTM_ROUTE_STATE_CREATED 0
|
---|
107 | #define RTM_ROUTE_STATE_DELETING 1
|
---|
108 | #define RTM_ROUTE_STATE_DELETED 2
|
---|
109 |
|
---|
110 | #define RTM_ROUTE_FLAGS_MARTIAN 0x0001
|
---|
111 | #define RTM_ROUTE_FLAGS_BLACKHOLE 0x0002
|
---|
112 | #define RTM_ROUTE_FLAGS_DISCARD 0x0004
|
---|
113 | #define RTM_ROUTE_FLAGS_INACTIVE 0x0008
|
---|
114 |
|
---|
115 | #define RTM_ROUTE_FLAGS_LOCAL 0x0010
|
---|
116 | #define RTM_ROUTE_FLAGS_REMOTE 0x0020
|
---|
117 | #define RTM_ROUTE_FLAGS_MYSELF 0x0040
|
---|
118 |
|
---|
119 | #define RTM_ROUTE_FLAGS_LOOPBACK 0x0080
|
---|
120 |
|
---|
121 | #define RTM_ROUTE_FLAGS_MCAST 0x0100
|
---|
122 | #define RTM_ROUTE_FLAGS_LOCAL_MCAST 0x0200
|
---|
123 |
|
---|
124 | #define RTM_ROUTE_FLAGS_LIMITED_BC 0x0400
|
---|
125 |
|
---|
126 | #define RTM_ROUTE_FLAGS_ZEROS_NETBC 0x1000
|
---|
127 | #define RTM_ROUTE_FLAGS_ZEROS_SUBNETBC 0x2000
|
---|
128 | #define RTM_ROUTE_FLAGS_ONES_NETBC 0x4000
|
---|
129 | #define RTM_ROUTE_FLAGS_ONES_SUBNETBC 0x8000
|
---|
130 |
|
---|
131 | #define RTM_ROUTE_FLAGS_FORWARDING (RTM_ROUTE_FLAGS_MARTIAN | RTM_ROUTE_FLAGS_BLACKHOLE | RTM_ROUTE_FLAGS_DISCARD | RTM_ROUTE_FLAGS_INACTIVE)
|
---|
132 | #define RTM_ROUTE_FLAGS_ANY_UNICAST (RTM_ROUTE_FLAGS_LOCAL | RTM_ROUTE_FLAGS_REMOTE | RTM_ROUTE_FLAGS_MYSELF)
|
---|
133 | #define RTM_ROUTE_FLAGS_ANY_MCAST (RTM_ROUTE_FLAGS_MCAST | RTM_ROUTE_FLAGS_LOCAL_MCAST)
|
---|
134 | #define RTM_ROUTE_FLAGS_SUBNET_BCAST (RTM_ROUTE_FLAGS_ONES_SUBNET_BC | RTM_ROUTE_FLAGS_ZEROS_SUBNETBC)
|
---|
135 | #define RTM_ROUTE_FLAGS_NET_BCAST (RTM_ROUTE_FLAGS_ONES_NETBC | RTM_ROUTE_FLAGS_ZEROS_NETBC)
|
---|
136 | #define RTM_ROUTE_FLAGS_ANY_BCAST (RTM_ROUTE_FLAGS_LIMITED_BC | RTM_ROUTE_FLAGS_ONES_NETBC | RTM_ROUTE_FLAGS_ONES_SUBNET_BC | RTM_ROUTE_FLAGS_ZEROS_NETBC | RTM_ROUTE_FLAGS_ZEROS_SUBNETBC)
|
---|
137 |
|
---|
138 | typedef struct _RTM_NEXTHOP_INFO {
|
---|
139 | RTM_NET_ADDRESS NextHopAddress;
|
---|
140 | RTM_ENTITY_HANDLE NextHopOwner;
|
---|
141 | ULONG InterfaceIndex;
|
---|
142 | USHORT State;
|
---|
143 | USHORT Flags;
|
---|
144 | PVOID EntitySpecificInfo;
|
---|
145 | RTM_DEST_HANDLE RemoteNextHop;
|
---|
146 | } RTM_NEXTHOP_INFO,*PRTM_NEXTHOP_INFO;
|
---|
147 |
|
---|
148 | #define RTM_NEXTHOP_STATE_CREATED 0
|
---|
149 | #define RTM_NEXTHOP_STATE_DELETED 1
|
---|
150 |
|
---|
151 | #define RTM_NEXTHOP_FLAGS_REMOTE 0x0001
|
---|
152 | #define RTM_NEXTHOP_FLAGS_DOWN 0x0002
|
---|
153 |
|
---|
154 | typedef struct _RTM_ENTITY_ID {
|
---|
155 | __C89_NAMELESS union {
|
---|
156 | __C89_NAMELESS struct {
|
---|
157 | ULONG EntityProtocolId;
|
---|
158 | ULONG EntityInstanceId;
|
---|
159 | };
|
---|
160 | ULONGLONG EntityId;
|
---|
161 | };
|
---|
162 | } RTM_ENTITY_ID,*PRTM_ENTITY_ID;
|
---|
163 |
|
---|
164 | typedef struct _RTM_ENTITY_INFO {
|
---|
165 | USHORT RtmInstanceId;
|
---|
166 | USHORT AddressFamily;
|
---|
167 | RTM_ENTITY_ID EntityId;
|
---|
168 | } RTM_ENTITY_INFO,*PRTM_ENTITY_INFO;
|
---|
169 |
|
---|
170 | typedef enum _RTM_EVENT_TYPE {
|
---|
171 | RTM_ENTITY_REGISTERED,RTM_ENTITY_DEREGISTERED,RTM_ROUTE_EXPIRED,RTM_CHANGE_NOTIFICATION
|
---|
172 | } RTM_EVENT_TYPE,*PRTM_EVENT_TYPE;
|
---|
173 |
|
---|
174 | typedef DWORD (WINAPI *_EVENT_CALLBACK)(RTM_ENTITY_HANDLE RtmRegHandle,RTM_EVENT_TYPE EventType,PVOID Context1,PVOID Context2);
|
---|
175 |
|
---|
176 | typedef _EVENT_CALLBACK RTM_EVENT_CALLBACK,*PRTM_EVENT_CALLBACK;
|
---|
177 |
|
---|
178 | #define METHOD_TYPE_ALL_METHODS 0xFFFFFFFF
|
---|
179 |
|
---|
180 | #define METHOD_RIP2_NEIGHBOUR_ADDR 0x00000001
|
---|
181 | #define METHOD_RIP2_OUTBOUND_INTF 0x00000002
|
---|
182 | #define METHOD_RIP2_ROUTE_TAG 0x00000004
|
---|
183 | #define METHOD_RIP2_ROUTE_TIMESTAMP 0x00000008
|
---|
184 |
|
---|
185 | #define METHOD_OSPF_ROUTE_TYPE 0x00000001
|
---|
186 | #define METHOD_OSPF_ROUTE_METRIC 0x00000002
|
---|
187 | #define METHOD_OSPF_LSDB_TYPE 0x00000004
|
---|
188 | #define METHOD_OSPF_ROUTE_TAG 0x00000008
|
---|
189 | #define METHOD_OSPF_ROUTE_AREA 0x00000010
|
---|
190 | #define METHOD_OSPF_FWD_ADDRESS 0x00000020
|
---|
191 |
|
---|
192 | #define METHOD_BGP4_AS_PATH 0x00000001
|
---|
193 | #define METHOD_BGP4_PEER_ID 0x00000002
|
---|
194 | #define METHOD_BGP4_PA_ORIGIN 0x00000004
|
---|
195 | #define METHOD_BGP4_NEXTHOP_ATTR 0x00000008
|
---|
196 |
|
---|
197 | typedef DWORD RTM_ENTITY_METHOD_TYPE,*PRTM_ENTITY_METHOD_TYPE;
|
---|
198 |
|
---|
199 | typedef struct _RTM_ENTITY_METHOD_INPUT {
|
---|
200 | RTM_ENTITY_METHOD_TYPE MethodType;
|
---|
201 | UINT InputSize;
|
---|
202 | UCHAR InputData[1];
|
---|
203 | } RTM_ENTITY_METHOD_INPUT,*PRTM_ENTITY_METHOD_INPUT;
|
---|
204 |
|
---|
205 | typedef struct _RTM_ENTITY_METHOD_OUTPUT {
|
---|
206 | RTM_ENTITY_METHOD_TYPE MethodType;
|
---|
207 | DWORD MethodStatus;
|
---|
208 | UINT OutputSize;
|
---|
209 | UCHAR OutputData[1];
|
---|
210 | } RTM_ENTITY_METHOD_OUTPUT,*PRTM_ENTITY_METHOD_OUTPUT;
|
---|
211 |
|
---|
212 | typedef VOID (WINAPI *_ENTITY_METHOD)(RTM_ENTITY_HANDLE CallerHandle,RTM_ENTITY_HANDLE CalleeHandle,RTM_ENTITY_METHOD_INPUT *Input,RTM_ENTITY_METHOD_OUTPUT *Output);
|
---|
213 |
|
---|
214 | typedef _ENTITY_METHOD RTM_ENTITY_EXPORT_METHOD,*PRTM_ENTITY_EXPORT_METHOD;
|
---|
215 |
|
---|
216 | typedef struct _RTM_ENTITY_EXPORT_METHODS {
|
---|
217 | UINT NumMethods;
|
---|
218 | RTM_ENTITY_EXPORT_METHOD Methods[1];
|
---|
219 | } RTM_ENTITY_EXPORT_METHODS,*PRTM_ENTITY_EXPORT_METHODS;
|
---|
220 |
|
---|
221 | #define RTM_RESUME_METHODS 0
|
---|
222 | #define RTM_BLOCK_METHODS 1
|
---|
223 |
|
---|
224 | typedef DWORD RTM_ROUTE_CHANGE_FLAGS,*PRTM_ROUTE_CHANGE_FLAGS;
|
---|
225 |
|
---|
226 | #define RTM_ROUTE_CHANGE_FIRST 0x01
|
---|
227 | #define RTM_ROUTE_CHANGE_NEW 0x02
|
---|
228 | #define RTM_ROUTE_CHANGE_BEST 0x00010000
|
---|
229 |
|
---|
230 | typedef DWORD RTM_NEXTHOP_CHANGE_FLAGS,*PRTM_NEXTHOP_CHANGE_FLAGS;
|
---|
231 |
|
---|
232 | #define RTM_NEXTHOP_CHANGE_NEW 0x01
|
---|
233 |
|
---|
234 | typedef DWORD RTM_MATCH_FLAGS,*PRTM_MATCH_FLAGS;
|
---|
235 |
|
---|
236 | #define RTM_MATCH_NONE 0x00000000
|
---|
237 | #define RTM_MATCH_OWNER 0x00000001
|
---|
238 | #define RTM_MATCH_NEIGHBOUR 0x00000002
|
---|
239 | #define RTM_MATCH_PREF 0x00000004
|
---|
240 | #define RTM_MATCH_NEXTHOP 0x00000008
|
---|
241 | #define RTM_MATCH_INTERFACE 0x00000010
|
---|
242 | #define RTM_MATCH_FULL 0x0000FFFF
|
---|
243 |
|
---|
244 | #define RTM_BEST_PROTOCOL (ULONG) 0
|
---|
245 | #define RTM_THIS_PROTOCOL (ULONG) ~0
|
---|
246 |
|
---|
247 | typedef DWORD RTM_ENUM_FLAGS,*PRTM_ENUM_FLAGS;
|
---|
248 |
|
---|
249 | #define RTM_ENUM_START 0x00000000
|
---|
250 | #define RTM_ENUM_NEXT 0x00000001
|
---|
251 | #define RTM_ENUM_RANGE 0x00000002
|
---|
252 |
|
---|
253 | #define RTM_ENUM_ALL_DESTS 0x00000000
|
---|
254 | #define RTM_ENUM_OWN_DESTS 0x01000000
|
---|
255 |
|
---|
256 | #define RTM_ENUM_ALL_ROUTES 0x00000000
|
---|
257 | #define RTM_ENUM_OWN_ROUTES 0x00010000
|
---|
258 |
|
---|
259 | typedef DWORD RTM_NOTIFY_FLAGS,*PRTM_NOTIFY_FLAGS;
|
---|
260 |
|
---|
261 | #define RTM_NUM_CHANGE_TYPES 3
|
---|
262 |
|
---|
263 | #define RTM_CHANGE_TYPE_ALL 0x0001
|
---|
264 | #define RTM_CHANGE_TYPE_BEST 0x0002
|
---|
265 | #define RTM_CHANGE_TYPE_FORWARDING 0x0004
|
---|
266 |
|
---|
267 | #define RTM_NOTIFY_ONLY_MARKED_DESTS 0x00010000
|
---|
268 |
|
---|
269 | DWORD WINAPI RtmRegisterEntity(PRTM_ENTITY_INFO RtmEntityInfo,PRTM_ENTITY_EXPORT_METHODS ExportMethods,RTM_EVENT_CALLBACK EventCallback,WINBOOL ReserveOpaquePointer,PRTM_REGN_PROFILE RtmRegProfile,PRTM_ENTITY_HANDLE RtmRegHandle);
|
---|
270 | DWORD WINAPI RtmDeregisterEntity(RTM_ENTITY_HANDLE RtmRegHandle);
|
---|
271 | DWORD WINAPI RtmGetRegisteredEntities(RTM_ENTITY_HANDLE RtmRegHandle,PUINT NumEntities,PRTM_ENTITY_HANDLE EntityHandles,PRTM_ENTITY_INFO EntityInfos);
|
---|
272 | DWORD WINAPI RtmReleaseEntities(RTM_ENTITY_HANDLE RtmRegHandle,UINT NumEntities,PRTM_ENTITY_HANDLE EntityHandles);
|
---|
273 | DWORD WINAPI RtmLockDestination(RTM_ENTITY_HANDLE RtmRegHandle,RTM_DEST_HANDLE DestHandle,WINBOOL Exclusive,WINBOOL LockDest);
|
---|
274 | DWORD WINAPI RtmGetOpaqueInformationPointer(RTM_ENTITY_HANDLE RtmRegHandle,RTM_DEST_HANDLE DestHandle,PVOID *OpaqueInfoPointer);
|
---|
275 | DWORD WINAPI RtmGetEntityMethods(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENTITY_HANDLE EntityHandle,PUINT NumMethods,PRTM_ENTITY_EXPORT_METHOD ExptMethods);
|
---|
276 | DWORD WINAPI RtmInvokeMethod(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENTITY_HANDLE EntityHandle,PRTM_ENTITY_METHOD_INPUT Input,PUINT OutputSize,PRTM_ENTITY_METHOD_OUTPUT Output);
|
---|
277 | DWORD WINAPI RtmBlockMethods(RTM_ENTITY_HANDLE RtmRegHandle,HANDLE TargetHandle,UCHAR TargetType,DWORD BlockingFlag);
|
---|
278 | DWORD WINAPI RtmGetEntityInfo(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENTITY_HANDLE EntityHandle,PRTM_ENTITY_INFO EntityInfo);
|
---|
279 | DWORD WINAPI RtmGetDestInfo(RTM_ENTITY_HANDLE RtmRegHandle,RTM_DEST_HANDLE DestHandle,ULONG ProtocolId,RTM_VIEW_SET TargetViews,PRTM_DEST_INFO DestInfo);
|
---|
280 | DWORD WINAPI RtmGetRouteInfo(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_HANDLE RouteHandle,PRTM_ROUTE_INFO RouteInfo,PRTM_NET_ADDRESS DestAddress);
|
---|
281 | DWORD WINAPI RtmGetNextHopInfo(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NEXTHOP_HANDLE NextHopHandle,PRTM_NEXTHOP_INFO NextHopInfo);
|
---|
282 | DWORD WINAPI RtmReleaseEntityInfo(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_ENTITY_INFO EntityInfo);
|
---|
283 | DWORD WINAPI RtmReleaseDestInfo(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_DEST_INFO DestInfo);
|
---|
284 | DWORD WINAPI RtmReleaseRouteInfo(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_ROUTE_INFO RouteInfo);
|
---|
285 | DWORD WINAPI RtmReleaseNextHopInfo(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_NEXTHOP_INFO NextHopInfo);
|
---|
286 | DWORD WINAPI RtmAddRouteToDest(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_ROUTE_HANDLE RouteHandle,PRTM_NET_ADDRESS DestAddress,PRTM_ROUTE_INFO RouteInfo,ULONG TimeToLive,RTM_ROUTE_LIST_HANDLE RouteListHandle,RTM_NOTIFY_FLAGS NotifyType,RTM_NOTIFY_HANDLE NotifyHandle,PRTM_ROUTE_CHANGE_FLAGS ChangeFlags);
|
---|
287 | DWORD WINAPI RtmDeleteRouteToDest(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_HANDLE RouteHandle,PRTM_ROUTE_CHANGE_FLAGS ChangeFlags);
|
---|
288 | DWORD WINAPI RtmHoldDestination(RTM_ENTITY_HANDLE RtmRegHandle,RTM_DEST_HANDLE DestHandle,RTM_VIEW_SET TargetViews,ULONG HoldTime);
|
---|
289 | DWORD WINAPI RtmGetRoutePointer(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_HANDLE RouteHandle,PRTM_ROUTE_INFO *RoutePointer);
|
---|
290 | DWORD WINAPI RtmLockRoute(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_HANDLE RouteHandle,WINBOOL Exclusive,WINBOOL LockRoute,PRTM_ROUTE_INFO *RoutePointer);
|
---|
291 | DWORD WINAPI RtmUpdateAndUnlockRoute(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_HANDLE RouteHandle,ULONG TimeToLive,RTM_ROUTE_LIST_HANDLE RouteListHandle,RTM_NOTIFY_FLAGS NotifyType,RTM_NOTIFY_HANDLE NotifyHandle,PRTM_ROUTE_CHANGE_FLAGS ChangeFlags);
|
---|
292 | DWORD WINAPI RtmGetExactMatchDestination(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_NET_ADDRESS DestAddress,ULONG ProtocolId,RTM_VIEW_SET TargetViews,PRTM_DEST_INFO DestInfo);
|
---|
293 | DWORD WINAPI RtmGetMostSpecificDestination(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_NET_ADDRESS DestAddress,ULONG ProtocolId,RTM_VIEW_SET TargetViews,PRTM_DEST_INFO DestInfo);
|
---|
294 | DWORD WINAPI RtmGetLessSpecificDestination(RTM_ENTITY_HANDLE RtmRegHandle,RTM_DEST_HANDLE DestHandle,ULONG ProtocolId,RTM_VIEW_SET TargetViews,PRTM_DEST_INFO DestInfo);
|
---|
295 | DWORD WINAPI RtmGetExactMatchRoute(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_NET_ADDRESS DestAddress,RTM_MATCH_FLAGS MatchingFlags,PRTM_ROUTE_INFO RouteInfo,ULONG InterfaceIndex,RTM_VIEW_SET TargetViews,PRTM_ROUTE_HANDLE RouteHandle);
|
---|
296 | DWORD WINAPI RtmIsBestRoute(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_HANDLE RouteHandle,PRTM_VIEW_SET BestInViews);
|
---|
297 | DWORD WINAPI RtmAddNextHop(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_NEXTHOP_INFO NextHopInfo,PRTM_NEXTHOP_HANDLE NextHopHandle,PRTM_NEXTHOP_CHANGE_FLAGS ChangeFlags);
|
---|
298 | DWORD WINAPI RtmFindNextHop(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_NEXTHOP_INFO NextHopInfo,PRTM_NEXTHOP_HANDLE NextHopHandle,PRTM_NEXTHOP_INFO *NextHopPointer);
|
---|
299 | DWORD WINAPI RtmDeleteNextHop(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NEXTHOP_HANDLE NextHopHandle,PRTM_NEXTHOP_INFO NextHopInfo);
|
---|
300 | DWORD WINAPI RtmGetNextHopPointer(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NEXTHOP_HANDLE NextHopHandle,PRTM_NEXTHOP_INFO *NextHopPointer);
|
---|
301 | DWORD WINAPI RtmLockNextHop(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NEXTHOP_HANDLE NextHopHandle,WINBOOL Exclusive,WINBOOL LockNextHop,PRTM_NEXTHOP_INFO *NextHopPointer);
|
---|
302 | DWORD WINAPI RtmCreateDestEnum(RTM_ENTITY_HANDLE RtmRegHandle,RTM_VIEW_SET TargetViews,RTM_ENUM_FLAGS EnumFlags,PRTM_NET_ADDRESS NetAddress,ULONG ProtocolId,PRTM_ENUM_HANDLE RtmEnumHandle);
|
---|
303 | DWORD WINAPI RtmGetEnumDests(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENUM_HANDLE EnumHandle,PUINT NumDests,PRTM_DEST_INFO DestInfos);
|
---|
304 | DWORD WINAPI RtmReleaseDests(RTM_ENTITY_HANDLE RtmRegHandle,UINT NumDests,PRTM_DEST_INFO DestInfos);
|
---|
305 | DWORD WINAPI RtmCreateRouteEnum(RTM_ENTITY_HANDLE RtmRegHandle,RTM_DEST_HANDLE DestHandle,RTM_VIEW_SET TargetViews,RTM_ENUM_FLAGS EnumFlags,PRTM_NET_ADDRESS StartDest,RTM_MATCH_FLAGS MatchingFlags,PRTM_ROUTE_INFO CriteriaRoute,ULONG CriteriaInterface,PRTM_ENUM_HANDLE RtmEnumHandle);
|
---|
306 | DWORD WINAPI RtmGetEnumRoutes(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENUM_HANDLE EnumHandle,PUINT NumRoutes,PRTM_ROUTE_HANDLE RouteHandles);
|
---|
307 | DWORD WINAPI RtmReleaseRoutes(RTM_ENTITY_HANDLE RtmRegHandle,UINT NumRoutes,PRTM_ROUTE_HANDLE RouteHandles);
|
---|
308 | DWORD WINAPI RtmCreateNextHopEnum(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENUM_FLAGS EnumFlags,PRTM_NET_ADDRESS NetAddress,PRTM_ENUM_HANDLE RtmEnumHandle);
|
---|
309 | DWORD WINAPI RtmGetEnumNextHops(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENUM_HANDLE EnumHandle,PUINT NumNextHops,PRTM_NEXTHOP_HANDLE NextHopHandles);
|
---|
310 | DWORD WINAPI RtmReleaseNextHops(RTM_ENTITY_HANDLE RtmRegHandle,UINT NumNextHops,PRTM_NEXTHOP_HANDLE NextHopHandles);
|
---|
311 | DWORD WINAPI RtmDeleteEnumHandle(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENUM_HANDLE EnumHandle);
|
---|
312 | DWORD WINAPI RtmRegisterForChangeNotification(RTM_ENTITY_HANDLE RtmRegHandle,RTM_VIEW_SET TargetViews,RTM_NOTIFY_FLAGS NotifyFlags,PVOID NotifyContext,PRTM_NOTIFY_HANDLE NotifyHandle);
|
---|
313 | DWORD WINAPI RtmGetChangedDests(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NOTIFY_HANDLE NotifyHandle,PUINT NumDests,PRTM_DEST_INFO ChangedDests);
|
---|
314 | DWORD WINAPI RtmReleaseChangedDests(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NOTIFY_HANDLE NotifyHandle,UINT NumDests,PRTM_DEST_INFO ChangedDests);
|
---|
315 | DWORD WINAPI RtmIgnoreChangedDests(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NOTIFY_HANDLE NotifyHandle,UINT NumDests,PRTM_DEST_HANDLE ChangedDests);
|
---|
316 | DWORD WINAPI RtmGetChangeStatus(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NOTIFY_HANDLE NotifyHandle,RTM_DEST_HANDLE DestHandle,PBOOL ChangeStatus);
|
---|
317 | DWORD WINAPI RtmMarkDestForChangeNotification(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NOTIFY_HANDLE NotifyHandle,RTM_DEST_HANDLE DestHandle,WINBOOL MarkDest);
|
---|
318 | DWORD WINAPI RtmIsMarkedForChangeNotification(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NOTIFY_HANDLE NotifyHandle,RTM_DEST_HANDLE DestHandle,PBOOL DestMarked);
|
---|
319 | DWORD WINAPI RtmDeregisterFromChangeNotification(RTM_ENTITY_HANDLE RtmRegHandle,RTM_NOTIFY_HANDLE NotifyHandle);
|
---|
320 | DWORD WINAPI RtmCreateRouteList(RTM_ENTITY_HANDLE RtmRegHandle,PRTM_ROUTE_LIST_HANDLE RouteListHandle);
|
---|
321 | DWORD WINAPI RtmInsertInRouteList(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_LIST_HANDLE RouteListHandle,UINT NumRoutes,PRTM_ROUTE_HANDLE RouteHandles);
|
---|
322 | DWORD WINAPI RtmCreateRouteListEnum(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_LIST_HANDLE RouteListHandle,PRTM_ENUM_HANDLE RtmEnumHandle);
|
---|
323 | DWORD WINAPI RtmGetListEnumRoutes(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ENUM_HANDLE EnumHandle,PUINT NumRoutes,PRTM_ROUTE_HANDLE RouteHandles);
|
---|
324 | DWORD WINAPI RtmDeleteRouteList(RTM_ENTITY_HANDLE RtmRegHandle,RTM_ROUTE_LIST_HANDLE RouteListHandle);
|
---|
325 | DWORD WINAPI RtmReferenceHandles(RTM_ENTITY_HANDLE RtmRegHandle,UINT NumHandles,HANDLE *RtmHandles);
|
---|
326 |
|
---|
327 | #ifdef __cplusplus
|
---|
328 | }
|
---|
329 | #endif
|
---|
330 | #endif
|
---|