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

Module icmpv6

Module icmpv6 

Source
Expand description

ICMPv6 protocol implementation

Provides ICMPv6 message handling for IPv6, including echo request/reply (ping6), destination unreachable, packet too big, time exceeded, and integration with NDP for neighbor/router discovery.

Structs§

Icmpv6Header
ICMPv6 message header (4 bytes minimum)
Icmpv6Stats
ICMPv6 statistics

Constants§

ICMPV6_ADDR_UNREACHABLE
Address unreachable
ICMPV6_ADMIN_PROHIBITED
Communication with destination administratively prohibited
ICMPV6_BEYOND_SCOPE
Beyond scope of source address
ICMPV6_DEST_UNREACHABLE
Destination Unreachable
ICMPV6_ECHO_HEADER_SIZE
ICMPv6 echo header size (type + code + checksum + id + seq = 8 bytes)
ICMPV6_ECHO_REPLY
Echo Reply (pong)
ICMPV6_ECHO_REQUEST
Echo Request (ping)
ICMPV6_FRAGMENT_REASSEMBLY_EXCEEDED
Fragment reassembly time exceeded
ICMPV6_HEADER_SIZE
Minimum ICMPv6 header size (type + code + checksum = 4 bytes)
ICMPV6_HOP_LIMIT_EXCEEDED
Hop limit exceeded in transit
ICMPV6_NEIGHBOR_ADVERT
Neighbor Advertisement
ICMPV6_NEIGHBOR_SOLICIT
Neighbor Solicitation
ICMPV6_NO_ROUTE
No route to destination
ICMPV6_PACKET_TOO_BIG
Packet Too Big
ICMPV6_PARAMETER_PROBLEM
Parameter Problem
ICMPV6_PORT_UNREACHABLE
Port unreachable
ICMPV6_ROUTER_ADVERT
Router Advertisement
ICMPV6_ROUTER_SOLICIT
Router Solicitation
ICMPV6_TIME_EXCEEDED
Time Exceeded

Functions§

build_dest_unreachable
Build a Destination Unreachable message.
build_echo_reply
Build an ICMPv6 Echo Reply message.
build_echo_request
Build an ICMPv6 Echo Request message.
build_packet_too_big
Build a Packet Too Big message.
build_time_exceeded
Build a Time Exceeded message.
compute_icmpv6_checksum
Compute ICMPv6 checksum (delegates to ipv6 module).
get_last_echo_reply_seq
Get the last received echo reply sequence number.
handle_icmpv6
Handle an incoming ICMPv6 message.
init
Initialize the ICMPv6 subsystem.
reset_echo_reply_tracker
Reset the echo reply tracker.