Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/libalias/alias_local.h
| Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Lines | struct libalias { | ||||
| 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; | ||||
| unsigned int fragmentIdLinkCount; | unsigned int fragmentIdLinkCount; | ||||
| unsigned int fragmentPtrLinkCount; | unsigned int fragmentPtrLinkCount; | ||||
| unsigned int sockCount; | unsigned int sockCount; | ||||
| /* System time in seconds for current packet */ | |||||
| int timeStamp; | |||||
| /* 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 82 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 162 Lines • Show Last 20 Lines | |||||