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

handle_icmpv6

Function handle_icmpv6 

Source
pub fn handle_icmpv6(
    src: &Ipv6Address,
    dst: &Ipv6Address,
    data: &[u8],
) -> Result<Option<Vec<u8>>, KernelError>
Expand description

Handle an incoming ICMPv6 message.

Dispatches to the appropriate handler based on message type:

  • Echo Request -> builds Echo Reply
  • NDP messages -> delegates to ipv6::handle_ndp
  • Error messages -> logs and drops (informational for now)

Returns an optional response packet to send back (fully wrapped in IPv6).