lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Netifs routing


From: Norberto R. de Goes Jr.
Subject: Re: [lwip-users] Netifs routing
Date: Thu, 25 Feb 2016 09:15:00 -0300

Sorry, my explanation was not good. 
Really I have a VM running an OS (Linux) and lwIP running inside that. 
Please, more details in picture attached.

I have been investigating  and I think that the problem is associated to PPP netif netmask (ever 255.255.255.255). Please, see the "get_mask" function  and "netif_add" call both codes in the "lwip/src/netif/ppp/ppp.c" file.
Thus, the "ip4_route" function does not match the appropriate netif, in this case the netif-1, and returns the default-netif (netif-0, associated to eth0). Then the outgoing packets are forwarding to eth and not to serial. When the client-echo is run in VM#0 the all works fine because the match happens.

Is it correct?

Thanks.
Norberto Goes


2016-02-24 16:02 GMT-03:00 address@hidden <address@hidden>:
Sergio R. Caprile wrote:
Do you actually have a VM running lwIP ???
[..] please enlighten me on how you have lwIP running by itself on a VM.

That would be fun. You "just" need to write a driver for one of the NICs supported by VMWare and somehow get a time base :-)

Simon


_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users



--
Norberto R. de Goes Jr.
CPqD - DRC
Tel.: +55 19 3705-4241 / Fax: +55 19 3705-6125
address@hidden
www.cpqd.com.br


Attachment: setup_eth_ppp.jpg
Description: JPEG image


reply via email to

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