Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/libalias/alias_local.h
Show All 40 Lines | |||||
* on its distribution. | * on its distribution. | ||||
* | * | ||||
* Initial version: August, 1996 (cjm) | * Initial version: August, 1996 (cjm) | ||||
* | * | ||||
* <updated several times by original author and Eivind Eklund> | * <updated several times by original author and Eivind Eklund> | ||||
*/ | */ | ||||
#ifndef _ALIAS_LOCAL_H_ | #ifndef _ALIAS_LOCAL_H_ | ||||
#define _ALIAS_LOCAL_H_ | #define _ALIAS_LOCAL_H_ | ||||
#include <sys/types.h> | |||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/tree.h> | |||||
#include <sys/types.h> | |||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#include <sys/malloc.h> | |||||
#include <sys/param.h> | |||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/malloc.h> | |||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/param.h> | |||||
/* XXX: LibAliasSetTarget() uses this constant. */ | /* XXX: LibAliasSetTarget() uses this constant. */ | ||||
#define INADDR_NONE 0xffffffff | #define INADDR_NONE 0xffffffff | ||||
#include <netinet/libalias/alias_sctp.h> | #include <netinet/libalias/alias_sctp.h> | ||||
#else | #else | ||||
#include "alias_sctp.h" | #include "alias_sctp.h" | ||||
#endif | #endif | ||||
Show All 22 Lines | struct libalias { | ||||
/* IP address incoming packets are sent to | /* IP address incoming packets are sent to | ||||
* if no aliasing link already exists */ | * if no aliasing link already exists */ | ||||
struct in_addr targetAddress; | struct in_addr targetAddress; | ||||
/* Lookup table of pointers to chains of link records. | /* Lookup table of pointers to chains of link records. | ||||
* Each link record is doubly indexed into input and | * Each link record is doubly indexed into input and | ||||
* output lookup tables. */ | * output lookup tables. */ | ||||
LIST_HEAD (, alias_link) linkTableOut[LINK_TABLE_OUT_SIZE]; | LIST_HEAD (, alias_link) linkTableOut[LINK_TABLE_OUT_SIZE]; | ||||
LIST_HEAD (, alias_link) linkTableIn[LINK_TABLE_IN_SIZE]; | LIST_HEAD (, alias_link) linkTableIn[LINK_TABLE_IN_SIZE]; | ||||
LIST_HEAD (, alias_link) linkPartial; | |||||
/* HouseKeeping */ | /* HouseKeeping */ | ||||
TAILQ_HEAD (, alias_link) checkExpire; | TAILQ_HEAD (, alias_link) checkExpire; | ||||
/* Link statistics */ | /* Link statistics */ | ||||
int icmpLinkCount; | int icmpLinkCount; | ||||
int udpLinkCount; | int udpLinkCount; | ||||
int tcpLinkCount; | int tcpLinkCount; | ||||
int pptpLinkCount; | int pptpLinkCount; | ||||
int protoLinkCount; | int protoLinkCount; | ||||
▲ Show 20 Lines • Show All 279 Lines • Show Last 20 Lines |