diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libalias/alias_ftp.c | 2 | ||||
-rw-r--r-- | lib/libalias/alias_irc.c | 2 | ||||
-rw-r--r-- | lib/libalias/alias_local.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/libalias/alias_ftp.c b/lib/libalias/alias_ftp.c index df6d02c..c6d449d 100644 --- a/lib/libalias/alias_ftp.c +++ b/lib/libalias/alias_ftp.c @@ -152,8 +152,10 @@ NewFtpPortCommand(struct ip *pip, int slen, hlen, tlen, dlen; struct tcphdr *tc; +#ifndef NO_FW_PUNCH /* Punch hole in firewall */ PunchFWHole(ftp_link); +#endif /* Calculate data length of TCP packet */ tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)); diff --git a/lib/libalias/alias_irc.c b/lib/libalias/alias_irc.c index 73a02e5..910e934 100644 --- a/lib/libalias/alias_irc.c +++ b/lib/libalias/alias_irc.c @@ -223,8 +223,10 @@ lFOUND_CTCP: struct in_addr alias_address; /* Address from aliasing */ u_short alias_port; /* Port given by aliasing */ +#ifndef NO_FW_PUNCH /* Generate firewall hole as appropriate */ PunchFWHole(dcc_link); +#endif alias_address = GetAliasAddress(link); iCopy += snprintf(&newpacket[iCopy], diff --git a/lib/libalias/alias_local.h b/lib/libalias/alias_local.h index ae01390..16d0aaa 100644 --- a/lib/libalias/alias_local.h +++ b/lib/libalias/alias_local.h @@ -78,7 +78,9 @@ int GetDeltaSeqOut(struct ip *, struct alias_link *); void AddSeq(struct ip *, struct alias_link *, int); void SetExpire(struct alias_link *, int); void ClearCheckNewLink(void); +#ifndef NO_FW_PUNCH void PunchFWHole(struct alias_link *); +#endif /* Housekeeping function */ |