lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Callback when get any IP or ICMP packet?


From: Simon Goldschmidt
Subject: Re: [lwip-users] Callback when get any IP or ICMP packet?
Date: Sat, 8 Oct 2011 10:51:38 +0200

 narke <address@hidden> wrote:

> Could you please shortly hint me how to do it using raw pcb?  Many thanks!

RAW pcbs are used to send/receive IP packets and implement other transport 
protocols on it. For example, the ping example app in contrib uses a raw pcb or 
socket to send ICMP requests and receive responses. You can find out more about 
that by examining the ping source code.
> 
>> 

On RX, when using a raw pcb, you can tell lwIP wether you handled the packet 
(called "eat" it) or pass it on to the rest of the stack. When using a raw 
socket, you always receive a copy of the packet.

Simon


reply via email to

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