From owner-freebsd-questions Fri Dec 21 5:58:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tomts10-srv.bellnexxia.net (tomts10.bellnexxia.net [209.226.175.54]) by hub.freebsd.org (Postfix) with ESMTP id 3E2A637B405 for ; Fri, 21 Dec 2001 05:58:40 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.148.182]) by tomts10-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20011221135839.HJFI26017.tomts10-srv.bellnexxia.net@xena.gsicomp.on.ca>; Fri, 21 Dec 2001 08:58:39 -0500 Received: from localhost (matt@localhost) by xena.gsicomp.on.ca (8.11.1/8.11.1) with ESMTP id fBLDmcQ03319; Fri, 21 Dec 2001 08:48:38 -0500 (EST) (envelope-from matt@xena.gsicomp.on.ca) Date: Fri, 21 Dec 2001 08:48:38 -0500 (EST) From: Matthew Emmerton To: sepehr sepehr Cc: questions@FreeBSD.ORG Subject: Re: i link the zlib to kernel for compressing data and i got some error In-Reply-To: <20011221130308.97723.qmail@web21201.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Instead of compressing packets in the TCP/IP stack, why don't you compress the data in the userland program? You'll get better compression by compressing the data stream at the source than by compressing each individual packet's data. Compressing each packet's data may actually *increase* the amount of data required to be sent, due to compressiong overhead and the characteristics of the packet data you're attempting to compress. -- Matthew Emmerton || matt@gsicomp.on.ca GSI Computer Services || http://www.gsicomp.on.ca On Fri, 21 Dec 2001, sepehr sepehr wrote: > hi > i make the kernel compiler to link the zlib to files > and i use the zlib's func. compress() > for outgoing data and after in net/ip_output.c > (where i use it) it takes synatax error in ip_output.c > and for the function that i used. > > after that i add compress.c to the net/ and add the > compress.c to src/sys/conf/files and compile the > kernel then it again takes a syntax error in > net/compress.c > before compress2 func. > i want to know why > and how i can fix this > and if there is a file that has routines for > compression TCP packets > thanx to freeBSD group&lovers > > > __________________________________________________ > Do You Yahoo!? > Check out Yahoo! Shopping and Yahoo! Auctions for all of > your unique holiday gifts! Buy at http://shopping.yahoo.com > or bid at http://auctions.yahoo.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message