Author: adrian.chadd
Date: Tue Feb 24 08:35:56 2009
New Revision: 13860

Modified:
    playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.c
    playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.h

Log:
Flesh out some more FSM call prototypes and a couple new config flags.



Modified: playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.c
==============================================================================
--- playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.c  (original)
+++ playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.c  Tue Feb 24 08:35:56 2009
@@ -208,3 +208,15 @@
                return bi->rem.hold_timer;
        return bi->lcl.hold_timer;
  }
+
+void
+bgp_clear_rib_on_shutdown(bgp_instance_t *bi, int flag)
+{
+       bi->cfg.clear_rib_on_shutdown = flag;   
+}
+
+void
+bgp_clear_rib_on_withdraw(bgp_instance_t *bi, int flag)
+{
+       bi->cfg.clear_rib_on_withdraw = flag;   
+}

Modified: playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.h
==============================================================================
--- playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.h  (original)
+++ playpen/LUSCA_HEAD_bgp/libsqbgp/bgp_core.h  Tue Feb 24 08:35:56 2009
@@ -37,6 +37,13 @@
                u_int8_t version;
        } rem;

+       struct {
+               int clear_rib_on_shutdown;
+               int clear_rib_on_withdraw;
+       } cfg;
+
+       int rib_genid;                  /* A sequence number which is 
incremented each time a  
new BGP connection is established */
+
        /* The AS path table */

        /* The RIB */
@@ -51,9 +58,18 @@
  void bgp_set_lcl(bgp_instance_t *bi, struct in_addr bgp_id, u_short asn,  
u_short hold_time);
  void bgp_set_rem(bgp_instance_t *bi, u_short asn);

+void bgp_clear_rib_on_shutdown(bgp_instance_t *bi, int flag);
+void bgp_clear_rib_on_withdraw(bgp_instance_t *bi, int flag);
+
+/* FSM related calls */
+void bgp_idle(bgp_instance_t *bi);
+void bgp_connect(bgp_instance_t *bi);
  void bgp_active(bgp_instance_t *bi);
-void bgp_open(bgp_instance_t *bi);
+void bgp_opensent(bgp_instance_t *bi);
+void bgp_open(bgp_instance_t *bi);             /* XXX what is/was this used 
for? */
  void bgp_openconfirm(bgp_instance_t *bi);
+void bgp_established(bgp_instance_t *bi);
+
  int bgp_read(bgp_instance_t *bi, int fd);
  void bgp_close(bgp_instance_t *bi);
  int bgp_get_holdtimer(bgp_instance_t *bi);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to