lwip-devel
[Top][All Lists]
Advanced

[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:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

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.

Luca


(file #15851)
    _______________________________________________________

Additional Item Attachment:

File name: netif_input.patch              Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6370>

_______________________________________________
  Messaggio inviato con/da Savannah
  http://savannah.nongnu.org/





reply via email to

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