hdr.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2015 Martine Lenders <mlenders@inf.fu-berlin.de>
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include <stdint.h>
20 
21 #include "net/ipv6/hdr.h"
22 #include "net/gnrc/pkt.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
44  const ipv6_addr_t *dst);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
gnrc_pktsnip_t * gnrc_ipv6_hdr_build(gnrc_pktsnip_t *payload, const ipv6_addr_t *src, const ipv6_addr_t *dst)
Builds an IPv6 header for sending and adds it to the packet buffer.
General definitions for network packets and their helper functions.
IPv6 header type and helper function definitions.
Type to represent parts (either headers or payload) of a packet, called snips.
Definition: pkt.h:105
Data type to represent an IPv6 address.
Definition: addr.h:64