-/*\r
- * COPYRIGHT: See COPYING in the top level directory\r
- * PROJECT: ReactOS TCP/IP protocol driver\r
- * FILE: include/router.h\r
- * PURPOSE: IP routing definitions\r
- */\r
-#ifndef __ROUTER_H\r
-#define __ROUTER_H\r
-\r
-#include <neighbor.h>\r
-\r
-\r
-/* Forward Information Base Entry */\r
-typedef struct _FIB_ENTRY {\r
- LIST_ENTRY ListEntry; /* Entry on list */\r
- ULONG RefCount; /* Reference count */\r
- PIP_ADDRESS NetworkAddress; /* Address of network */\r
- PIP_ADDRESS Netmask; /* Netmask of network */\r
- PNET_TABLE_ENTRY NTE; /* Pointer to NTE to use */\r
- PNEIGHBOR_CACHE_ENTRY Router; /* Pointer to NCE of router to use */\r
- UINT Metric; /* Cost of this route */\r
-} FIB_ENTRY, *PFIB_ENTRY;\r
-\r
-\r
-PNET_TABLE_ENTRY RouterFindBestNTE(\r
- PIP_INTERFACE Interface,\r
- PIP_ADDRESS Destination);\r
-\r
-PIP_INTERFACE RouterFindOnLinkInterface(\r
- PIP_ADDRESS Address,\r
- PNET_TABLE_ENTRY NTE);\r
-\r
-PFIB_ENTRY RouterAddRoute(\r
- PIP_ADDRESS NetworkAddress,\r
- PIP_ADDRESS Netmask,\r
- PNET_TABLE_ENTRY NTE,\r
- PNEIGHBOR_CACHE_ENTRY Router,\r
- UINT Metric);\r
-\r
-PNEIGHBOR_CACHE_ENTRY RouterGetRoute(\r
- PIP_ADDRESS Destination,\r
- PNET_TABLE_ENTRY NTE);\r
-\r
-VOID RouterRemoveRoute(\r
- PFIB_ENTRY FIBE);\r
-\r
-PFIB_ENTRY RouterCreateRouteIPv4(\r
- IPv4_RAW_ADDRESS NetworkAddress,\r
- IPv4_RAW_ADDRESS Netmask,\r
- IPv4_RAW_ADDRESS RouterAddress,\r
- PNET_TABLE_ENTRY NTE,\r
- UINT Metric);\r
-\r
-NTSTATUS RouterStartup(\r
- VOID);\r
-\r
-NTSTATUS RouterShutdown(\r
- VOID);\r
-\r
-#endif /* __ROUTER_H */\r
-\r
-/* EOF */\r
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS TCP/IP protocol driver
+ * FILE: include/router.h
+ * PURPOSE: IP routing definitions
+ */
+#ifndef __ROUTER_H
+#define __ROUTER_H
+
+#include <neighbor.h>
+
+
+/* Forward Information Base Entry */
+typedef struct _FIB_ENTRY {
+ LIST_ENTRY ListEntry; /* Entry on list */
+ ULONG RefCount; /* Reference count */
+ PIP_ADDRESS NetworkAddress; /* Address of network */
+ PIP_ADDRESS Netmask; /* Netmask of network */
+ PNET_TABLE_ENTRY NTE; /* Pointer to NTE to use */
+ PNEIGHBOR_CACHE_ENTRY Router; /* Pointer to NCE of router to use */
+ UINT Metric; /* Cost of this route */
+} FIB_ENTRY, *PFIB_ENTRY;
+
+
+PNET_TABLE_ENTRY RouterFindBestNTE(
+ PIP_INTERFACE Interface,
+ PIP_ADDRESS Destination);
+
+PIP_INTERFACE RouterFindOnLinkInterface(
+ PIP_ADDRESS Address,
+ PNET_TABLE_ENTRY NTE);
+
+PFIB_ENTRY RouterAddRoute(
+ PIP_ADDRESS NetworkAddress,
+ PIP_ADDRESS Netmask,
+ PNET_TABLE_ENTRY NTE,
+ PNEIGHBOR_CACHE_ENTRY Router,
+ UINT Metric);
+
+PNEIGHBOR_CACHE_ENTRY RouterGetRoute(
+ PIP_ADDRESS Destination,
+ PNET_TABLE_ENTRY NTE);
+
+VOID RouterRemoveRoute(
+ PFIB_ENTRY FIBE);
+
+PFIB_ENTRY RouterCreateRouteIPv4(
+ IPv4_RAW_ADDRESS NetworkAddress,
+ IPv4_RAW_ADDRESS Netmask,
+ IPv4_RAW_ADDRESS RouterAddress,
+ PNET_TABLE_ENTRY NTE,
+ UINT Metric);
+
+NTSTATUS RouterStartup(
+ VOID);
+
+NTSTATUS RouterShutdown(
+ VOID);
+
+#endif /* __ROUTER_H */
+
+/* EOF */