Author: adrian.chadd
Date: Sun Feb 22 15:51:24 2009
New Revision: 13831

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

Log:
Flesh out some more of the state change placeholders.



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  Sun Feb 22 15:51:24 2009
@@ -63,7 +63,19 @@
  void
  bgp_active(bgp_instance_t *bi)
  {
+       bi->state = BGP_ACTIVE;
+}

+void
+bgp_open(bgp_instance_t *bi)
+{
+       bi->state = BGP_OPEN;
+}
+
+void
+bgp_openconfirm(bgp_instance_t *bi)
+{
+       bi->state = BGP_OPENCONFIRM;
  }

  /*

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  Sun Feb 22 15:51:24 2009
@@ -8,6 +8,7 @@
        BGP_IDLE,
        BGP_CONNECT,
        BGP_ACTIVE,
+       BGP_OPEN,               /* Connection just opened; waiting for first 
attempt to write  
OPEN msg */
        BGP_OPENSENT,
        BGP_OPENCONFIRM,
        BGP_ESTABLISHED,
@@ -51,6 +52,8 @@
  void bgp_set_rem(bgp_instance_t *bi, u_short asn);

  void bgp_active(bgp_instance_t *bi);
+void bgp_open(bgp_instance_t *bi);
+void bgp_openconfirm(bgp_instance_t *bi);
  int bgp_read(bgp_instance_t *bi, int fd);
  void bgp_close(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