nd.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 
23 #ifndef NET_GNRC_SIXLOWPAN_ND_H
24 #define NET_GNRC_SIXLOWPAN_ND_H
25 
26 #include <stdint.h>
27 
28 #include "kernel_types.h"
29 #include "net/gnrc/pkt.h"
31 #include "net/ipv6/addr.h"
32 #include "net/ndp.h"
33 #include "net/sixlowpan/nd.h"
34 #include "timex.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
51 gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_ar_build(uint8_t status, uint16_t ltime, eui64_t *eui64,
52  gnrc_pktsnip_t *next);
53 
66 gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_6ctx_build(uint8_t prefix_len, uint8_t flags, uint16_t ltime,
67  ipv6_addr_t *prefix, gnrc_pktsnip_t *next);
68 
80 gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_abr_build(uint32_t version, uint16_t ltime,
81  ipv6_addr_t *braddr, gnrc_pktsnip_t *next);
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 
87 #endif /* NET_GNRC_SIXLOWPAN_ND_H */
88 
nd.h
Message type and helper function definitions for 6LoWPAN-ND.
ipv6_addr_t
Data type to represent an IPv6 address.
Definition: addr.h:74
addr.h
Definitions for IPv6 addresses.
gnrc_sixlowpan_nd_opt_ar_build
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_sixlowpan_nd_opt_abr_build
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.
config.h
Configuration macros for 6LoWPAN.
timex.h
Utility library for comparing and computing timestamps.
pkt.h
General definitions for network packets and their helper functions.
gnrc_sixlowpan_nd_opt_6ctx_build
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.
ndp.h
IPv6 neighbor discovery message type definitions.
eui64_t
Data type to represent an EUI-64.
Definition: eui64.h:55
gnrc_pktsnip
Type to represent parts (either headers or payload) of a packet, called snips.
Definition: pkt.h:108
kernel_types.h
Types used by the kernel.