smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.73k stars 414 forks source link

Support for Multiple Network Devices in somltcp #951

Open lhw2002426 opened 2 months ago

lhw2002426 commented 2 months ago

Hello,

I'm new to somltcp and have a question about using multiple network devices (e.g., eth0 + loopback). I noticed that all the examples only use a single device, and from the source code, it appears that each Interface corresponds to only one network device.

Does this mean I need to manage multiple Interfaces myself if I want to use multiple network devices?

Thank you for your help.

rvbcldud commented 1 month ago

I am interested in the answer to this as well.

I believe you may have to create an (Interface, Device) pair for each actual network interface