diff options
author | eivind <eivind@FreeBSD.org> | 1998-01-09 21:13:35 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-01-09 21:13:35 +0000 |
commit | 781f5bff105e2b341e76efe04ea322b2c9497ca8 (patch) | |
tree | 8444286dbbb89a371acf65fe1468b1a998a99e8c /sys/netinet/libalias/alias_local.h | |
parent | 97367c5e32c06125a0fe56b5f85facbb1dd625ab (diff) | |
download | FreeBSD-src-781f5bff105e2b341e76efe04ea322b2c9497ca8.zip FreeBSD-src-781f5bff105e2b341e76efe04ea322b2c9497ca8.tar.gz |
Teach libalias to work with IPFW firewalls (controlled by a flag).
Obtained from: Yes development tree (+ 10 lines of patches from
Charles Mott, original libalias author)
Diffstat (limited to 'sys/netinet/libalias/alias_local.h')
-rw-r--r-- | sys/netinet/libalias/alias_local.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/netinet/libalias/alias_local.h b/sys/netinet/libalias/alias_local.h index d71c80a..ba5f31f 100644 --- a/sys/netinet/libalias/alias_local.h +++ b/sys/netinet/libalias/alias_local.h @@ -12,6 +12,8 @@ <updated several times by original author and Eivind Eiklund> */ +#ifndef ALIAS_LOCAL_H +#define ALIAS_LOCAL_H extern int packetAliasMode; @@ -53,7 +55,6 @@ FindOriginalAddress(struct in_addr); struct in_addr FindAliasAddress(struct in_addr); - /* External data access/modification */ void GetFragmentAddr(struct alias_link *, struct in_addr *); void SetFragmentAddr(struct alias_link *, struct in_addr); @@ -77,6 +78,8 @@ int GetDeltaSeqOut(struct ip *, struct alias_link *); void AddSeq(struct ip *, struct alias_link *, int); void SetExpire(struct alias_link *, int); void ClearCheckNewLink(void); +void PunchFWHole(struct alias_link *); + /* Housekeeping function */ void HouseKeeping(void); @@ -86,8 +89,11 @@ void HouseKeeping(void); void AliasHandleFtpOut(struct ip *, struct alias_link *, int); void AliasHandleIrcOut(struct ip *pip, struct alias_link *link, int maxsize ); -/* Log file control */ -void InitPacketAliasLog(void); -void UninitPacketAliasLog(void); +enum alias_tcp_state { + ALIAS_TCP_STATE_NOT_CONNECTED, + ALIAS_TCP_STATE_CONNECTED, + ALIAS_TCP_STATE_DISCONNECTED +}; /*lint -restore */ +#endif /* defined(ALIAS_LOCAL_H) */ |