Loading...
Searching...
No Matches
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
18
19#include <stdint.h>
20
21#include "net/ipv6/hdr.h"
22#include "net/gnrc/pkt.h"
23
24#ifdef __cplusplus
25extern "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.
struct gnrc_pktsnip gnrc_pktsnip_t
Type to represent parts (either headers or payload) of a packet, called snips.
General definitions for network packets and their helper functions.
IPv6 header type and helper function definitions.
Data type to represent an IPv6 address.
Definition addr.h:64