Sorry, I another problems want to ask.
I already know what codes cause eth1's(xnetif_1) gateway be 255.255.0.0,
that is a function reads ini file error, so it can reads a right gateway
192.168.191.254 after I write a correct function.
Next, I trace packet when I ping eth1(192.168.191.220), the
To answer a ping to eth0 coming from eth1, lwIP has to actually route
the response. Is it capable of doing that or will it send it to the
gateway (which does not exist) ?
Have run Wireshark on your PC and checked if your lwIP device is
actually sending something ?
Have you followed the packet flow
To answer a ping to eth0 coming from eth1, lwIP has to actually route
the response. Is it capable of doing that or will it send it to the
gateway (which does not exist) ?
Have run Wireshark on your PC and checked if your lwIP device is
actually sending something ?
Have you followed the packet
Hi Eason,
There is no route table inside lwIP. About the out packet, lwIP will search
the interface according to ip addr/mask of each ethernet interface. If no
result, the packet will be sent to the default interface.
Therefore, please let the two interfaces in different sub-network, for
example,
Hi,
On Fri, May 08, 2015 at 09:51:41AM -0300, Sergio R. Caprile wrote:
I beg your pardon, I don't understand what you are doing and what you
are trying to do.
I don't think you can netif_set_default() two interfaces, can you ? Two
defaults ?
The last takes precedence, this is a global
Hi Sergio, forgive my worst codes and poor lwip background, I study it for
only two weeks.
My boss assign me a strange project, he wants lwip doing a simple job as a
router, and this device have two ethernet ports, but it has only one network
interface card, the device maybe route for different
Eason wrote:
My boss assign me a strange project, he wants lwip doing a simple job as a
router, and this device have two ethernet ports, but it has only one network
interface card, the device maybe route for different network segment, eg:
192.168.1.2 send data to 172.16.0.101
I see what you're
I beg your pardon, I don't understand what you are doing and what you
are trying to do.
I don't think you can netif_set_default() two interfaces, can you ? Two
defaults ?
And btw, lwIP won't route, or at least it was not designed to do it and
has a minimum support for it. Last time I checked
Hi Simon, I have some questions.
I add the second interface(struct netif* xnetif_1) by using
netif_add(xnetif_1, ipaddr, netmask, gw, NULL, ethernetif_init,
tcpip_input);,
and I don't set it to default interface, isn't it? No metter what I add, I
just set default interface on first
Hi, I have some problems about lwip with two ethernet ports and it only has
one network interface card(NIC).
I handle a project that want to use one NIC to support two ethernet ports,
I add the second netif and initialize it.
struct netif* xnetif_0;
struct netif* xnetif_1;
ip_addr_t
10 matches
Mail list logo