06/30/2009 9:41 AM
post32826
|
Hi,
i have downloaded the lsm-packfil code and compiled,load using mount command.
if any arp packets comes then the packet filter invokes the input_hook function and prints the number bytes received
and arp packet.
But if i send any other packets using packEth,its not received in the packet filter.
please find the below function
static int input_hook( void *arg, struct mbuf **m, struct ifnet *ifp, int dir ) {
in_bytes += ( *m )->m_len;
for(i=0;i<=(*m)->m_len;i++)
{
SLOG("[%x]\t",(*m)->m_data[i]);
}
return 0;
}
Thanks and Regards
K.Senthil
|
|
|