[Top][All Lists]

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

[lwip-devel] [patch #6370] Sending to myself

From: Luca Ceresoli
Subject: [lwip-devel] [patch #6370] Sending to myself
Date: Mon, 16 Jun 2008 10:43:56 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv: Gecko/20080404 Firefox/

Follow-up Comment #19, patch #6370 (project lwip):

> I'm not sure if I caught all bugs
> (not that there would be any...:) 
There are. :-[

We are forwarding at the IP level, so we don't prepend any link-level header.
But netif->input() (ethernet_input() for me) requires such a header.

I think netif_poll() should forward up this way:
-      if(netif->input(in, netif) != ERR_OK) {
+      if(ip_input(in, netif) != ERR_OK) {

The same should be in netif_loop_output() (see attached patch) but I have no
threads so I didn't test that.


(file #15851)

Additional Item Attachment:

File name: netif_input.patch              Size:0 KB


Reply to this item at:


  Messaggio inviato con/da Savannah

reply via email to

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