diff options
author | brian <brian@FreeBSD.org> | 1998-04-19 21:42:07 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-04-19 21:42:07 +0000 |
commit | 182404b2741d5b0d2de788e163aa2b0595d340b0 (patch) | |
tree | adf7bc6bf6fe73ee0112ffe8e0866989b626b5ab /sys/netinet/libalias/alias.h | |
parent | 12bba629029991b4891ee96a822a3990bc9886c7 (diff) | |
download | FreeBSD-src-182404b2741d5b0d2de788e163aa2b0595d340b0.zip FreeBSD-src-182404b2741d5b0d2de788e163aa2b0595d340b0.tar.gz |
o Support a compile-time -DNO_FW_PUNCH for portability
(and those of us that don't want the functionality).
o Don't assume sizeof(long) == 4.
Ok'd by: Charles Mott <cmott@srv.net>
Diffstat (limited to 'sys/netinet/libalias/alias.h')
-rw-r--r-- | sys/netinet/libalias/alias.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/libalias/alias.h b/sys/netinet/libalias/alias.h index 5bec4c9..010db98 100644 --- a/sys/netinet/libalias/alias.h +++ b/sys/netinet/libalias/alias.h @@ -7,7 +7,7 @@ This software is placed into the public domain with no restrictions on its distribution. - $Id$ + $Id: alias.h,v 1.7 1998/01/16 12:56:07 bde Exp $ */ @@ -36,8 +36,10 @@ struct alias_link; extern unsigned int PacketAliasSetMode(unsigned int, unsigned int); +#ifndef NO_FW_PUNCH extern void PacketAliasSetFWBase(unsigned int, unsigned int); +#endif /* Packet Handling */ extern int @@ -150,6 +152,7 @@ extern u_short InternetChecksum(u_short *, int); bit is set after a call to PacketAliasInit(). */ #define PKT_ALIAS_RESET_ON_ADDR_CHANGE 0x20 +#ifndef NO_FW_PUNCH /* 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 @@ -157,6 +160,7 @@ extern u_short InternetChecksum(u_short *, int); attached to that particular alias_link, so when the link goes away so do the hole. */ #define PKT_ALIAS_PUNCH_FW 0x40 +#endif /* Return Codes */ #define PKT_ALIAS_ERROR -1 |