~brightbox/bird/debian-packaging

« back to all changes in this revision

Viewing changes to nest/proto.c

  • Committer: Ondřej Surý
  • Date: 2013-11-25 14:59:24 UTC
  • Revision ID: git-v1:a3c058b8752bd98df2231ac88d94931fdb4e0c65
New upstream version 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
proto_enqueue(list *l, struct proto *p)
49
49
{
50
50
  add_tail(l, &p->n);
51
 
  p->last_state_change = now;
52
51
}
53
52
 
54
53
static void
362
361
 
363
362
  q->proto_state = PS_DOWN;
364
363
  q->core_state = FS_HUNGRY;
 
364
  q->last_state_change = now;
 
365
 
365
366
  proto_enqueue(&initial_proto_list, q);
366
367
  if (p == &proto_unix_iface)
367
368
    initial_device_proto = q;
699
700
    }
700
701
}
701
702
 
 
703
/* FIXME: convert this call to some protocol hook */
 
704
extern void bfd_init_all(void);
 
705
 
702
706
/**
703
707
 * protos_build - build a protocol list
704
708
 *
736
740
#ifdef CONFIG_BGP
737
741
  proto_build(&proto_bgp);
738
742
#endif
 
743
#ifdef CONFIG_BFD
 
744
  proto_build(&proto_bfd);
 
745
  bfd_init_all();
 
746
#endif
 
747
 
739
748
  proto_pool = rp_new(&root_pool, "Protocols");
740
749
  proto_flush_event = ev_new(proto_pool);
741
750
  proto_flush_event->hook = proto_flush_loop;
1069
1078
    return;
1070
1079
 
1071
1080
  p->proto_state = ps;
 
1081
  p->last_state_change = now;
1072
1082
 
1073
1083
  switch (ps)
1074
1084
    {