mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
Make LWIP_RAND optional (useful for small targets)
This commit is contained in:
@@ -493,8 +493,10 @@ mld6_delayed_report(struct mld_group *group, u16_t maxresp)
|
||||
maxresp = 1;
|
||||
}
|
||||
|
||||
/* Randomize maxresp. */
|
||||
#ifdef LWIP_RAND
|
||||
/* Randomize maxresp. (if LWIP_RAND is supported) */
|
||||
maxresp = (LWIP_RAND() % (maxresp - 1)) + 1;
|
||||
#endif /* LWIP_RAND */
|
||||
|
||||
/* Apply timer value if no report has been scheduled already. */
|
||||
if ((group->group_state == MLD6_GROUP_IDLE_MEMBER) ||
|
||||
|
||||
Reference in New Issue
Block a user