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 interface(struct netif* xnetif_0).

In ip_input(), it forwards packets to correct interface if the packets are
not for currently interface, so I shouldn't edit any other codes? Or designe
a routing table?



--
View this message in context: 
http://lwip.100.n7.nabble.com/Lwip-with-two-ethernet-ports-tp24405p24420.html
Sent from the lwip-users mailing list archive at Nabble.com.

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to