DODAG-related functions for RPL.  
More...
DODAG-related functions for RPL. 
Header file, which defines all public known DODAG-related functions for RPL.
- Author
- Eric Engel eric..nosp@m.enge.nosp@m.l@fu-.nosp@m.berl.nosp@m.in.de 
- 
Cenk Gündoğan cnkgn.nosp@m.dgn@.nosp@m.gmail.nosp@m..com 
Definition in file dodag.h.
Go to the source code of this file.
◆ GNRC_RPL_INSTANCES_NUMOF
      
        
          | #define GNRC_RPL_INSTANCES_NUMOF   (1) | 
      
 
Number of RPL instances. 
Definition at line 38 of file dodag.h.
 
 
◆ GNRC_RPL_PARENTS_NUMOF
      
        
          | #define GNRC_RPL_PARENTS_NUMOF   (3) | 
      
 
Number of RPL parents. 
Definition at line 45 of file dodag.h.
 
 
◆ gnrc_rpl_cleanup_start()
Removes the dodag state of dodag after CONFIG_GNRC_RPL_CLEANUP_TIME milliseconds. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the DODAG |  
 
 
 
◆ gnrc_rpl_dodag_init()
Initialize a new RPL DODAG with the id dodag_id for the instance instance. 
- Parameters
- 
  
    | [in] | instance | Pointer to the instance to add the DODAG to |  | [in] | dodag_id | The DODAG-ID of the new DODAG |  | [in] | iface | Interface PID where the DODAG operates |  
 
- Returns
- true, if DODAG could be created. 
- 
false, if DODAG could not be created or exists already. 
 
 
◆ gnrc_rpl_dodag_remove()
Remove a RPL DODAG with the pointer dodag from its instance. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the RPL DODAG to remove. |  
 
 
 
◆ gnrc_rpl_dodag_remove_all_parents()
Remove all parents from the dodag. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the dodag. |  
 
 
 
◆ gnrc_rpl_instance_add()
Add a new RPL instance with the id instance_id. 
- Parameters
- 
  
    | [in] | instance_id | The instance id of the new RPL instance. |  | [out] | inst | Pointer to an existing or new instance. Otherwise NULL. |  
 
- Returns
- true, if instance could be created. 
- 
false, if instance could not be created or exists already. 
 
 
◆ gnrc_rpl_instance_get()
Get the RPL instance with the id instance_id. 
- Parameters
- 
  
    | [in] | instance_id | The instance id of the RPL instance to get. |  
 
- Returns
- Pointer to the RPL instance, on success. 
- 
NULL, otherwise. 
 
 
◆ gnrc_rpl_instance_remove()
Remove a RPL instance with the pointer inst. 
- Parameters
- 
  
    | [in] | inst | Pointer to the RPL instance to remove. |  
 
 
 
◆ gnrc_rpl_instance_remove_by_id()
      
        
          | bool gnrc_rpl_instance_remove_by_id | ( | uint8_t | instance_id | ) |  | 
      
 
Remove a RPL instance with the id instance_id. 
- Parameters
- 
  
    | [in] | instance_id | The instance id of the RPL instance to remove. |  
 
- Returns
- true, on success. 
- 
false, otherwise. 
 
 
◆ gnrc_rpl_leaf_operation()
Operate as leaf. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the DODAG |  
 
 
 
◆ gnrc_rpl_local_repair()
Start a local repair. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the DODAG |  
 
 
 
◆ gnrc_rpl_parent_add_by_addr()
Add a new parent with the IPv6 address addr to the dodag. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the DODAG |  | [in] | addr | IPV6 address of the parent |  | [out] | parent | Pointer to an existing or new parent. Otherwise NULL. |  
 
- Returns
- true. if parent could be created. 
- 
false, if parent could not be created or exists already. 
 
 
◆ gnrc_rpl_parent_remove()
Remove the parent from its DODAG. 
- Parameters
- 
  
    | [in] | parent | Pointer to the parent. |  
 
- Returns
- true, on success. 
- 
false, otherwise. 
 
 
◆ gnrc_rpl_parent_update()
Update a parent of the dodag. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the DODAG |  | [in] | parent | Pointer to the parent |  
 
 
 
◆ gnrc_rpl_router_operation()
Operate as router. 
- Parameters
- 
  
    | [in] | dodag | Pointer to the DODAG |