diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1998-01-09 21:13:35 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1998-01-09 21:13:35 +0000 |
| commit | 8ddc51bc8b74b4809150b3129d16f8c63517fd84 (patch) | |
| tree | 8178e983ae579f89c411cdc01b9be0687790c5f1 /lib/libalias/alias_ftp.c | |
| parent | 50dbd3f6314bbe7a4eb3c8173efde74b22e12932 (diff) | |
Notes
Diffstat (limited to 'lib/libalias/alias_ftp.c')
| -rw-r--r-- | lib/libalias/alias_ftp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libalias/alias_ftp.c b/lib/libalias/alias_ftp.c index e03c04bc9a48..df6d02c1d3db 100644 --- a/lib/libalias/alias_ftp.c +++ b/lib/libalias/alias_ftp.c @@ -32,6 +32,8 @@ Very minor changes to conform with local/global/function naming conventions withing the packet alising module. + + See HISTORY file for record of revisions. */ /* Includes */ @@ -150,6 +152,9 @@ NewFtpPortCommand(struct ip *pip, int slen, hlen, tlen, dlen; struct tcphdr *tc; +/* Punch hole in firewall */ + PunchFWHole(ftp_link); + /* Calculate data length of TCP packet */ tc = (struct tcphdr *) ((char *) pip + (pip->ip_hl << 2)); hlen = (pip->ip_hl + tc->th_off) << 2; @@ -167,7 +172,7 @@ NewFtpPortCommand(struct ip *pip, /* Decompose alias address into quad format */ alias_address = GetAliasAddress(link); - ptr = (char *) &alias_address; + ptr = (u_char *) &alias_address.s_addr; a1 = *ptr++; a2=*ptr++; a3=*ptr++; a4=*ptr; /* Decompose alias port into pair format */ |
