]> git.puffer.fish Git - matthieu/frr.git/commit
ospfd: Remove oi field from LSA, have network_lsa_refresh look up when needed
authorPaul Jakma <paul@quagga.net>
Thu, 15 Apr 2010 07:11:51 +0000 (08:11 +0100)
committerPaul Jakma <paul@quagga.net>
Wed, 8 Dec 2010 17:13:19 +0000 (17:13 +0000)
commit4dd87df5af8a59174362e44f83df11f12457c8b4
treebec3ba26fcf730d6348567ddd530e74846af824b
parentdfbd5176ea863e378999c03314dc42adfdd4e424
ospfd: Remove oi field from LSA, have network_lsa_refresh look up when needed

* ospf_lsa.h: (struct ospf_lsa) remove oi pointer
* ospf_lsa.c: (ospf_network_lsa_refresh) instead of keeping a pointer, just
  lookup the oi when it's needed. This decouples network LSA from oi lifetime
  and avoids having to invalidate pointers in LSAs when an oi changes,
  simplifying the code.
ospfd/ospf_lsa.c
ospfd/ospf_lsa.h