diff options
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 */ |