summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_apiserver.c
Commit message (Collapse)AuthorAgeFilesLines
* 2005-04-07 Paul Jakma <paul.jakma@sun.com>quagga_post_listloop_cleanuppaul2005-04-071-67/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * (global): Fix up list loops to match changes in lib/linklist, and some basic auditing of usage. * configure.ac: define QUAGGA_NO_DEPRECATED_INTERFACES * HACKING: Add notes about deprecating interfaces and commands. * lib/linklist.h: Add usage comments. Rename getdata macro to listgetdata. Rename nextnode to listnextnode and fix its odd behaviour to be less dangerous. Make listgetdata macro assert node is not null, NULL list entries should be bug condition. ALL_LIST_ELEMENTS, new macro, forward-referencing macro for use with for loop, Suggested by Jim Carlson of Sun. Add ALL_LIST_ELEMENTS_RO for cases which obviously do not need the "safety" of previous macro. LISTNODE_ADD and DELETE macros renamed to ATTACH, DETACH, to distinguish from the similarly named functions, and reflect their effect better. Add a QUAGGA_NO_DEPRECATED_INTERFACES define guarded section with the old defines which were modified above, for backwards compatibility - guarded to prevent Quagga using it.. * lib/linklist.c: fix up for linklist.h changes. * ospf6d/ospf6_abr.c: (ospf6_abr_examin_brouter) change to a single scan of the area list, rather than scanning all areas first for INTER_ROUTER and then again for INTER_NETWORK. According to 16.2, the scan should be area specific anyway, and further ospf6d does not seem to implement 16.3 anyway.
* * ospf_apiserver.c (ospf_apiserver_term): Obtain structgdt2004-12-091-8/+5
| | | | | ospf_apiserver * from listnode. Remove unused variables. Follows suggestion from Jay Fenlason.
* ospf_apiserver_term:gdt2004-12-091-1/+6
| | | | | | | | Remove unused variable. Add comment: this is seriously broken, and needs fixing. It appears likely to segfault if ever called. Comments please - should I make the fix I suggest in the comment? -gdt
* 2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-12-081-17/+17
| | | | * *.c: Change level of debug messages to LOG_DEBUG.
* 2004-11-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2004-11-201-6/+6
| | | | | * global: Replace strerror with safe_strerror. And vtysh/vtysh.c needs to include "log.h" to pick up the declaration.
* 2004-11-15 Paul Jakma <paul@dishone.st>paul2004-11-151-3/+2
| | | | * ospf_{apiserver,te}.c: ospf_lsa_free's should be ospf_lsa_unlock.
* 2004-10-07 Greg Troxel <gdt@claude.ir.bbn.com>gdt2004-10-071-4/+5
| | | | | | | * ospf_apiserver.c (ospf_apiserver_unregister_opaque_type): Don't use of variable names 'node' and 'nextnode' to avoid possible conflict with list macros. Move variable declaration inside for loop after a statement to top of function.
* 2004-09-24 Paul Jakma <paul@dishone.st>paul2004-09-241-3/+3
| | | | | | * ospf_apiserver.{c,h}: (ospf_apiserver_term) loops calling ospf_apiserver_free, which deletes referenced nodes from apiserver_list, fixed.
* 2004-09-24 Paul Jakma <paul@dishone.st>paul2004-09-241-156/+109
| | | | | | | | | | | | | * ospf_apiserver.{c,h}: lists typedef removal cleanup. update some list loops to LIST_LOOP. some miscellaneous indent fixups. (ospf_apiserver_unregister_opaque_type) fix listnode_delete of referenced node in loop. * ospf_interface.h: lists typedef removal cleanup. * ospf_opaque.{c,h}: lists typedef removal cleanup. update some list loops to LIST_LOOP. miscellaneous style and indent fixups. * ospf_te.{c,h}: ditto * ospf_packet.c: lists typedef removal cleanup.
* Remove ifdef's HAVE_NSSA. NSSA support is stable enough.hasso2004-06-201-2/+0
|
* 2003-07-09 Paul Jakma <paul@dishone.st>paul2003-07-091-2/+2
| | | | * ospf_apiserver.c: Add missing close bracket
* 2003-07-09 Paul Jakma <paul@dishone.st>paul2003-07-091-3/+5
| | | | * ospfd/ospf_apiserver.c: check for NULL from ospf_lookup()
* Latest ospfapi sync from Amir to fixup wrt to zebra.org changes.paul2003-04-061-59/+91
|
* Fixes from Amir to merge apiserver with zebra.org changespaul2003-04-051-27/+34
|
* Amir Guindehi <amir@datacore.ch>:paul2003-03-281-7/+15
| | | | | | | | | | | | | | | I got it to compile. The problem was that major functions newly need a struct ospf *ospf as the first argument. I tried to take the nearest struct ospf *ospf around the function needing it, because i was not sure if all those pointers to struct ospf * all point to the same (global) struct ospf * which you also get when you call ospf_get(). I used area->ospf where I had the area, I used oi->ospf, where I had an interface, I used lsa->oi->ospf where I had an lsa and i used ospf_get() where I had nothing. I hope that's correct and works. We will see. It compiles now without errors. Daemon is tested and works. The opaque lsa part is not yet tested. I will do that as soon as srrd is ready.
* 2003-03-25 Paul Jakma <paul@dishone.st>paul2003-03-251-1/+2
| | | | | | | | * sync to latest zebra CVS * spec file: updated and added define for ospf-api/client NB: OSPF-API has been broken by the zebra.org changes, which has added struct ospf * as a new arg to many functions
* Fix assert in ospf_api where interface is not configured in ospf.paul2003-03-211-1/+6
|
* Addition of OSPF-API - Amir Guindehi <nospam.amir@datacore.ch>paul2003-03-171-0/+2647