Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 02:15:42 -0800 (PST)
From:      soheil hyeganeh <soheil_has@yahoo.com>
To:        questions@freebsd.org
Subject:   I'm trying to use libz in the kernel to compress outcoming packets for p2p connection and am having troubles
Message-ID:  <20011221101542.38122.qmail@web10104.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
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 <net/zlib.h>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011221101542.38122.qmail>