ICMPv6 error messages

ICMPv6 error message handling and creation. More...

Detailed Description

Files

file  error.h
 ICMPv6 error message definitions.
 

Functions

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

Function Documentation

◆ gnrc_icmpv6_error_dst_unr_build()

gnrc_pktsnip_t* gnrc_icmpv6_error_dst_unr_build ( uint8_t  code,
gnrc_pktsnip_t orig_pkt 
)
Parameters
[in]codeThe code for the message
See also
net/icmpv6.h.
Parameters
[in]orig_pktThe invoking packet.
Returns
The destination unreachable message on success.
NULL, on failure.

◆ gnrc_icmpv6_error_dst_unr_send()

static void gnrc_icmpv6_error_dst_unr_send ( uint8_t  code,
gnrc_pktsnip_t orig_pkt 
)
inlinestatic
Parameters
[in]codeThe code for the message
See also
net/icmpv6.h.
Parameters
[in]orig_pktThe invoking packet.

Definition at line 88 of file error.h.

◆ gnrc_icmpv6_error_param_prob_build()

gnrc_pktsnip_t* gnrc_icmpv6_error_param_prob_build ( uint8_t  code,
void *  ptr,
gnrc_pktsnip_t orig_pkt 
)
Parameters
[in]codeThe code for the message
See also
net/icmpv6.h.
Parameters
[in]ptrPointer to the errorneous octet in orig_pkt.
[in]orig_pktThe invoking packet.
Returns
The parameter problem message on success.
NULL, on failure.

◆ gnrc_icmpv6_error_param_prob_send()

static void gnrc_icmpv6_error_param_prob_send ( uint8_t  code,
void *  ptr,
gnrc_pktsnip_t orig_pkt 
)
inlinestatic
Parameters
[in]codeThe code for the message
See also
net/icmpv6.h.
Parameters
[in]ptrPointer to the errorneous octet in orig_pkt.
[in]orig_pktThe invoking packet.

Definition at line 149 of file error.h.

◆ gnrc_icmpv6_error_pkt_too_big_build()

gnrc_pktsnip_t* gnrc_icmpv6_error_pkt_too_big_build ( uint32_t  mtu,
gnrc_pktsnip_t orig_pkt 
)
Parameters
[in]mtuThe maximum transission unit of the next-hop link.
[in]orig_pktThe invoking packet.
Returns
The packet too big message on success.
NULL, on failure.

◆ gnrc_icmpv6_error_pkt_too_big_send()

static void gnrc_icmpv6_error_pkt_too_big_send ( uint32_t  mtu,
gnrc_pktsnip_t orig_pkt 
)
inlinestatic
Parameters
[in]mtuThe maximum transission unit of the next-hop link.
[in]orig_pktThe invoking packet.

Definition at line 108 of file error.h.

◆ gnrc_icmpv6_error_time_exc_build()

gnrc_pktsnip_t* gnrc_icmpv6_error_time_exc_build ( uint8_t  code,
gnrc_pktsnip_t orig_pkt 
)
Parameters
[in]codeThe code for the message
See also
net/icmpv6.h.
Parameters
[in]orig_pktThe invoking packet.
Returns
The time exceeded message on success.
NULL, on failure.

◆ gnrc_icmpv6_error_time_exc_send()

static void gnrc_icmpv6_error_time_exc_send ( uint8_t  code,
gnrc_pktsnip_t orig_pkt 
)
inlinestatic
Parameters
[in]codeThe code for the message
See also
net/icmpv6.h.
Parameters
[in]orig_pktThe invoking packet.

Definition at line 128 of file error.h.