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§
Sourcefn handle_neighbor_probe(
&mut self,
bindings_ctx: &mut BC,
device_id: &Self::DeviceId,
neighbor: SpecifiedAddr<I::Addr>,
link_addr: &[u8],
)
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.
Sourcefn handle_neighbor_confirmation(
&mut self,
bindings_ctx: &mut BC,
device_id: &Self::DeviceId,
neighbor: SpecifiedAddr<I::Addr>,
link_addr: &[u8],
flags: ConfirmationFlags,
)
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.
Sourcefn flush_neighbor_table(
&mut self,
bindings_ctx: &mut BC,
device_id: &Self::DeviceId,
)
fn flush_neighbor_table( &mut self, bindings_ctx: &mut BC, device_id: &Self::DeviceId, )
Clears the neighbor table.