Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 08:48:38 -0500 (EST)
From:      Matthew Emmerton <matt@gsicomp.on.ca>
To:        sepehr sepehr <freebsdkernellover@yahoo.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: i link the zlib to kernel for compressing data and i got some error
Message-ID:  <Pine.BSF.4.21.0112210845390.3282-100000@xena.gsicomp.on.ca>
In-Reply-To: <20011221130308.97723.qmail@web21201.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0112210845390.3282-100000>