[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] Examples don't set the Loopback Interface to "up", so L
From: |
Goldschmidt Simon |
Subject: |
RE: [lwip-users] Examples don't set the Loopback Interface to "up", so Loopback won't work. |
Date: |
Thu, 21 Jun 2007 08:47:05 +0200 |
> I don't have a "real interface" on my lwIP port, so I'm
> trying to bounce packets off an echo server on the Loopback port.
>
> The code is failing in ip_input() on the test for:
>
> /* interface is up and configured? */
> if ((netif_is_up(netif)) && (!ip_addr_isany(&(netif->ip_addr))))
>
> As far as I can tell, nothing in the code and nothing in any
> of the supplied contrib/ports/* (including the ones that
> create a Loopback
> Interface) ever call netif_set_up() on it.
>
> Am I missing something, or did the "(netif_is_up(netif))"
> check get added to ip_input() after the last update of the
> example ports, and nobody has tested them recently?
No, you're not missing anything. At least not for the msvc6 port...
I've never tested a loopback connection with that port though,
only on my embedded target, and I set it up there.
I'll change that.
Simon