From owner-freebsd-doc Sun Dec 16 8:52:31 2001 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.dev.itouchnet.net (devco.net [196.15.188.2]) by hub.freebsd.org (Postfix) with ESMTP id ABE6137B41B for ; Sun, 16 Dec 2001 08:52:27 -0800 (PST) Received: from nobody by mx1.dev.itouchnet.net with scanned_ok (Exim 3.33 #2) id 16FeY6-0006yF-00 for freebsd-doc@freebsd.org; Sun, 16 Dec 2001 18:54:02 +0200 Received: from shell.devco.net ([196.15.188.7]) by mx1.dev.itouchnet.net with esmtp (Exim 3.33 #2) id 16FeY4-0006xu-00; Sun, 16 Dec 2001 18:54:00 +0200 Received: from bvi by shell.devco.net with local (Exim 3.33 #4) id 16FebE-000AeI-00; Sun, 16 Dec 2001 18:57:16 +0200 Date: Sun, 16 Dec 2001 18:57:16 +0200 From: Barry Irwin To: soheil hyeganeh Cc: freebsd-question@freebsd.org, freebsd-doc@freebsd.org Subject: Re: where is the implementation of compress() in /usr/src/sys/net/zlib.h Message-ID: <20011216185716.B30577@itouchlabs.com> References: <20011216151043.17562.qmail@web10104.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011216151043.17562.qmail@web10104.mail.yahoo.com>; from soheil_has@yahoo.com on Sun, Dec 16, 2001 at 07:10:43AM -0800 X-Checked: This message has been scanned for any virusses and unauthorized attachments. X-iScan-ID: 26795-1008521641-53763@mx1.dev.itouchnet.net version $Name: REL_2_0_2 $ Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun 2001-12-16 (07:10), soheil hyeganeh wrote: > where can i find the implementation of the > compress ( Bytef * , long *, Bytef * , long) in the > /usr/src/sys/net/zlib.h > it is not in the zlib.c > but in standard c zlib lib. we can use cc -lz and use > the compress() func. > how can i use the compress() func. in the source code > of the kernel (BSD 4.4) not Directly pertaining to your question, but if you are wanting to do compression on IP payloads, have a look at the IPCOMP suppot which is covered by the KAME IPSEC/IPv6 Stack under bsd. man setkey(8) and have a read of that wrt setting up compression between hosts. Barry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message