Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/libalias/alias_local.h
Show First 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | struct libalias { | ||||
* 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; | ||||
#endif | #endif | ||||
/* Indicates if a new aliasing link has been created | |||||
* after a call to PacketAliasIn/Out(). */ | |||||
int newDefaultLink; | |||||
#ifndef NO_FW_PUNCH | #ifndef NO_FW_PUNCH | ||||
/* File descriptor to be able to control firewall. | /* File descriptor to be able to control firewall. | ||||
* Opened by PacketAliasSetMode on first setting | * Opened by PacketAliasSetMode on first setting | ||||
* the PKT_ALIAS_PUNCH_FW flag. */ | * the PKT_ALIAS_PUNCH_FW flag. */ | ||||
int fireWallFD; | int fireWallFD; | ||||
/* The first firewall entry free for our use */ | /* The first firewall entry free for our use */ | ||||
int fireWallBaseNum; | int fireWallBaseNum; | ||||
▲ Show 20 Lines • Show All 186 Lines • ▼ Show 20 Lines | |||||
void SetProxyPort(struct alias_link *_lnk, u_short _port); | void SetProxyPort(struct alias_link *_lnk, u_short _port); | ||||
void SetAckModified(struct alias_link *_lnk); | void SetAckModified(struct alias_link *_lnk); | ||||
int GetAckModified(struct alias_link *_lnk); | int GetAckModified(struct alias_link *_lnk); | ||||
int GetDeltaAckIn(u_long, struct alias_link *_lnk); | int GetDeltaAckIn(u_long, struct alias_link *_lnk); | ||||
int GetDeltaSeqOut(u_long, struct alias_link *lnk); | int GetDeltaSeqOut(u_long, struct alias_link *lnk); | ||||
void AddSeq(struct alias_link *lnk, int delta, u_int ip_hl, | void AddSeq(struct alias_link *lnk, int delta, u_int ip_hl, | ||||
u_short ip_len, u_long th_seq, u_int th_off); | u_short ip_len, u_long th_seq, u_int th_off); | ||||
void SetExpire (struct alias_link *_lnk, int _expire); | void SetExpire (struct alias_link *_lnk, int _expire); | ||||
void ClearCheckNewLink(struct libalias *la); | |||||
void SetProtocolFlags(struct alias_link *_lnk, int _pflags); | void SetProtocolFlags(struct alias_link *_lnk, int _pflags); | ||||
int GetProtocolFlags(struct alias_link *_lnk); | int GetProtocolFlags(struct alias_link *_lnk); | ||||
void SetDestCallId(struct alias_link *_lnk, u_int16_t _cid); | void SetDestCallId(struct alias_link *_lnk, u_int16_t _cid); | ||||
#ifndef NO_FW_PUNCH | #ifndef NO_FW_PUNCH | ||||
void PunchFWHole(struct alias_link *_lnk); | void PunchFWHole(struct alias_link *_lnk); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |