Example #1
0
File: bgp.c Project: rogerhu/dd-wrt
static void
bgp_initiate(struct bgp_proto *p)
{
    int rv = bgp_open(p);
    if (rv < 0)
        return;

    if (p->startup_delay)
    {
        BGP_TRACE(D_EVENTS, "Startup delayed by %d seconds", p->startup_delay);
        bgp_start_timer(p->startup_timer, p->startup_delay);
    }
    else
        bgp_startup(p);
}
Example #2
0
File: bgp.c Project: deepfield/bird
static void
bgp_initiate(struct bgp_proto *p)
{
  int rv = bgp_open(p);
  if (rv < 0)
    return;

  if (p->cf->bfd)
    bgp_update_bfd(p, p->cf->bfd);

  if (p->startup_delay)
    {
      p->start_state = BSS_DELAY;
      BGP_TRACE(D_EVENTS, "Startup delayed by %d seconds", p->startup_delay);
      bgp_start_timer(p->startup_timer, p->startup_delay);
    }
  else
    bgp_startup(p);
}
Example #3
0
File: bgp.c Project: rogerhu/dd-wrt
static void
bgp_startup_timeout(timer *t)
{
    bgp_startup(t->data);
}