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.