lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Problem using 2 Netifs


From: Funk, Artur
Subject: Re: [lwip-users] Problem using 2 Netifs
Date: Mon, 25 Jun 2012 09:43:16 +0200

Hello Fred,

Interesting question. I didn't ever used two netifs at the same time, but maybe 
you should use different MAC addresses for both concections?

Best regards

Artur


-----Ursprüngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im Auftrag von Fred39
Gesendet: Freitag, 22. Juni 2012 15:21
An: address@hidden
Betreff: Re: [lwip-users] Problem using 2 Netifs


Ok i found the problem, both netifs had similar ip configuration "same subnet" 
which was the problem thus the packets where send to the first netif in the 
list :)

Is this behaviour specified somewhere ? 
Regards


Fred39 wrote:
> 
> Hi LWIP Users,
> 
> I am currently working on a device which has two network interfaces. 
> One from the uC and one over USB which is a virtual network device. My 
> Lwip Version is 1.1.1 i know its old but i am not allowed to change 
> it. Could lwip make problems when 2 netifs are registred? I set my uC 
> netif as default because it uses dhcp/static ip for that i use the 
> global netif_default for it. The virtual netif has a static ip.
> My Pseudo code looks like this:
> 
> 1.    init_lwip
> 2.    HW init uC
> 3.    netif_add(uCnetif,tcpip_input)
> 4.    HW_init virtual device
> 5.    netif_add(virtualnetif,tcpip_input) 
> 
> In the global variable netif_list is see both of the netifs with 
> correct settings. I only set the uC netif as default, because for this 
> i use different protocol for IP address (DHCP or static) and i set IP 
> through my application thread in a thread save way :)
> 
> I am now facing a problem that my upperlayer tasks using tcp or udp 
> are not working when both interfaces are added. If only the uC netif 
> is initialized it works.
> When 2 netifs over Wireshark is see that data is send to my device but 
> i get a SACK_PERM=1, the device is not recveiving the data.
> Is this phenomen familiar to somebody? Should it be possible to use 2 
> netifs in the old lwip 1.1.1 ?
> 
> Where could i start searching for the problem.
> 
> Regards
> 

--
View this message in context: 
http://old.nabble.com/Problem-using-2-Netifs-tp34054004p34054340.html
Sent from the lwip-users mailing list archive at Nabble.com.


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



reply via email to

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