Skip to content

Commit

Permalink
doccheck
Browse files Browse the repository at this point in the history
  • Loading branch information
xnumad committed Feb 22, 2024
1 parent 2db2840 commit 17062f2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
13 changes: 12 additions & 1 deletion sys/include/net/netopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -924,11 +924,22 @@ enum {

#if IS_ACTIVE(CONFIG_GNRC_IPV6_STABLE_PRIVACY) || defined(DOXYGEN)
/**
* @brief Data for @ref NETOPT_IPV6_IID when using RFC7217
* @brief Data for @ref NETOPT_IPV6_IID when using RFC7217,
* passed on to ipv6_get_rfc7217_iid,
* from which the descriptions are also copied
*/
typedef struct {
/**
* @param[out] where to store the generated interface identifier
*/
eui64_t *iid;
/**
* @param[in] pfx The prefix for which the IID is to be generated.
*/
const ipv6_addr_t *pfx;
/**
* @param[in,out] dad_ctr ("DAD_Counter" in rfc7217)
*/
uint8_t *dad_ctr;
} netopt_ipv6_rfc7217_iid_data;
#endif
Expand Down
8 changes: 6 additions & 2 deletions sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern "C" {
*/
#define SLAAC_PREFIX_LENGTH (64U)

/*
/**
* "the address architecture [RFC4291] also defines the length of the interface identifiers"
* - https://datatracker.ietf.org/doc/html/rfc4862#section-2
*
Expand All @@ -73,6 +73,9 @@ extern "C" {
#define STABLE_PRIVACY_IDGEN_RETRIES (3U) /*default value*/
#endif

/**
* @brief Upper limit for random time to wait between IDGEN retries
*/
#ifndef STABLE_PRIVACY_IDGEN_DELAY_MS
#define STABLE_PRIVACY_IDGEN_DELAY_MS 1000 /*default value*/
#endif
Expand All @@ -90,6 +93,7 @@ void _auto_configure_addr(gnrc_netif_t *netif, const ipv6_addr_t *pfx,
uint8_t pfx_len);
#if IS_ACTIVE(CONFIG_GNRC_IPV6_STABLE_PRIVACY) || defined(DOXYGEN)
/**
* @brief Overload of @ref _auto_configure_addr
* @param dad_ctr rfc7217 DAD_Counter
*/
void _auto_configure_addr_with_dad_ctr(gnrc_netif_t *netif, const ipv6_addr_t *pfx,
Expand Down Expand Up @@ -121,7 +125,7 @@ bool _stable_privacy_should_retry_idgen(uint8_t *dad_ctr, const char *reason);
/**
* @brief
* @pre @p iid is all 0 bits (iid->uint64.u64 == 0)
* @param[out] iid
* @param[out] iid where to store the generated interface identifier
* @param[in] netif The network interface to use as source for IID generation.
* ("Net_iface" in rfc7217)
* @param[in] pfx The prefix for which the IID is to be generated.
Expand Down

0 comments on commit 17062f2

Please sign in to comment.