[riot-notifications] [RIOT] ng_rpl: port to the new network stack (#3050)

Cenk Gündoğan notifications at github.com
Fri Jun 5 21:46:13 CEST 2015


> +    uint8_t path_control;       /**< limits the number of DAO parents */
> +    uint8_t path_sequence;      /**< increased value for route updates */
> +    uint8_t path_lifetime;      /**< lifetime of routes */
> +} ng_rpl_opt_transit_t;
> +
> +typedef struct ng_rpl_dodag ng_rpl_dodag_t;
> +typedef struct ng_rpl_parent ng_rpl_parent_t;
> +
> +/**
> + * @brief Parent representation
> + */
> +struct ng_rpl_parent {
> +    ng_rpl_parent_t *next;          /**< pointer to the next parent */
> +    uint8_t state;                  /**< 0 for unsued, 1 for used */
> +    ng_ipv6_addr_t addr;            /**< link-local IPv6 address of this parent */
> +    uint16_t rank;                  /**< rank of the parent */

In general, I am not in favor of using the byte-ordered types on structs, which will not be used for network communication.. This will make reading/writing from/to them more complex, because one would need to use the related `byteorder_*` functions throughout the code

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3050/files#r31845280
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150605/f1d911cb/attachment-0001.html>


More information about the notifications mailing list