Skip to content

Commit

Permalink
finalize: vera++ style check
Browse files Browse the repository at this point in the history
  • Loading branch information
xnumad committed Feb 22, 2024
1 parent a28d360 commit 43840a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sys/include/net/gnrc/netif/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ static inline uint8_t gnrc_netif_ipv6_addr_dad_trans(const gnrc_netif_t *netif,
static inline uint8_t gnrc_netif_ipv6_addr_gen_retries(const gnrc_netif_t *netif,
int idx)
{
return (netif->ipv6.addrs_flags[idx] & GNRC_NETIF_IPV6_ADDRS_FLAGS_IDGEN_RETRIES) >> GNRC_NETIF_IPV6_ADDRS_FLAGS_IDGEN_RETRIES_POS;
return (netif->ipv6.addrs_flags[idx]
& GNRC_NETIF_IPV6_ADDRS_FLAGS_IDGEN_RETRIES)
>> GNRC_NETIF_IPV6_ADDRS_FLAGS_IDGEN_RETRIES_POS;
}
#endif

Expand Down
3 changes: 2 additions & 1 deletion sys/net/gnrc/network_layer/ipv6/nib/_nib-slaac.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ void _remove_tentative_addr(gnrc_netif_t *netif, const ipv6_addr_t *addr)

_auto_configure_addr_with_dad_ctr(netif, addr, SLAAC_PREFIX_LENGTH, dad_counter);
} else {
//"hosts MUST NOT automatically fall back to employing other algorithms for generating Interface Identifiers"
//"hosts MUST NOT automatically fall back to employing other algorithms
// for generating Interface Identifiers"
//- https://datatracker.ietf.org/doc/html/rfc7217#section-6

//> If the address is a link-local address
Expand Down

0 comments on commit 43840a7

Please sign in to comment.