mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:32:55 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
52
drivers/network/tcpip/include/router.h
Normal file
52
drivers/network/tcpip/include/router.h
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS TCP/IP protocol driver
|
||||
* FILE: include/router.h
|
||||
* PURPOSE: IP routing definitions
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <neighbor.h>
|
||||
|
||||
|
||||
/* Forward Information Base Entry */
|
||||
typedef struct _FIB_ENTRY {
|
||||
LIST_ENTRY ListEntry; /* Entry on list */
|
||||
OBJECT_FREE_ROUTINE Free; /* Routine used to free resources for the object */
|
||||
IP_ADDRESS NetworkAddress; /* Address of network */
|
||||
IP_ADDRESS Netmask; /* Netmask of network */
|
||||
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);
|
||||
|
||||
PNEIGHBOR_CACHE_ENTRY RouterGetRoute(PIP_ADDRESS Destination);
|
||||
|
||||
NTSTATUS RouterRemoveRoute(PIP_ADDRESS Target, PIP_ADDRESS Router);
|
||||
|
||||
PFIB_ENTRY RouterCreateRoute(
|
||||
PIP_ADDRESS NetworkAddress,
|
||||
PIP_ADDRESS Netmask,
|
||||
PIP_ADDRESS RouterAddress,
|
||||
PIP_INTERFACE Interface,
|
||||
UINT Metric);
|
||||
|
||||
NTSTATUS RouterStartup(
|
||||
VOID);
|
||||
|
||||
NTSTATUS RouterShutdown(
|
||||
VOID);
|
||||
|
||||
VOID RouterRemoveRoutesForInterface(PIP_INTERFACE Interface);
|
||||
|
||||
UINT CountFIBs(PIP_INTERFACE IF);
|
||||
|
||||
UINT CopyFIBs( PIP_INTERFACE IF, PFIB_ENTRY Target );
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue