Re: Switch between network interfaces during runtime (Offloaded modem/Ethernet) #stm32 #driver #ethernet #networking #modem
Jukka Rissanen
Hi John, do you need both interfaces be up all the time? If you do not, then simplest way is to take the other interface down. The stack selects the network interface according to destination IP address. If you do not have specific routes set, then default network interface is selected. The default interface select function can be found in subsys/net/ip/net_if.c:net_if_get_default(), it is not very smart and as you noticed it selects offline interface over the ethernet one. Some more intelligence could be created there. Patches are welcome if you want to investigate this further. Cheers, Jukka
On Wed, 2020-11-25 at 06:06 -0800, johnnyboy_theUnixSlayer@... wrote: Hi Zephyr Users,
|
|