Skip to main content

create_interface

Function create_interface 

Source
pub fn create_interface(
    device: &mut SmoltcpDevice,
    config: &PollLoopConfig,
) -> Interface
Expand description

Create and configure the smoltcp Interface.

The interface is configured as the gateway: it owns the gateway IP addresses and responds to ARP/NDP for them. any_ip mode is enabled so smoltcp accepts traffic destined for arbitrary remote IPs (not just the gateway), combined with default routes.