ICMPv6 error messages

ICMPv6 error message handling and creation. More...

Detailed Description

ICMPv6 error message handling and creation.

Files

file  error.h
 ICMPv6 error message definitions.
 

Functions

void gnrc_icmpv6_error_dst_unr_send (uint8_t code, const gnrc_pktsnip_t *orig_pkt)
 Sends an ICMPv6 destination unreachable message for sending. More...
 
void gnrc_icmpv6_error_pkt_too_big_send (uint32_t mtu, const gnrc_pktsnip_t *orig_pkt)
 Sends an ICMPv6 packet too big message for sending. More...
 
void gnrc_icmpv6_error_time_exc_send (uint8_t code, const gnrc_pktsnip_t *orig_pkt)
 Sends an ICMPv6 time exceeded message for sending. More...
 
void gnrc_icmpv6_error_param_prob_send (uint8_t code, void *ptr, const gnrc_pktsnip_t *orig_pkt)
 Sends an ICMPv6 parameter problem message for sending. More...
 

Function Documentation

◆ gnrc_icmpv6_error_dst_unr_send()

void gnrc_icmpv6_error_dst_unr_send ( uint8_t  code,
const gnrc_pktsnip_t orig_pkt 
)

Sends an ICMPv6 destination unreachable message for sending.

Precondition
orig_pkt contains a packet snip of type GNRC_NETTYPE_IPV6
Note
Won't send if source address of orig_pkt is unspecified or multicast
Parameters
[in]codeThe code for the message.
[in]orig_pktThe invoking packet.

◆ gnrc_icmpv6_error_param_prob_send()

void gnrc_icmpv6_error_param_prob_send ( uint8_t  code,
void *  ptr,
const gnrc_pktsnip_t orig_pkt 
)

Sends an ICMPv6 parameter problem message for sending.

Precondition
orig_pkt is in receive order.
orig_pkt contains a packet snip of type GNRC_NETTYPE_IPV6
Note
Won't send if source address of orig_pkt is unspecified or multicast
Parameters
[in]codeThe code for the message.
[in]ptrPointer to the erroneous octet in orig_pkt.
[in]orig_pktThe invoking packet.

◆ gnrc_icmpv6_error_pkt_too_big_send()

void gnrc_icmpv6_error_pkt_too_big_send ( uint32_t  mtu,
const gnrc_pktsnip_t orig_pkt 
)

Sends an ICMPv6 packet too big message for sending.

Precondition
orig_pkt contains a packet snip of type GNRC_NETTYPE_IPV6
Note
Won't send if source address of orig_pkt is unspecified or multicast
Parameters
[in]mtuThe maximum transission unit of the next-hop link.
[in]orig_pktThe invoking packet.

◆ gnrc_icmpv6_error_time_exc_send()

void gnrc_icmpv6_error_time_exc_send ( uint8_t  code,
const gnrc_pktsnip_t orig_pkt 
)

Sends an ICMPv6 time exceeded message for sending.

Precondition
orig_pkt contains a packet snip of type GNRC_NETTYPE_IPV6
Note
Won't send if source address of orig_pkt is unspecified or multicast
Parameters
[in]codeThe code for the message.
[in]orig_pktThe invoking packet.