lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] two logical ethernet interfaces on the same physical port?


From: Kamil Khoury
Subject: [lwip-devel] two logical ethernet interfaces on the same physical port?
Date: Thu, 14 Jun 2018 14:51:24 +0200

Hi,

My application requires having two logical Ethernet interfaces on the same physical port (as shown in the image).



I'm not sure if I did the right thing but I added the two interfaces using netif_add () in lwip.c file and set both of the interfaces up.

netif_add () automatically provides a unique interface num which make it easy for me to choose the logical interface I want to use for transmission. However, at the receiver, I could not figure out how to choose the logical interface that should handle the received message. I'm also not sure if this is doable because somehow it doesn't make sense to choose the reception interface after receiving the message. am I correct? if yes, what can I do to define two different Ethernet streams or traffic classes on the same port?

Thanks.

reply via email to

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