2000-08-02 00:24:26 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS TCP/IP protocol driver
|
|
|
|
* FILE: include/router.h
|
|
|
|
* PURPOSE: IP routing definitions
|
|
|
|
*/
|
2010-02-26 11:43:19 +00:00
|
|
|
|
|
|
|
#pragma once
|
2000-08-02 00:24:26 +00:00
|
|
|
|
|
|
|
#include <neighbor.h>
|
|
|
|
|
|
|
|
|
|
|
|
/* Forward Information Base Entry */
|
|
|
|
typedef struct _FIB_ENTRY {
|
|
|
|
LIST_ENTRY ListEntry; /* Entry on list */
|
2001-07-04 20:40:24 +00:00
|
|
|
OBJECT_FREE_ROUTINE Free; /* Routine used to free resources for the object */
|
2004-11-09 09:39:38 +00:00
|
|
|
IP_ADDRESS NetworkAddress; /* Address of network */
|
|
|
|
IP_ADDRESS Netmask; /* Netmask of network */
|
2000-08-02 00:24:26 +00:00
|
|
|
PNEIGHBOR_CACHE_ENTRY Router; /* Pointer to NCE of router to use */
|
|
|
|
UINT Metric; /* Cost of this route */
|
|
|
|
} FIB_ENTRY, *PFIB_ENTRY;
|
|
|
|
|
|
|
|
PFIB_ENTRY RouterAddRoute(
|
|
|
|
PIP_ADDRESS NetworkAddress,
|
|
|
|
PIP_ADDRESS Netmask,
|
|
|
|
PNEIGHBOR_CACHE_ENTRY Router,
|
|
|
|
UINT Metric);
|
|
|
|
|
2004-11-25 23:56:59 +00:00
|
|
|
PNEIGHBOR_CACHE_ENTRY RouterGetRoute(PIP_ADDRESS Destination);
|
2000-08-02 00:24:26 +00:00
|
|
|
|
2004-11-26 06:55:17 +00:00
|
|
|
NTSTATUS RouterRemoveRoute(PIP_ADDRESS Target, PIP_ADDRESS Router);
|
2000-08-02 00:24:26 +00:00
|
|
|
|
2004-11-25 23:56:59 +00:00
|
|
|
PFIB_ENTRY RouterCreateRoute(
|
2004-11-26 06:55:17 +00:00
|
|
|
PIP_ADDRESS NetworkAddress,
|
|
|
|
PIP_ADDRESS Netmask,
|
|
|
|
PIP_ADDRESS RouterAddress,
|
2004-11-25 23:56:59 +00:00
|
|
|
PIP_INTERFACE Interface,
|
2000-08-02 00:24:26 +00:00
|
|
|
UINT Metric);
|
|
|
|
|
|
|
|
NTSTATUS RouterStartup(
|
|
|
|
VOID);
|
|
|
|
|
|
|
|
NTSTATUS RouterShutdown(
|
|
|
|
VOID);
|
|
|
|
|
- Merge 54929, 54930, 54932, 54933, 54934, 54939, 54941, 54942, 54944, 54945, 54946, and 54947
- The DHCP service now recognizes adapter configuration and media state changes without manual intervention
- Multiple bugs with a static IP configuration are fixed
- IpRenewAddress (ipconfig /renew) and IpReleaseAddress (ipconfig /release) no longer corrupt internal DHCP state
- Routes that cannot currently be resolved by ARP no longer become corrupted by the neighbor timeout
svn path=/trunk/; revision=54966
2012-01-14 19:42:58 +00:00
|
|
|
VOID RouterRemoveRoutesForInterface(PIP_INTERFACE Interface);
|
|
|
|
|
2009-10-09 05:18:35 +00:00
|
|
|
UINT CountFIBs(PIP_INTERFACE IF);
|
2004-06-09 18:11:39 +00:00
|
|
|
|
2009-10-09 05:18:35 +00:00
|
|
|
UINT CopyFIBs( PIP_INTERFACE IF, PFIB_ENTRY Target );
|
2004-06-09 18:11:39 +00:00
|
|
|
|
2000-08-02 00:24:26 +00:00
|
|
|
/* EOF */
|