diff options
author | darrenr <darrenr@FreeBSD.org> | 2000-10-29 08:07:08 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 2000-10-29 08:07:08 +0000 |
commit | 77a62e2a58642d4f2e31e9cfc354994062d9777b (patch) | |
tree | e416fe3d7a717216f4b6a27a302dec6d07f42d42 /contrib/ipfilter/ip_ftp_pxy.c | |
parent | 7595d5ffce4a14f32ac605d21cbd61fbe85057e2 (diff) | |
download | FreeBSD-src-77a62e2a58642d4f2e31e9cfc354994062d9777b.zip FreeBSD-src-77a62e2a58642d4f2e31e9cfc354994062d9777b.tar.gz |
Import IP Filter 3.4.13 into src/contrib, not src/contirb
Diffstat (limited to 'contrib/ipfilter/ip_ftp_pxy.c')
-rw-r--r-- | contrib/ipfilter/ip_ftp_pxy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/ipfilter/ip_ftp_pxy.c b/contrib/ipfilter/ip_ftp_pxy.c index ffa7c1b..653bbfe 100644 --- a/contrib/ipfilter/ip_ftp_pxy.c +++ b/contrib/ipfilter/ip_ftp_pxy.c @@ -2,7 +2,7 @@ * Simple FTP transparent proxy for in-kernel use. For use with the NAT * code. * - * $Id: ip_ftp_pxy.c,v 2.7.2.17 2000/10/19 15:40:40 darrenr Exp $ + * $Id: ip_ftp_pxy.c,v 2.7.2.18 2000/10/27 14:02:10 darrenr Exp $ */ #if SOLARIS && defined(_KERNEL) extern kmutex_t ipf_rw; @@ -252,6 +252,7 @@ int dlen; tcp2->th_dport = 0; /* XXX - don't specify remote port */ fi.fin_data[0] = ntohs(sp); fi.fin_data[1] = 0; + fi.fin_dlen = sizeof(*tcp2); fi.fin_dp = (char *)tcp2; swip = ip->ip_src; ip->ip_src = nat->nat_inip; @@ -467,6 +468,7 @@ int dlen; tcp2->th_sport = 0; /* XXX - fake it for nat_new */ tcp2->th_off = 5; fi.fin_data[0] = a5 << 8 | a6; + fi.fin_dlen = sizeof(*tcp2); tcp2->th_dport = htons(fi.fin_data[0]); fi.fin_data[1] = 0; fi.fin_dp = (char *)tcp2; |