summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * | | [bgpd] release peer specific clear queue in peer_freePaul Jakma2006-03-302-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-22 Paul Jakma <paul.jakma@sun.com> * bgpd.c: (peer_free) release the per-peer workqueue when freeing the peer.
| | | * | | [bgpd] trivial: use a distinct memtype for struct bgp_synchronizePaul Jakma2006-03-304-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-19 Paul Jakma <paul.jakma@sun.com> * memtypes.c: Add MTYPE_BGP_SYNCHRONISE. * bgp_advertise.c: Use a distinct memory type for struct bgp_synchronize.
| | | * | | [bgpd] Add 'show bgp memory' for stats on fixed-size allocations in bgpdPaul Jakma2006-03-302-19/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-19 Paul Jakma <paul.jakma@sun.com> * bgpd/bgp_vty.c: Add includes to get several structs we want to provide usage statistics on. (show_bgp_memory_cmd) Show memory usage stats for various notable fixed size objects. Using mtype_stats_alloc and mtype_memstr recently added to memory.c. (bgp_show_summary) Report some additional stats specific to the given BGP instance and/or AFI/SAFI such as table counts, peers, rsclients and peer-groups. (bgp_vty_init) Install show_bgp_memory_cmd.
| | | * | | [bgpd] Include header dependency in bgp_nexthop.hPaul Jakma2006-03-302-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-19 Paul Jakma <paul.jakma@sun.com> * bgp_nexthop.h: Include if.h as a dependent header, for struct connected.
| | | * | | [lib] fix libtool version argument in Makefile.amPaul Jakma2006-03-302-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-16 Paul Jakma <paul.jakma@sun.com> * Makefile.am: Fix -version-info argument.
| | | * | | [lib/memory] Add mallinfo supportPaul Jakma2006-03-305-2/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-15 Paul Jakma <paul.jakma@sun.com> * configure.ac: Check for mallinfo, being careful to link test so we can detect things like umem being used (which doesn't provide a mallinfo). * lib/memory.c: (mtype_memstr) new helper function to return human friendly string for a byte count. (mtype_stats_alloc) new function, for users to retrieve number of objects allocated. (show_memory_mallinfo) New function, show mallinfo statistics if available. (show_memory_all_cmd) Call show_memory_mallinfo, if mallinfo is available. * lib/memory.h: Export mtype_memstr and mtype_stats_alloc. Provide a define for a reasonable buffer size for mtype_memstr.
| | | * | | [solaris] revert previous update of manifest install pathPaul Jakma2006-03-302-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-16 Paul Jakma <paul.jakma@sun.com> * prototype.smf.in: Oops, continue to install manifest to var/svc/manifest/network for now. * Changelog: fix lack of trailing newline
| | | * | | [tests] fix heavy-wq, add redundant AS_SET test and statics to aspath_testPaul Jakma2006-03-303-5/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-16 Paul Jakma <paul.jakma@sun.com> * heavy-wq.c: (heavy_wq_init) delay is gone from workqueue spec. * aspath_test.c: (test_segments) Add an AS_SET with redundant ASNs. ({empty_prepend,prepend,parse}_test) add static qualifiers
| | | * | | [solaris] SMF manifest, method and depend updates.Paul Jakma2006-03-305-272/+590
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-13 Alan Maguire <alan.maguire@sun.com> * quagga.xml.in: Change the naming of services and instances. network/routing/quagga:<daemon> may be neat and tidy, but it's at odds with SMF convention elsewhere that demands the service be named for what it does, and the instance name describe the implementation (e.g. network/smtp:sendmail). Remove call to method script for 'stop', SMF can do that itself. Enumerate the privileges required in the SMF manifest, with the method_credential element. Dont try provide seperate properties for each argument, it's just tedious, particularly when they can no longer be inherited from a common quagga service - use a single "daemon-args" property, defaulting to -P 0. Specify authorisation for the 'routeadm' utility and for RBAC. 2006-03-13 Paul Jakma <paul.jakma@sun.com> * quagga.init.in: Update to match SMF manifest changes. If run from an SMF environment, assume method is start. Offer a more tradition init script interface for pre-SMF. Enable zebra for the link-state daemons. Don't allow daemons to start in non-global zones, except for bgpd - it doesn't have to care about underlying networking much. Remove all the svcprop calls, SMF or the user will supply any arguments on the command-line. * depend.smf.in: Add dependency on SUNWroute, which provides routeadm, which provides /var/svc/manifest/network/routing * prototype.smf.in: Install manifest to var/svc/manifest/network/routing.
| | | * | | [zebra] arrange structs in padding-efficient manner and remove unused fieldPaul Jakma2006-03-302-18/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-09 Paul Jakma <paul.jakma@sun.com> * rib.h: (struct {rib,nexthop}) Rearrange fields to avoid needless padding. (struct rib) Remove the indirect pointer, not used anywhere!
| | | * | | [lib/privs] Changing user IDs should be done before dropping privilegesPaul Jakma2006-03-302-18/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-14 Paul Jakma <paul.jakma@sun.com> * privs.c: (zprivs_caps_init) Change user IDs before lowering privileges, while this seems to work on Linux, on Solaris it rightfully refuses due to PRIV_PROC_SETID having been dropped.
| | | * | | [bgpd] rearrange some structs for less padding, stats for table/attrs.Paul Jakma2006-03-306-55/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-12 Paul Jakma <paul.jakma@sun.com> * bgp_attr.h: (struct attr) rearrange fields to avoid wasted padding between them as much as possible. (attr_count,attr_unknown_count) export new functions to return number of counts of cached attributes. * bgp_attr.c: (attr_count,attr_unknown_count) new functions to return number of counts of cached attributes. * bgp_route.h: (struct bgp_info) rearrange fields to avoid wasted padding. * bgp_table.h: (struct bgp_table) Add a count field, of number of nodes in the table. (struct bgp_node) rearrange fields to avoid wasted padding between them, though I don't think there was any in this case. * bgp_table.c: (bgp_node_{delete,get}) Maintain the table node count. (bgp_table_count) new function to access the table count.
| | | * | | [lib] export show_address_cmd debug command in if.hPaul Jakma2006-03-062-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-06 Paul Jakma <paul.jakma@sun.com> * if.h: export show_address_cmd, for anyone who wishes to use it.
| | | * | | [bgpd] Start off FSM again once clearing finishes.Paul Jakma2006-03-062-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-03-03 Paul Jakma <paul.jakma@sun.com> * bgp_route.c: (bgp_clear_node_complete) Doh. When clearing is complete we need to kick off FSM again.
| | | * | | [lib/sockunion] trivial: use XSTRDUP.Paul Jakma2006-02-212-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-21 Paul Jakma <paul.jakma@sun.com> * sockunion.c: (sockunion_{su2str,log}) Use XSTRDUP. Particularly with _su2str, as that string gets XFREEd, which can be annoying if run debug code in memory.c.
| | | * | | [bgpd] Add Clrng description to bgp summary state.Paul Jakma2006-02-212-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-21 Paul Jakma <paul.jakma@sun.com> * bgp_vty.c: (bgp_show_summary) Add a 'Clrng' sub-description to state of peer while it's suppressed due to clearing.
| | | * | | [bgpd] Record afi/safi in bgp_table. Serialise peer clear with FSM.Paul Jakma2006-02-219-96/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-21 Paul Jakma <paul.jakma@sun.com> * bgpd.h: move the clear_node_queue to be peer specific. Add a new peer status flag, PEER_STATUS_CLEARING. * bgp_table.h: (struct bgp_table) Add fields to record afi, safi of the table. (bgp_table_init) Take afi and safi to create table for. * bgp_table.c: (bgp_table_init) record the afi and safi. * bgp_nexthop.c: Update all calls to bgp_table_init. * bgp_vty.c: ditto. * bgpd.c: ditto. * bgp_fsm.c: (bgp_timer_set) dont bring up a session which is clearing. * bgp_route.c: (general) Update all bgp_table_init calls. (bgp_process_{rsclient,main}) clear_node is serialised via PEER_STATUS_CLEARING and fsm now. (struct bgp_clear_node_queue) can be removed. struct bgp_node can be the queue item data directly, as struct peer can be kept in the new wq global user data and afi/safi can be retrieved via bgp_node -> bgp_table. (bgp_clear_route_node) fix to get peer via wq->spec.data, afi/safi via bgp_node->bgp_table. (bgp_clear_node_queue_del) no more item data to delete, only unlock the bgp_node. (bgp_clear_node_complete) only need to unset CLEARING flag and unlock struct peer. (bgp_clear_node_queue_init) queue attaches to struct peer now. record peer name as queue name. (bgp_clear_route_table) If queue transitions to active, serialise clearing by setting PEER_STATUS_CLEARING rather than plugging process queue, and lock peer while queue active. Update to pass only bgp_node as per-queue-item specific data.
| | | * | | [solaris] version depend files, auto-generate. Start zebra when needed.Paul Jakma2006-02-199-23/+28
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-19 Paul Jakma <paul.jakma@sun.com> * depend.*: renamed to depend.*.in. * depend.*.in: Add version dependency. * Makefile.am: Generate depend.* from depend.*.in Distribute the depend.*.in files rather than the depend.* files. * quagga.init.in: Enable zebra if one of the link-state daemons is started. Restart method is not required - SMF handles that. * quagga.xml.in: Remove restart method details.
| | | * | [doc] Credit Jeroen Simonetti for contributing snmptrap.texiPaul Jakma2006-02-193-179/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-19 Paul Jakma <paul.jakma@sun.com> * quagga.info: update auto-built file. * ChangeLog: Fix old, existing entry for snmptrap.texi addition to credit the author, who got in touch with me. * snmptrap.texi: Add comment line with author's details.
| | | * | [bgpd] trivial readability fixPaul Jakma2006-02-182-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-18 Paul Jakma <paul.jakma@sun.com> * bgp_route.c: (bgp_announce_check) trivial, move declaration of two local variables into the only block where they are used, to aid the reader.
| | | * | [bug #89] Fix leak of community when set community is usedPaul Jakma2006-02-182-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-02-18 Paul Jakma <paul.jakma@sun.com> * bgp_routemap.c: (route_set_community) Quick, very hacky, fix for the set-community leak, bug #89. True fix will be to detangle the web of *_intern caching and provide saner object caching for Quagga, future work.
* | | | | Merge branch 'islavista'Rick Balocca2008-12-011-0/+54
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | 3.2.0vyatta/3.2.0debian/0.99.10-2Mark O'Brien2008-11-251-0/+54
| |/ / /
* | | | Merge branch 'islavista'Rick Balocca2008-10-241-1/+1
|\| | |
| * | | Fix SEGV in ip ospf neighbor allJoakim Tjernlund2008-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | Dont use vty->index in show_ip_ospf_neighbor_all_cmd(), It is invalid, use ospf_lookup() instead.
* | | | Merge branch 'islavista'Rick Balocca2008-10-16109-775/+674
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog
| * | | Merge branch 'hollywood' into islavistaRick Balocca2008-10-161-0/+14
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bgpd/ChangeLog debian/changelog
| | * | | 3.1.4vyatta/3.1.4debian/0.99.9-14Mark O'Brien2008-10-141-0/+14
| | | | |
| | * | | [bgpd] bug #419: partial aspath-limit incorrectly causes session resetPaul Jakma2008-09-242-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-01 jfletche@gmail.com * bgp_attr.c: (bgp_attr_aspathlimit) fix silly bug in flags check that was causing BGP to drop sessions if it received a aspath-limit with partial set. Fixes bug #419.
| * | | | Notify on MTU changesStephen Hemminger2008-10-081-36/+45
| | | | | | | | | | | | | | | | | | | | | | | | | Bugfix 3732 Notify routing protocols about MTU changes
| * | | | netlink message signed/unsigned cleanupStephen Hemminger2008-10-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Avoid possible problems where netlink message is being formatted with unsigned 32 bit value, which was being read as int.
| * | | | Merge branch 'islavista' of suva.vyatta.com:/git/vyatta-quagga into islavistaStephen Hemminger2008-10-061-5/+1
| |\ \ \ \
| | * | | | Building with optimization for size gives better performanceStephen Hemminger2008-09-251-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GCC -Os flag gives better performance for most code (except scientific) because the memory footprint is smaller and more likely to fit in cache.
| * | | | | fix ipv6 typo in recursive route update codeStephen Hemminger2008-09-181-1/+1
| | | | | |
| * | | | | remove incorrect debug messageStephen Hemminger2008-09-181-2/+0
| |/ / / /
| * | | | Add delete interface cleanoutStephen Hemminger2008-09-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quagga needs to fully cleanout state when interface is deleted from system. Bugfix: 3962, 3693
| * | | | Set metric in RIB for connected routesStephen Hemminger2008-09-171-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set metric in RIB to keep OSPF happy, but don't set the metric in the kernel since the kernel portion of connected route has metric=0. Bugfix 3668
| * | | | Handle device renames correctlyStephen Hemminger2008-09-171-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bugfix 3658 If inactive device is renamed, just do it. If active device is renamed, update RIB if needed.
| * | | | Set proper protocol for routes from command lineStephen Hemminger2008-09-171-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bugzilla 3681 fix. Routes from 'ip route' default to protocol boot. Need to use this same value when deleting or udpating.
| * | | | Merge branch 'hollywood' into islavistarbalocca2008-08-261-0/+17
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: debian/changelog
| * | | | Merge branch 'islavista' of 69.59.150.140:/git/vyatta-quagga into islavistaStephen Hemminger2008-08-241-0/+1
| |\ \ \ \
| | * | | | Ignore derived filerbalocca2008-08-221-0/+1
| | | | | |
| * | | | | Fix bgp ipv4/ipv6 accept handlingStephen Hemminger2008-08-241-0/+9
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When bgp calls getaddrinfo, it gets both ipv6 and ipv4 addresses. Unless IPV6_ONLY is set on Linux, only the ipv6 bind will succeed, and the IPV4 connections will come in as mapped connections on the IPV6 socket.
| * | | | Fix up filtering of netlink pidStephen Hemminger2008-08-181-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two distinct pid's in netlink message. The one in the receive address is the pid of the sender (ie kernel), the other in the netlink message is the originator (ie quagga or ip command).
| * | | | Revert "Filter messages so that only netlink messages from kernel are allowed."Stephen Hemminger2008-08-181-19/+27
| | | | | | | | | | | | | | | | | | | | This reverts commit e5d63369e1f3fdc1c22ae15fe477de1f97022703.
| * | | | Use XCALLOCStephen Hemminger2008-08-1834-199/+59
| | | | | | | | | | | | | | | | | | | | Replace calls to XMALLOC followed by memset with XCALLOC.
| * | | | Filter messages so that only netlink messages from kernel are allowed.Stephen Hemminger2008-08-181-27/+19
| | | | | | | | | | | | | | | | | | | | | | | | | This is a refinement of the socket filter, and also closes a security hole that would allow non-kernel messages to confuse quagga.
| * | | | Ignore both names for this packageStephen Hemminger2008-08-151-0/+1
| | | | |
| * | | | Enable zebra to manage system routesStephen Hemminger2008-08-151-1/+1
| | | | |
| * | | | Manage system routes with zebraStephen Hemminger2008-08-1513-128/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new flag to the zebra daemon that causes it to add and remove system routes (ie connected and kernel routes). This causes user space (zebra) to do what the kernel was doing in hollwood.