Trait netstack3_ip::nud::NudIpHandler

source ·
pub trait NudIpHandler<I: Ip, BC>: DeviceIdContext<AnyDevice> {
    // Required methods
    fn handle_neighbor_probe(
        &mut self,
        bindings_ctx: &mut BC,
        device_id: &Self::DeviceId,
        neighbor: SpecifiedAddr<I::Addr>,
        link_addr: &[u8],
    );
    fn handle_neighbor_confirmation(
        &mut self,
        bindings_ctx: &mut BC,
        device_id: &Self::DeviceId,
        neighbor: SpecifiedAddr<I::Addr>,
        link_addr: &[u8],
        flags: ConfirmationFlags,
    );
    fn flush_neighbor_table(
        &mut self,
        bindings_ctx: &mut BC,
        device_id: &Self::DeviceId,
    );
}
Expand description

An implementation of NUD for the IP layer.

Required Methods§

source

fn handle_neighbor_probe( &mut self, bindings_ctx: &mut BC, device_id: &Self::DeviceId, neighbor: SpecifiedAddr<I::Addr>, link_addr: &[u8], )

Handles an incoming neighbor probe message.

For IPv6, this can be an NDP Neighbor Solicitation or an NDP Router Advertisement message.

source

fn handle_neighbor_confirmation( &mut self, bindings_ctx: &mut BC, device_id: &Self::DeviceId, neighbor: SpecifiedAddr<I::Addr>, link_addr: &[u8], flags: ConfirmationFlags, )

Handles an incoming neighbor confirmation message.

For IPv6, this can be an NDP Neighbor Advertisement.

source

fn flush_neighbor_table( &mut self, bindings_ctx: &mut BC, device_id: &Self::DeviceId, )

Clears the neighbor table.

Implementors§