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 /lib/libalias/alias.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 'lib/libalias/alias.h')
-rw-r--r-- | lib/libalias/alias.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/libalias/alias.h b/lib/libalias/alias.h index 50d8056..9d1f755 100644 --- a/lib/libalias/alias.h +++ b/lib/libalias/alias.h @@ -26,11 +26,17 @@ struct alias_link; PacketAliasInit(void); extern void + PacketAliasUninit(void); + + extern void PacketAliasSetAddress(struct in_addr); extern unsigned int PacketAliasSetMode(unsigned int, unsigned int); + extern void + PacketAliasSetFWBase(unsigned int, unsigned int); + /* Packet Handling */ extern int PacketAliasIn(char *, int maxpacketsize); @@ -136,6 +142,14 @@ extern u_short InternetChecksum(u_short *, int); bit is set after a call to PacketAliasInit(). */ #define PKT_ALIAS_RESET_ON_ADDR_CHANGE 0x20 +/* If PKT_ALIAS_PUNCH_FW is set, active FTP and IRC DCC connections + will create a 'hole' in the firewall to allow the transfers to + work. Where (IPFW "line-numbers") the hole is created is + controlled by PacketAliasSetFWBase(base, size). The hole will be + attached to that particular alias_link, so when the link goes away + so do the hole. */ +#define PKT_ALIAS_PUNCH_FW 0x40 + /* Return Codes */ #define PKT_ALIAS_ERROR -1 #define PKT_ALIAS_OK 1 @@ -143,8 +157,5 @@ extern u_short InternetChecksum(u_short *, int); #define PKT_ALIAS_UNRESOLVED_FRAGMENT 3 #define PKT_ALIAS_FOUND_HEADER_FRAGMENT 4 -#undef __libalias_version -#define __libalias_version "2.4" - #endif /*lint -restore */ |