The friendly Operating System for the Internet of Things
echo.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
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
20 #ifndef GNRC_ICMPV6_ECHO_H
21 #define GNRC_ICMPV6_ECHO_H
22 
23 #include <inttypes.h>
24 
25 #include "byteorder.h"
26 #include "kernel_types.h"
27 #include "net/ipv6/hdr.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
46 gnrc_pktsnip_t *gnrc_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq,
47  uint8_t *data, size_t data_len);
48 
59  icmpv6_echo_t *echo, uint16_t len);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* GNRC_ICMPV6_ECHO_H */
66 
Types used by the kernel.
int16_t kernel_pid_t
Unique process identifier.
Definition: kernel_types.h:83
gnrc_pktsnip_t * gnrc_icmpv6_echo_build(uint8_t type, uint16_t id, uint16_t seq, uint8_t *data, size_t data_len)
Builds an ICMPv6 echo message of type type for sending.
Data type to represent an IPv6 packet header.
Definition: ipv6/hdr.h:68
Echo request and response message format.
Definition: icmpv6.h:218
IPv6 header type and helper function definitions.
Functions to work with different byte orders.
Adds include for missing inttype definitions.
void gnrc_icmpv6_echo_req_handle(kernel_pid_t iface, ipv6_hdr_t *ipv6_hdr, icmpv6_echo_t *echo, uint16_t len)
ICMPv6 echo request handler.
Type to represent parts (either headers or payload) of a packet, called snips.