Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/libalias/alias_local.h
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
#include <netinet/libalias/alias_sctp.h> | #include <netinet/libalias/alias_sctp.h> | ||||
#else | #else | ||||
#include "alias_sctp.h" | #include "alias_sctp.h" | ||||
#endif | #endif | ||||
/* Sizes of input and output link tables */ | /* Sizes of input and output link tables */ | ||||
#define LINK_TABLE_OUT_SIZE 4001 | #define LINK_TABLE_OUT_SIZE 4001 | ||||
#define LINK_TABLE_IN_SIZE 4001 | #define LINK_TABLE_IN_SIZE 4001 | ||||
#define LINK_PARTIAL_SIZE 401 | |||||
#define GET_ALIAS_PORT -1 | #define GET_ALIAS_PORT -1 | ||||
#define GET_ALIAS_ID GET_ALIAS_PORT | #define GET_ALIAS_ID GET_ALIAS_PORT | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define INET_NTOA_BUF(buf) (buf) | #define INET_NTOA_BUF(buf) (buf) | ||||
#else | #else | ||||
#define INET_NTOA_BUF(buf) (buf), sizeof(buf) | #define INET_NTOA_BUF(buf) (buf), sizeof(buf) | ||||
Show All 10 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) linkPartialIn[LINK_PARTIAL_SIZE]; | |||||
/* HouseKeeping */ | /* HouseKeeping */ | ||||
TAILQ_HEAD (, alias_link) checkExpire; | TAILQ_HEAD (, alias_link) checkExpire; | ||||
/* Link statistics */ | /* Link statistics */ | ||||
unsigned int icmpLinkCount; | unsigned int icmpLinkCount; | ||||
unsigned int udpLinkCount; | unsigned int udpLinkCount; | ||||
unsigned int tcpLinkCount; | unsigned int tcpLinkCount; | ||||
unsigned int pptpLinkCount; | unsigned int pptpLinkCount; | ||||
unsigned int protoLinkCount; | unsigned int protoLinkCount; | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |