]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: interface code should leave network_lsa_self alone
authorPaul Jakma <paul@quagga.net>
Sun, 24 Jan 2010 21:34:54 +0000 (21:34 +0000)
committerPaul Jakma <paul@quagga.net>
Wed, 8 Dec 2010 17:11:18 +0000 (17:11 +0000)
* ospf_interface.c: (ospf_if_{new,cleanup}) don't touch the network_lsa_self,
  ISM and NSM take care of cleaning it up if needs be + we want to keep
  network_lsa_self around when possible for the the seqnum.

  This shouldn't really make much difference though, particularly as we have
  a separate sequence number memory mechanism.

ospfd/ospf_interface.c

index f9dc4b09c995eb8ab8e0e22d235b30d2cfa318ed..b333658950b1ce5de7856878db9c4f17e4be17c2 100644 (file)
@@ -219,9 +219,6 @@ ospf_if_new (struct ospf *ospf, struct interface *ifp, struct prefix *p)
   ospf_add_to_if (ifp, oi);
   listnode_add (ospf->oiflist, oi);
   
-  /* Clear self-originated network-LSA. */
-  oi->network_lsa_self = NULL;
-
   /* Initialize neighbor list. */
   oi->nbrs = route_table_init ();
 
@@ -302,8 +299,6 @@ ospf_if_cleanup (struct ospf_interface *oi)
   oi->nbr_self = ospf_nbr_new (oi);
   ospf_nbr_add_self (oi);
   
-  ospf_lsa_unlock (&oi->network_lsa_self);
-  oi->network_lsa_self = NULL;
   OSPF_TIMER_OFF (oi->t_network_lsa_self);
 }