On Sun, Oct 7, 2018 at 11:52 AM goldsimon <goldsi...@gmx.de> wrote: > > > > Ranran wrote: > >On Thu, Oct 4, 2018 at 9:28 PM goldsi...@gmx.de <goldsi...@gmx.de> > >wrote: > >> > >> On 04.10.2018 17:14, Ranran wrote: > >> > Does lwip support using multiple ports (physical interface) ? > >> > >> Yes. Do you want a single IP address or each netif with its own IP? > >> For a single IP address, you need something like a switch (see > >> bridgeif.c for a start). > >> > > > >I need to have each netif with its own IP. > > That's no problem. You only might get routing problems when the two netifs > are in the same subnet. > > >> > Is there any example showing how we should configure more than one > >port? > >> > >> That depends on the above question. > >> > >Is there a simple example for multiple netif each with itw own IP ? > > No. Just call netif_add etc. for each netif. >
I understand. Should I than do bind to a specific ip address (according to netif), in order to bind the socket to the netif interface? Thank you, ranran > > Simon > > _______________________________________________ > lwip-users mailing list > lwip-users@nongnu.org > https://lists.nongnu.org/mailman/listinfo/lwip-users _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users