nd.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 
23 #include <stdint.h>
24 
25 #include "net/gnrc/pkt.h"
27 #include "net/ipv6/addr.h"
28 #include "net/ndp.h"
29 #include "net/sixlowpan/nd.h"
30 #include "timex.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
47 gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_ar_build(uint8_t status, uint16_t ltime, eui64_t *eui64,
48  gnrc_pktsnip_t *next);
49 
62 gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_6ctx_build(uint8_t prefix_len, uint8_t flags, uint16_t ltime,
63  ipv6_addr_t *prefix, gnrc_pktsnip_t *next);
64 
76 gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_abr_build(uint32_t version, uint16_t ltime,
77  ipv6_addr_t *braddr, gnrc_pktsnip_t *next);
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
gnrc_pktsnip_t * gnrc_sixlowpan_nd_opt_6ctx_build(uint8_t prefix_len, uint8_t flags, uint16_t ltime, ipv6_addr_t *prefix, gnrc_pktsnip_t *next)
Builds the 6LoWPAN context option.
gnrc_pktsnip_t * gnrc_sixlowpan_nd_opt_ar_build(uint8_t status, uint16_t ltime, eui64_t *eui64, gnrc_pktsnip_t *next)
Builds the address registration option.
gnrc_pktsnip_t * gnrc_sixlowpan_nd_opt_abr_build(uint32_t version, uint16_t ltime, ipv6_addr_t *braddr, gnrc_pktsnip_t *next)
Builds the authoritative border router option.
Definitions for IPv6 addresses.
IPv6 neighbor discovery message type definitions.
General definitions for network packets and their helper functions.
Message type and helper function definitions for 6LoWPAN-ND.
Type to represent parts (either headers or payload) of a packet, called snips.
Definition: pkt.h:105
Configuration macros for 6LoWPAN.
Utility library for comparing and computing timestamps.
Data type to represent an EUI-64.
Definition: eui64.h:52
Data type to represent an IPv6 address.
Definition: addr.h:64