Go to the documentation of this file.
23 #ifndef NET_GNRC_RPL_P2P_H
24 #define NET_GNRC_RPL_P2P_H
38 #define GNRC_RPL_P2P_MOP (0x04)
46 #define GNRC_RPL_P2P_LIFETIME (0x02)
54 #define GNRC_RPL_P2P_COMPR (0)
62 #define GNRC_RPL_P2P_MAX_RANK (0)
71 #define GNRC_RPL_P2P_DEFAULT_DIO_INTERVAL_MIN (6)
72 #define GNRC_RPL_P2P_DEFAULT_DIO_REDUNDANCY_CONSTANT (1)
80 #define GNRC_RPL_P2P_DEFAULT_LIFETIME (0xFF)
81 #define GNRC_RPL_P2P_LIFETIME_UNIT (0xFFFF)
90 #define GNRC_RPL_P2P_OPT_RDO (0x0A)
98 #define GNRC_RPL_P2P_ICMPV6_CODE_DRO (0x04)
106 #define GNRC_RPL_P2P_ICMPV6_CODE_DRO_ACK (0x05)
111 #define GNRC_RPL_P2P_DRO_DELAY (4)
116 #define GNRC_RPL_P2P_MSG_TYPE_DRO_HANDLE (0x09A0)
gnrc_pktsnip_t * gnrc_rpl_p2p_rdo_build(gnrc_pktsnip_t *pkt, gnrc_rpl_p2p_ext_t *p2p_ext)
Build an RDO.
Includes all essential GNRC network stack base modules.
gnrc_rpl_instance_t * gnrc_rpl_p2p_root_init(uint8_t instance_id, ipv6_addr_t *dodag_id, ipv6_addr_t *target, bool gen_inst_id)
Initialization of a P2P-RPL Instance as root node.
const uint8_t gnrc_rpl_p2p_lifetime_lookup[4]
Lookup table used to decode/encode the lifetime values.
Data type to represent an IPv6 address.
void gnrc_rpl_p2p_rdo_parse(gnrc_rpl_p2p_opt_rdo_t *rdo, gnrc_rpl_p2p_ext_t *p2p_ext)
Parse an RDO.
Definitions for IPv6 addresses.
struct gnrc_rpl_instance gnrc_rpl_instance_t
Instance representation.
gnrc_pktsnip_t * pkt
queue node data
Extended DODAG information for P2P-RPL.
void gnrc_rpl_p2p_update(void)
Updates the lifetime of the P2P Dodag and the delay of the DRO.
void gnrc_rpl_p2p_send_DRO(gnrc_pktsnip_t *pkt, gnrc_rpl_p2p_ext_t *p2p_ext)
Send a DRO control message.
P2P Route Discovery Object (RDO) Option.
void gnrc_rpl_p2p_recv_DRO(gnrc_pktsnip_t *pkt, ipv6_addr_t *src)
Receive and parse a DRO control message.
Type to represent parts (either headers or payload) of a packet, called snips.