Merge pull request #14680 from benpicco/gnrc_ipv6_nib_fix_13741
gnrc/nib: fix _idx_dsts() calculation
This commit is contained in:
commit
4964e4cdf8
@ -527,7 +527,7 @@ static inline bool _in_dsts(const _nib_offl_entry_t *dst)
|
|||||||
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C)
|
#if IS_ACTIVE(CONFIG_GNRC_IPV6_NIB_MULTIHOP_P6C)
|
||||||
static inline unsigned _idx_dsts(const _nib_offl_entry_t *dst)
|
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)
|
static inline bool _in_abrs(const _nib_abr_entry_t *abr)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user