Merge pull request #14680 from benpicco/gnrc_ipv6_nib_fix_13741

gnrc/nib: fix _idx_dsts() calculation
This commit is contained in:
benpicco 2020-08-03 12:38:51 +02:00 committed by GitHub
commit 4964e4cdf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,7 +527,7 @@ static inline bool _in_dsts(const _nib_offl_entry_t *dst)
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C)
static inline unsigned _idx_dsts(const _nib_offl_entry_t *dst)
{
return (dst - _dsts) / sizeof(*dst);
return (dst - _dsts);
}
static inline bool _in_abrs(const _nib_abr_entry_t *abr)