lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] Quickest way to catch a UDP packet?


From: Bill Auerbach
Subject: RE: [lwip-users] Quickest way to catch a UDP packet?
Date: Fri, 18 Mar 2011 14:44:07 -0400

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: address@hidden [mailto:address@hidden On Behalf Of Chen
Sent: Friday, March 18, 2011 2:05 PM
To: address@hidden
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]