Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenrouter.h
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS TCP/IP protocol driver 00004 * FILE: include/router.h 00005 * PURPOSE: IP routing definitions 00006 */ 00007 00008 #pragma once 00009 00010 #include <neighbor.h> 00011 00012 00013 /* Forward Information Base Entry */ 00014 typedef struct _FIB_ENTRY { 00015 LIST_ENTRY ListEntry; /* Entry on list */ 00016 OBJECT_FREE_ROUTINE Free; /* Routine used to free resources for the object */ 00017 IP_ADDRESS NetworkAddress; /* Address of network */ 00018 IP_ADDRESS Netmask; /* Netmask of network */ 00019 PNEIGHBOR_CACHE_ENTRY Router; /* Pointer to NCE of router to use */ 00020 UINT Metric; /* Cost of this route */ 00021 } FIB_ENTRY, *PFIB_ENTRY; 00022 00023 PFIB_ENTRY RouterAddRoute( 00024 PIP_ADDRESS NetworkAddress, 00025 PIP_ADDRESS Netmask, 00026 PNEIGHBOR_CACHE_ENTRY Router, 00027 UINT Metric); 00028 00029 PNEIGHBOR_CACHE_ENTRY RouterGetRoute(PIP_ADDRESS Destination); 00030 00031 NTSTATUS RouterRemoveRoute(PIP_ADDRESS Target, PIP_ADDRESS Router); 00032 00033 PFIB_ENTRY RouterCreateRoute( 00034 PIP_ADDRESS NetworkAddress, 00035 PIP_ADDRESS Netmask, 00036 PIP_ADDRESS RouterAddress, 00037 PIP_INTERFACE Interface, 00038 UINT Metric); 00039 00040 NTSTATUS RouterStartup( 00041 VOID); 00042 00043 NTSTATUS RouterShutdown( 00044 VOID); 00045 00046 VOID RouterRemoveRoutesForInterface(PIP_INTERFACE Interface); 00047 00048 UINT CountFIBs(PIP_INTERFACE IF); 00049 00050 UINT CopyFIBs( PIP_INTERFACE IF, PFIB_ENTRY Target ); 00051 00052 /* EOF */ Generated on Sun May 27 2012 04:28:06 for ReactOS by
1.7.6.1
|