diff options
author | guido <guido@FreeBSD.org> | 2000-01-13 19:01:33 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 2000-01-13 19:01:33 +0000 |
commit | de7edf803aae7f62d86e24ecb9ea3b9413c978a5 (patch) | |
tree | 3275d83a0aa61e098816f380e7e9ec00773ecef0 /sys/netinet/ip_ftp_pxy.c | |
parent | f45fdd3f47eb65e321536ed0dfb9e029ca80a9b8 (diff) | |
download | FreeBSD-src-de7edf803aae7f62d86e24ecb9ea3b9413c978a5.zip FreeBSD-src-de7edf803aae7f62d86e24ecb9ea3b9413c978a5.tar.gz |
Bring over ipfilter kernel sources, including merging the local modifications.
Diffstat (limited to 'sys/netinet/ip_ftp_pxy.c')
-rw-r--r-- | sys/netinet/ip_ftp_pxy.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/ip_ftp_pxy.c b/sys/netinet/ip_ftp_pxy.c index 0600617..3ed1853 100644 --- a/sys/netinet/ip_ftp_pxy.c +++ b/sys/netinet/ip_ftp_pxy.c @@ -1,8 +1,6 @@ /* * Simple FTP transparent proxy for in-kernel use. For use with the NAT * code. - * - * $Id$ * $FreeBSD$ */ #if SOLARIS && defined(_KERNEL) @@ -166,7 +164,7 @@ nat_t *nat; a4 = a1 & 0xff; a1 >>= 24; olen = s - portbuf; - (void) snprintf(newbuf, sizeof(newbuf), "%s %u,%u,%u,%u,%u,%u\r\n", + (void) sprintf(newbuf, "%s %u,%u,%u,%u,%u,%u\r\n", "PORT", a1, a2, a3, a4, a5, a6); nlen = strlen(newbuf); @@ -215,7 +213,7 @@ nat_t *nat; sum2 -= sum1; sum2 = (sum2 & 0xffff) + (sum2 >> 16); - fix_outcksum(&ip->ip_sum, sum2); + fix_outcksum(&ip->ip_sum, sum2, 0); #endif ip->ip_len += inc; } @@ -410,7 +408,7 @@ nat_t *nat; sum2 -= sum1; sum2 = (sum2 & 0xffff) + (sum2 >> 16); - fix_outcksum(&ip->ip_sum, sum2); + fix_outcksum(&ip->ip_sum, sum2, 0); #endif ip->ip_len += inc; } |