Implementation of P2P-RPL.
More...
Implementation of P2P-RPL.
- See also
- RFC 6997
|
const uint8_t | gnrc_rpl_p2p_lifetime_lookup [4] |
| Lookup table used to decode/encode the lifetime values.
|
|
◆ GNRC_RPL_P2P_COMPR
#define GNRC_RPL_P2P_COMPR (0) |
◆ GNRC_RPL_P2P_DEFAULT_DIO_INTERVAL_MIN
#define GNRC_RPL_P2P_DEFAULT_DIO_INTERVAL_MIN (6) |
Definition at line 71 of file p2p.h.
◆ GNRC_RPL_P2P_DEFAULT_DIO_REDUNDANCY_CONSTANT
#define GNRC_RPL_P2P_DEFAULT_DIO_REDUNDANCY_CONSTANT (1) |
Definition at line 72 of file p2p.h.
◆ GNRC_RPL_P2P_DEFAULT_LIFETIME
#define GNRC_RPL_P2P_DEFAULT_LIFETIME (0xFF) |
Definition at line 80 of file p2p.h.
◆ GNRC_RPL_P2P_DRO_DELAY
#define GNRC_RPL_P2P_DRO_DELAY (4) |
Time in seconds to wait before sending a DRO.
Definition at line 111 of file p2p.h.
◆ GNRC_RPL_P2P_ICMPV6_CODE_DRO
#define GNRC_RPL_P2P_ICMPV6_CODE_DRO (0x04) |
◆ GNRC_RPL_P2P_ICMPV6_CODE_DRO_ACK
#define GNRC_RPL_P2P_ICMPV6_CODE_DRO_ACK (0x05) |
◆ GNRC_RPL_P2P_LIFETIME
#define GNRC_RPL_P2P_LIFETIME (0x02) |
◆ GNRC_RPL_P2P_LIFETIME_UNIT
#define GNRC_RPL_P2P_LIFETIME_UNIT (0xFFFF) |
Definition at line 81 of file p2p.h.
◆ GNRC_RPL_P2P_MAX_RANK
#define GNRC_RPL_P2P_MAX_RANK (0) |
◆ GNRC_RPL_P2P_MOP
#define GNRC_RPL_P2P_MOP (0x04) |
P2P-RPL Mode of Operation.
Definition at line 38 of file p2p.h.
◆ GNRC_RPL_P2P_MSG_TYPE_DRO_HANDLE
#define GNRC_RPL_P2P_MSG_TYPE_DRO_HANDLE (0x09A0) |
Message type for handling DRO sending.
Definition at line 116 of file p2p.h.
◆ GNRC_RPL_P2P_OPT_RDO
#define GNRC_RPL_P2P_OPT_RDO (0x0A) |
◆ gnrc_rpl_p2p_rdo_build()
Build an RDO.
- Parameters
-
[in,out] | pkt | The RDO will be added to the pkt |
[in] | p2p_ext | Pointer to the P2P-RPL DODAG extension |
◆ gnrc_rpl_p2p_rdo_parse()
Parse an RDO.
- Parameters
-
[in] | rdo | The RDO to parse from. |
[in] | p2p_ext | Pointer to the P2P-RPL DODAG extension |
◆ gnrc_rpl_p2p_recv_DRO()
Receive and parse a DRO control message.
- Parameters
-
[in] | pkt | The ICMPv6 packet to parse. |
[in] | src | The source address of the IPv6 packet. |
◆ gnrc_rpl_p2p_root_init()
Initialization of a P2P-RPL Instance as root node.
- Parameters
-
[in] | instance_id | Id of the instance |
[in] | dodag_id | Id of the DODAG |
[in] | target | Target of the P2P-RPL routes discovery |
[in] | gen_inst_id | Flag indicating whether to generate a local instance id. If true, instance_id will be ignored |
- Returns
- Pointer to the new Instance, on success.
-
NULL, otherwise.
◆ gnrc_rpl_p2p_send_DRO()
Send a DRO control message.
- Parameters
-
[in] | pkt | The ICMPv6 packet to send. Can be NULL. |
[in] | p2p_ext | Pointer to the P2P-RPL DODAG extension |