Ejemplo n.º 1
0
void hello_start(void)
{
	if(hello_timer.used)
		return;

	gettimeofday(&this_host.last_forward_time, NULL);

	DEBUG(LOG_DEBUG, 0, "Starting to send HELLOs");

	timer_init(&hello_timer, hello_send, NULL);

	hello_send(NULL);
}
Ejemplo n.º 2
0
static int pim_hello_send(struct interface *ifp,
			  uint16_t holdtime)
{
  struct pim_interface *pim_ifp;

  zassert(ifp);
  pim_ifp = ifp->info;
  zassert(pim_ifp);

  if (hello_send(ifp, holdtime)) {
    ++pim_ifp->pim_ifstat_hello_sendfail;

    if (PIM_DEBUG_PIM_HELLO) {
      zlog_warn("Could not send PIM hello on interface %s",
		ifp->name);
    }
    return -1;
  }

  ++pim_ifp->pim_ifstat_hello_sent;

  return 0;
}