Hello,

 

Use LWIP_RAW = 1 and raw_recv to install a hook to see packets before the
stack does (in ip_input).  You can return non-0 to stop lwIP from further
processing of the packet.

 

Bill

 

From: [email protected]
[mailto:[email protected]] On Behalf
Of Chen
Sent: Friday, March 18, 2011 2:05 PM
To: [email protected]
Subject: [lwip-users] Quickest way to catch a UDP packet?

 

Hi all,

In my application, I have both TCP and UDP communication, lwip + freeRTOS
(AVR32 project). If I rely on the thread on freeRTOS, I guess I can see UDP
packets in the order of several ms based on the CPU loads.

I'd like to find the quickest way to pre-examine any UDP packet (I don't
care about UDP or other packets), where is the best place to hook such a
piece of codes to eaversdrop?

Any suggestion?

Thanks,

Chen

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to