Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/libalias/alias_local.h
| Show First 20 Lines • Show All 88 Lines • ▼ Show 20 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]; | ||||
| /* HouseKeeping */ | |||||
| 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; | ||||
| int fragmentIdLinkCount; | int fragmentIdLinkCount; | ||||
| int fragmentPtrLinkCount; | int fragmentPtrLinkCount; | ||||
| int sockCount; | int sockCount; | ||||
| /* Index to chain of link table being inspected for old links */ | /* Index to chain of link table being inspected for old links */ | ||||
| int cleanupIndex; | int cleanupIndex; | ||||
| /* System time in seconds for current packet */ | |||||
| int timeStamp; | |||||
| /* Last time IncrementalCleanup() was called */ | |||||
| int lastCleanupTime; | |||||
| /* If equal to zero, DeleteLink() | /* If equal to zero, DeleteLink() | ||||
| * will not remove permanent links */ | * will not remove permanent links */ | ||||
| int deleteAllLinks; | int deleteAllLinks; | ||||
| /* log descriptor */ | /* log descriptor */ | ||||
| #ifdef _KERNEL | #ifdef _KERNEL | ||||
| char *logDesc; | char *logDesc; | ||||
| #else | #else | ||||
| FILE *logDesc; | FILE *logDesc; | ||||
| ▲ Show 20 Lines • Show All 85 Lines • ▼ Show 20 Lines | do { \ | ||||
| } else { \ | } else { \ | ||||
| acc = (acc >> 16) + (acc & 0xffff); \ | acc = (acc >> 16) + (acc & 0xffff); \ | ||||
| acc += acc >> 16; \ | acc += acc >> 16; \ | ||||
| cksum = (u_short) acc; \ | cksum = (u_short) acc; \ | ||||
| } \ | } \ | ||||
| } while (0) | } while (0) | ||||
| /* Prototypes */ | /* Prototypes */ | ||||
| /* System time in seconds for current packet */ | |||||
| extern int LibAliasTime; | |||||
| /* | /* | ||||
| * SctpFunction prototypes | * SctpFunction prototypes | ||||
| * | * | ||||
| */ | */ | ||||
| void AliasSctpInit(struct libalias *la); | void AliasSctpInit(struct libalias *la); | ||||
| void AliasSctpTerm(struct libalias *la); | void AliasSctpTerm(struct libalias *la); | ||||
| int SctpAlias(struct libalias *la, struct ip *ip, int direction); | int SctpAlias(struct libalias *la, struct ip *ip, int direction); | ||||
| ▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines | |||||