Author: adrian.chadd
Date: Sun Feb 22 15:56:06 2009
New Revision: 13833

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

Log:
Make hold timers potentially -1 (for "not yet setup").


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:56:06 2009
@@ -25,6 +25,7 @@
  {
        bzero(bi, sizeof(*bi));
        bi->state = BGP_IDLE;
+       bi->lcl.hold_timer = bi->rem.hold_timer = -1;
        bgp_rib_init(&bi->rn);
  }

@@ -126,6 +127,7 @@
  bgp_close(bgp_instance_t *bi)
  {
        bi->state = BGP_IDLE;
+       bi->lcl.hold_timer = bi->rem.hold_timer = -1;
        /* free prefixes */
        bgp_rib_clean(&bi->rn);
        /* ensure no as path entries exist in the hash! */

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:56:06 2009
@@ -26,13 +26,13 @@

        struct {
                u_short asn;
-               u_short hold_timer;
+               short hold_timer;
                struct in_addr bgp_id;
        } lcl;

        struct {
                u_short asn;
-               u_short hold_timer;
+               short hold_timer;
                struct in_addr bgp_id;
                u_int8_t version;
        } rem;

--~--~---------~--~----~------------~-------~--~----~
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