net/mld: Fix report repitition counter. One send one less reported than required.

This commit is contained in:
Gregory Nutt 2018-11-05 15:17:05 -06:00
parent 0b933ea900
commit 65c74f5444
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ struct mld_group_s
uint8_t ifindex; /* Interface index */ uint8_t ifindex; /* Interface index */
uint8_t flags; /* See MLD_ flags definitions */ uint8_t flags; /* See MLD_ flags definitions */
uint8_t msgtype; /* Pending message type to send (if non-zero) */ uint8_t msgtype; /* Pending message type to send (if non-zero) */
uint8_t count; /* Report repetition count */ uint8_t count; /* Reports remaining in repetition count */
}; };
/**************************************************************************** /****************************************************************************

View File

@ -149,7 +149,7 @@ static void mld_polldog_work(FAR void *arg)
* then terminate the start-up sequence. * then terminate the start-up sequence.
*/ */
if (group->count > 1) if (group->count > 0)
{ {
/* Decrement the count and restart the timer */ /* Decrement the count and restart the timer */