08/12/2009 8:52 AM
post35810
|
On Wed, Aug 12, 2009 at 07:49:39AM -0400, Senthil K wrote:
> Hi,
>
> I refered a packet filter wikipage.
>
> In that they given return 1 means stop the packet processing or return 0 means stack will process packet.
>
> return 1 means who will free the mbuffer.
>
> so i try to free the mbuf.
>
> if i m using m_free() in my code it throws warning implicit declaration m_free so it wont allow to mount the packet
filter.
>
> How can i free the mbuffer?
>
> please guide me.
Is this a warning at compile time or link? If it's at
compile just include <sys/mbuf>. m_free() is in io-pkt
itself so if it's at the link phase you need to compile your
module as a dll and this will be resolved from within io-pkt
when your module is dlopened by io-pkt. Also notice that
our drivers pass LDFLAGS+=-Wl,--allow-shlib-undefined in
their makefile to silence any warnings in this area.
-seanb
|
|
|