Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Reg - Packet filter: Page 1 of 9 (9 Items)
   
Reg - Packet filter  
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