⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

handle_ndp

Function handle_ndp 

Source
pub fn handle_ndp(
    src_addr: &Ipv6Address,
    dst_addr: &Ipv6Address,
    data: &[u8],
) -> Result<Option<Vec<u8>>, KernelError>
Expand description

Handle an incoming NDP message.

Processes Neighbor Solicitations, Neighbor Advertisements, Router Solicitations, and Router Advertisements.

Returns an optional response packet (ICMPv6 payload, not wrapped in IPv6).