ReactOS 0.4.16-dev-340-g0540c21
|
Go to the source code of this file.
Classes | |
struct | _NEIGHBOR_PACKET |
struct | NEIGHBOR_CACHE_TABLE |
struct | NEIGHBOR_CACHE_ENTRY |
Macros | |
#define | NB_HASHMASK 0xF /* Hash mask for neighbor cache */ |
#define | NUD_INCOMPLETE 0x01 |
#define | NUD_PERMANENT 0x02 |
#define | NUD_STALE 0x04 |
#define | ARP_INCOMPLETE_TIMEOUT 3 |
#define | ARP_RATE 900 |
#define | ARP_COMPLETE_TIMEOUT (ARP_RATE + 9) |
#define | ARP_TIMEOUT_RETRANSMISSION 3 |
Typedefs | |
typedef VOID(* | PNEIGHBOR_PACKET_COMPLETE) (PVOID Context, PNDIS_PACKET Packet, NDIS_STATUS Status) |
typedef struct _NEIGHBOR_PACKET | NEIGHBOR_PACKET |
typedef struct _NEIGHBOR_PACKET * | PNEIGHBOR_PACKET |
typedef struct NEIGHBOR_CACHE_TABLE | NEIGHBOR_CACHE_TABLE |
typedef struct NEIGHBOR_CACHE_TABLE * | PNEIGHBOR_CACHE_TABLE |
typedef struct NEIGHBOR_CACHE_ENTRY | NEIGHBOR_CACHE_ENTRY |
typedef struct NEIGHBOR_CACHE_ENTRY * | PNEIGHBOR_CACHE_ENTRY |
Functions | |
VOID | NBTimeout (VOID) |
VOID | NBStartup (VOID) |
VOID | NBShutdown (VOID) |
VOID | NBSendSolicit (PNEIGHBOR_CACHE_ENTRY NCE) |
PNEIGHBOR_CACHE_ENTRY | NBAddNeighbor (PIP_INTERFACE Interface, PIP_ADDRESS Address, PVOID LinkAddress, UINT LinkAddressLength, UCHAR Type, UINT EventTimer) |
VOID | NBUpdateNeighbor (PNEIGHBOR_CACHE_ENTRY NCE, PVOID LinkAddress, UCHAR State) |
PNEIGHBOR_CACHE_ENTRY | NBLocateNeighbor (PIP_ADDRESS Address, PIP_INTERFACE Interface) |
PNEIGHBOR_CACHE_ENTRY | NBFindOrCreateNeighbor (PIP_INTERFACE Interface, PIP_ADDRESS Address, BOOLEAN NoTimeout) |
BOOLEAN | NBQueuePacket (PNEIGHBOR_CACHE_ENTRY NCE, PNDIS_PACKET NdisPacket, PNEIGHBOR_PACKET_COMPLETE PacketComplete, PVOID PacketContext) |
VOID | NBRemoveNeighbor (PNEIGHBOR_CACHE_ENTRY NCE) |
ULONG | NBCopyNeighbors (PIP_INTERFACE Interface, PIPARP_ENTRY ArpTable) |
VOID | NBResetNeighborTimeout (PIP_ADDRESS Address) |
VOID | NBDestroyNeighborsForInterface (PIP_INTERFACE Interface) |
Variables | |
NEIGHBOR_CACHE_TABLE | NeighborCache [NB_HASHMASK+1] |
Definition at line 52 of file neighbor.h.
#define ARP_INCOMPLETE_TIMEOUT 3 |
Definition at line 46 of file neighbor.h.
#define ARP_RATE 900 |
Definition at line 49 of file neighbor.h.
#define ARP_TIMEOUT_RETRANSMISSION 3 |
Definition at line 55 of file neighbor.h.
Definition at line 10 of file neighbor.h.
#define NUD_INCOMPLETE 0x01 |
Definition at line 41 of file neighbor.h.
#define NUD_PERMANENT 0x02 |
Definition at line 42 of file neighbor.h.
#define NUD_STALE 0x04 |
Definition at line 43 of file neighbor.h.
typedef struct _NEIGHBOR_PACKET NEIGHBOR_PACKET |
typedef struct NEIGHBOR_CACHE_ENTRY * PNEIGHBOR_CACHE_ENTRY |
typedef struct NEIGHBOR_CACHE_TABLE * PNEIGHBOR_CACHE_TABLE |
typedef struct _NEIGHBOR_PACKET * PNEIGHBOR_PACKET |
typedef VOID(* PNEIGHBOR_PACKET_COMPLETE) (PVOID Context, PNDIS_PACKET Packet, NDIS_STATUS Status) |
Definition at line 12 of file neighbor.h.
PNEIGHBOR_CACHE_ENTRY NBAddNeighbor | ( | PIP_INTERFACE | Interface, |
PIP_ADDRESS | Address, | ||
PVOID | LinkAddress, | ||
UINT | LinkAddressLength, | ||
UCHAR | Type, | ||
UINT | EventTimer | ||
) |
Definition at line 273 of file neighbor.c.
Referenced by ARPReceive(), InfoTdiSetArptableMIB(), IPAddInterfaceRoute(), and NBFindOrCreateNeighbor().
ULONG NBCopyNeighbors | ( | PIP_INTERFACE | Interface, |
PIPARP_ENTRY | ArpTable | ||
) |
Definition at line 635 of file neighbor.c.
Referenced by InfoTdiQueryGetArptableMIB().
VOID NBDestroyNeighborsForInterface | ( | PIP_INTERFACE | Interface | ) |
Definition at line 237 of file neighbor.c.
Referenced by ReconfigureAdapter().
PNEIGHBOR_CACHE_ENTRY NBFindOrCreateNeighbor | ( | PIP_INTERFACE | Interface, |
PIP_ADDRESS | Address, | ||
BOOLEAN | NoTimeout | ||
) |
Definition at line 501 of file neighbor.c.
Referenced by RouteGetRouteToDestination(), and RouterCreateRoute().
PNEIGHBOR_CACHE_ENTRY NBLocateNeighbor | ( | PIP_ADDRESS | Address, |
PIP_INTERFACE | Interface | ||
) |
Definition at line 417 of file neighbor.c.
Referenced by ARPReceive(), DispTdiQueryIpHwAddress(), InfoTdiSetArptableMIB(), IPRemoveInterfaceRoute(), NBFindOrCreateNeighbor(), RawIPSendDatagram(), UDPSendDatagram(), and WaitForHwAddress().
BOOLEAN NBQueuePacket | ( | PNEIGHBOR_CACHE_ENTRY | NCE, |
PNDIS_PACKET | NdisPacket, | ||
PNEIGHBOR_PACKET_COMPLETE | PacketComplete, | ||
PVOID | PacketContext | ||
) |
Definition at line 541 of file neighbor.c.
Referenced by IPSendFragment().
VOID NBRemoveNeighbor | ( | PNEIGHBOR_CACHE_ENTRY | NCE | ) |
Definition at line 590 of file neighbor.c.
Referenced by InfoTdiSetArptableMIB(), and IPRemoveInterfaceRoute().
VOID NBResetNeighborTimeout | ( | PIP_ADDRESS | Address | ) |
Definition at line 387 of file neighbor.c.
Referenced by IPDispatchProtocol().
VOID NBSendSolicit | ( | PNEIGHBOR_CACHE_ENTRY | NCE | ) |
Definition at line 221 of file neighbor.c.
Referenced by NBFindOrCreateNeighbor(), and NBTimeout().
Definition at line 184 of file neighbor.c.
Referenced by IPShutdown().
Definition at line 91 of file neighbor.c.
Referenced by IPTimeoutDpcFn().
VOID NBUpdateNeighbor | ( | PNEIGHBOR_CACHE_ENTRY | NCE, |
PVOID | LinkAddress, | ||
UCHAR | State | ||
) |
Definition at line 346 of file neighbor.c.
Referenced by ARPReceive(), and DispTdiQueryIpHwAddress().
|
extern |
Definition at line 13 of file neighbor.c.
Referenced by NBAddNeighbor(), NBCopyNeighbors(), NBDestroyNeighborsForInterface(), NBLocateNeighbor(), NBQueuePacket(), NBRemoveNeighbor(), NBResetNeighborTimeout(), NBSendPackets(), NBShutdown(), NBStartup(), NBTimeout(), and NBUpdateNeighbor().