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) 
Includes all essential GNRC network stack base modules.
 
void gnrc_rpl_p2p_recv_DRO(gnrc_pktsnip_t *pkt, ipv6_addr_t *src)
Receive and parse a DRO control message.
 
gnrc_pktsnip_t * gnrc_rpl_p2p_rdo_build(gnrc_pktsnip_t *pkt, gnrc_rpl_p2p_ext_t *p2p_ext)
Build an RDO.
 
const uint8_t gnrc_rpl_p2p_lifetime_lookup[4]
Lookup table used to decode/encode the lifetime values.
 
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.
 
void gnrc_rpl_p2p_rdo_parse(gnrc_rpl_p2p_opt_rdo_t *rdo, gnrc_rpl_p2p_ext_t *p2p_ext)
Parse an RDO.
 
void gnrc_rpl_p2p_send_DRO(gnrc_pktsnip_t *pkt, gnrc_rpl_p2p_ext_t *p2p_ext)
Send a DRO control message.
 
void gnrc_rpl_p2p_update(void)
Updates the lifetime of the P2P Dodag and the delay of the DRO.
 
Definitions for IPv6 addresses.
 
Type to represent parts (either headers or payload) of a packet, called snips.
 
Extended DODAG information for P2P-RPL.
 
P2P Route Discovery Object (RDO) Option.
 
struct gnrc_rpl_instance gnrc_rpl_instance_t
Instance representation.
 
Data type to represent an IPv6 address.