GNRC's implementation of ICMPv6.  
More...
GNRC's implementation of ICMPv6. 
- See also
 - RFC 4443  
 
 | 
| file   | icmpv6.h | 
|   | Definitions for GNRC's ICMPv6 implementation. 
  | 
|   | 
◆ gnrc_icmpv6_build()
Builds an ICMPv6 message for sending. 
- Parameters
 - 
  
    | [in] | next | Next packet snip in the new packet.  | 
    | [in] | type | Type for the ICMPv6 message.  | 
    | [in] | code | Code for the ICMPv6 message.  | 
    | [in] | size | Size of the ICMPv6 message (needs do be > sizeof(icmpv6_hdr_t)). | 
  
   
- Returns
 - The ICMPv6 message on success 
 
- 
NULL, on failure 
 
 
 
◆ gnrc_icmpv6_calc_csum()
Calculates the checksum for an ICMPv6 packet. 
- Parameters
 - 
  
    | [in] | hdr | The header the checksum should be calculated for.  | 
    | [in] | pseudo_hdr | The header the pseudo header shall be generated from. NULL if none is needed. | 
  
   
- Returns
 - 0, on success. 
 
- 
-EINVAL, if gnrc_pktsnip_t::type of 
pkt was not GNRC_NETTYPE_ICMPV6  
- 
-ENOENT, if gnrc_pktsnip_t::type of 
pseudo_hdr was not GNRC_NETTYPE_IPV6  
 
 
◆ gnrc_icmpv6_demux()
Demultiplexes a received ICMPv6 packet according to its type field. 
- Parameters
 - 
  
    | [in] | netif | The receiving interface  | 
    | [in] | pkt | The packet to demultiplex.  |