From owner-freebsd-questions Fri Dec 21 2:15:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web10104.mail.yahoo.com (web10104.mail.yahoo.com [216.136.130.54]) by hub.freebsd.org (Postfix) with SMTP id 41F7437B417 for ; Fri, 21 Dec 2001 02:15:42 -0800 (PST) Message-ID: <20011221101542.38122.qmail@web10104.mail.yahoo.com> Received: from [213.29.102.17] by web10104.mail.yahoo.com via HTTP; Fri, 21 Dec 2001 02:15:42 PST Date: Fri, 21 Dec 2001 02:15:42 -0800 (PST) From: soheil hyeganeh Subject: I'm trying to use libz in the kernel to compress outcoming packets for p2p connection and am having troubles To: questions@freebsd.org 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 hi i'm trying to use compress() of the libz in net/ip_output.c i set the flag that use -O -pipe -lz all the files i add this codes after the struct m_buf *m initialization : ..... char * soheilM;(caddr_in) int soheilLen, errSoheil; errSoheil = compress ( soheilM, &soheilLen, m->m_data,m->m_len); if (soheilLen > 0){ m->m_data=soheilM; m->m_len = soheilLen; } .... when the compiler come into this lines it takes some warning and after that : it says "syntax error" after line 141(when my code ends) i don't know why i make the cc -O -pipe -lz .... ip_output.c but it takes these errors on the other side i #include the interfaces of the libz i want to know if it can fixable thanx __________________________________________________ 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