gnrc/icmpv6.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
27 #ifndef GNRC_ICMPV6_H
28 #define GNRC_ICMPV6_H
29 
30 #include "kernel_types.h"
31 #include "net/icmpv6.h"
32 #include "net/gnrc/pkt.h"
33 
34 #include "net/gnrc/icmpv6/echo.h"
35 #include "net/gnrc/icmpv6/error.h"
36 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
48 
61 gnrc_pktsnip_t *gnrc_icmpv6_build(gnrc_pktsnip_t *next, uint8_t type, uint8_t code, size_t size);
62 
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* GNRC_ICMPV6_H */
83 
Types used by the kernel.
int16_t kernel_pid_t
Unique process identifier.
Definition: kernel_types.h:83
General definitions for network packets and their helper functions.
gnrc_pktsnip_t * gnrc_icmpv6_build(gnrc_pktsnip_t *next, uint8_t type, uint8_t code, size_t size)
Builds an ICMPv6 message for sending.
void gnrc_icmpv6_demux(kernel_pid_t iface, gnrc_pktsnip_t *pkt)
Demultiplexes a received ICMPv6 packet according to its type field.
ICMPv6 error message definitions.
ICMPv6 type and function definitions.
Type to represent parts (either headers or payload) of a packet, called snips.
int gnrc_icmpv6_calc_csum(gnrc_pktsnip_t *hdr, gnrc_pktsnip_t *pseudo_hdr)
Calculates the checksum for an ICMPv6 packet.
ICMPv6 echo message definitions.