Revision 5ee69d11 proto/babel/babel.c

View differences:

proto/babel/babel.c
343 343
babel_expire_ihu(struct babel_neighbor *nbr)
344 344
{
345 345
  nbr->txcost = BABEL_INFINITY;
346
  nbr->ihu_expiry = 0;
346 347
}
347 348

  
348 349
static void
......
353 354
  if (nbr->hello_cnt < 16)
354 355
    nbr->hello_cnt++;
355 356

  
356
  if (!nbr->hello_map)
357
  if (nbr->hello_map)
358
    nbr->hello_expiry += nbr->last_hello_int;
359
  else
357 360
    babel_flush_neighbor(nbr);
358 361
}
359 362

  
......
929 932
  n->next_hello_seqno = seqno+1;
930 933
  if (n->hello_cnt < 16) n->hello_cnt++;
931 934
  n->hello_expiry = current_time() + BABEL_HELLO_EXPIRY_FACTOR(interval);
935
  n->last_hello_int = interval;
932 936
}
933 937

  
934 938
static void

Also available in: Unified diff