diff options
author | brian <brian@FreeBSD.org> | 1998-06-06 21:52:37 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-06 21:52:37 +0000 |
commit | e56ba1efb9b39b456e4a019b12c8359c640be8d3 (patch) | |
tree | ba2d835151f5833a2a95755dd72a64281c2cc700 /lib | |
parent | 4f3d4b5dd9ddb42035f886c004060ef5a2cb2b45 (diff) | |
download | FreeBSD-src-e56ba1efb9b39b456e4a019b12c8359c640be8d3.zip FreeBSD-src-e56ba1efb9b39b456e4a019b12c8359c640be8d3.tar.gz |
Don't call PunchFWHole() ifdef NO_FW_PUNCH
Pointed out by: "Steve Sims" <SimsS@IBM.Net>
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 */ |