summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | fix typoStephen Hemminger2008-12-161-1/+1
| | |
| * | Revised version if interface renamingStephen Hemminger2008-12-163-26/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This resolves issue with static routes of multilink. In the multilink case, route is created before device exists. Later device is created as ppp0 and gets renamed to ml0. Zebra needed to orphan the old interface structure and create a new one to correctly match up the interface with the inactive route.
| * | Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-quagga into jennerStephen Hemminger2008-12-157-44/+48
| |\ \
| | * \ Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-quagga into jennerStephen Hemminger2008-12-152-1/+2
| | |\ \
| | | * | "files" file should be removed before package buildAn-Cheng Huang2008-12-121-0/+1
| | | | |
| | | * | update maintainer informationAn-Cheng Huang2008-12-121-1/+1
| | | | |
| | * | | Fix management of interface renamesStephen Hemminger2008-12-123-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | Need to delete then add since zebra has no clean way to pass around rename, and the configuration is based on name not ifindex.
| | * | | Handle interfaces coming back from deadStephen Hemminger2008-12-121-15/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Need to handle the case where interface comes back after being deleted. After deletion state is retained but ifindex is set to IFINDEX_INTERNAL. When new interface arrives with same name, then update index
| | * | | Don't delete interface completely when kernel notifies of loss of linkStephen Hemminger2008-12-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | The name has to continue to exist after delete in order to prevent crashes of daemon (BZ 3990) and restart of multilink interfaces (BZ 3987).
| | * | | Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-quagga into jennerStephen Hemminger2008-12-051-0/+54
| | |\| |
| | * | | Use start-stop-daemon to retryStephen Hemminger2008-12-051-23/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Speed up shutdown by using the existing pid file, and having start-stop-daemon do the retry.
| | * | | Turn on block rearranging.Stephen Hemminger2008-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | This optimization is by default off with -Os
| * | | | Ignore delete address message interface is goneStephen Hemminger2008-12-151-0/+3
| | |/ / | |/| | | | | | | | | | | | | | Kernel can sometimes send delete address messages after device has been deleted.
| * | | Merge branch 'islavista' into jennerRick Balocca2008-12-031-0/+54
| |\ \ \ | | |/ / | |/| |
| * | | Remember protocol as well as scope in RIBStephen Hemminger2008-12-027-37/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses potential issues with link management when multiple routing protocols are in use. Also fix non-linux build issues
| * | | Fix inversion of likely/unlikely in assertStephen Hemminger2008-12-021-11/+3
| | | |
| * | | Minor whitespaceStephen Hemminger2008-12-012-2/+1
| | | | | | | | | | | | | | | | | | | | Make the quagga upstream and vyatta where only difference was white space.
| * | | Revert "Add compiler directive to mark code paths that log as cold"Stephen Hemminger2008-12-012-26/+18
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ebc04ce20a871c99dbb116a4fbada967dd750c43. Don't really need this and it would be too hard to convince upstream to take it.
| * | | Make command nodes static (again)Stephen Hemminger2008-12-011-4/+4
| | | | | | | | | | | | | | | | Change lost in merge.
| * | | Make command nodes static (again)Stephen Hemminger2008-12-011-6/+6
| | | | | | | | | | | | | | | | Change lost in merge.
| * | | Use XCALLOC instead of XMALLOC/memsetStephen Hemminger2008-12-011-6/+2
| | | | | | | | | | | | | | | | A couple more trivial optimization.
| * | | Merge branch 'master' of /home/shemminger/src/quagga into jennerStephen Hemminger2008-12-016-55/+578
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | Conflicts: lib/checksum.c
| | * | [lib] fix missing sockunion_normalise_mappedPaul Jakma2008-11-241-0/+1
| | | | | | | | | | | | | | | | | | | | * lib/sockunion.c: (sockunion_accept) sockunion needs to be normalised here, as it used to before this was moved to a dedicated function..
| | * | [bgpd] Add 'show bgp views' commandMichael Lambert2008-11-161-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bgp_vty.c: (show_bgp_views_cmd) new command to list all defined views. (with small edits by Paul Jakma) Signed-off-by: Paul Jakma <paul@quagga.net>
| | * | [lib] Switch Fletcher checksum back to old ospfd versionPaul Jakma2008-11-164-34/+523
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/checksum.c: (fletcher_checksum) Switch the second phase of the checksum back to the old ospfd logic. The isisd-derived version: a) is very hard to follow b) had some kind of subtle bug that caused it be wrong when c0=0 and c1=254 (potentially fixable by doing the mods before adjusting x and y) Additionally: - explicitely cast expressions using non-internal variables to int, to ensure the result is signed. - defensively change the length argument to 'size_t', to ensure the code works with that argument being unsigned.. Thanks to Joakim Tjernlund for the investigative work into this bug. * tests/test-checksum.c: new file to exercise the checksum code.
| * | | Remove unnecessary modprobeStephen Hemminger2008-11-241-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | Capabilities are always built into the vyatta kernel (don't think they can even be a module anymore). So avoid overhead of unneeeded modprobe on boot.
| * | | add support for development buildAn-Cheng Huang2008-11-191-1/+5
| | | |
| * | | Fix Fletcher checksum bug.Joakim Tjernlund2008-11-071-39/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new impl. of the Fletcher checkum is buggy. I have changed back the critical part to the orginal method and fixed the buggy one, hid it behind UNSIGNED_FLETCHER. Also did some simple optimizations to reduce the number of instructions in the hot path for both fletcher_checksum() and in_cksum().
| * | | Fix 2814: Add "show ip route summary" command.Stig Thormodsrud2008-11-041-35/+86
| | | |
| * | | Ignore derived filerbalocca2008-10-291-1/+1
| | | |
| * | | Merge in latest quagga (0.99.11)Stephen Hemminger2008-10-27166-24139/+1893
| |\ \ \ | | | | | | | | | | | | | | | Merge in current upstream version of quagga.
| | * | | Merge branch 'master' of /home/shemminger/src/quagga into upstreamStephen Hemminger2008-10-13182-24134/+2554
| | |\| | | | | | | | | | | | | | | | | Resolve all conflicts by using upstream version.
| | | * | [vtysh] Add commands from zebra_routemap.c to vtyshBartek Kania2008-10-041-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: vtysh should also pull in commands from zebra_routemap.c Signed-off-by: Paul Jakma <paul@quagga.net>
| | | * | Merge branch 'bgpd/fsm'Paul Jakma2008-10-021-4/+5
| | | |\ \
| | | | * | [bgpd] Allow accepted peers to progress even if realpeer is in ConnectPaul Jakma2008-09-091-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bgpd/bgp_packet.c: (bgp_open_receive) Try fix the little race in the FSM, where a accept-peer that progress faster than realpeer gets closed down if realpeer is still just in Connect, by allowing the realpeer to be bgp_stop'ed and doing the regular swapping-of-FSM state.
| | | * | | [release] Bump version to 0.99.11quagga_0_99_11_releasePaul Jakma2008-10-021-1/+1
| | | | | |
| | | * | | [bgpd] Fix definition of an rsclient commandMichael Lambert2008-09-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bgp_route.c: (show_ip_bgp_view_rsclient_route_cmd) Add the missing "ip" to the command string. Signed-off-by: Paul Jakma <paul@quagga.net>
| | | * | | [ospfd] Fix SEGV during startup introduced in recent commitJoakim Tjernlund2008-09-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ospfd/ospfd.c: (opsf_if_update) Check if ospf_lookup() returns NULL. Fixes bug introduced with recent ospf_network_run changes in a49eb30a, where SEGV will happen if not the "router ospf" command has been executed before the first interfaces are reported by zebra. Signed-off-by: Paul Jakma <paul@quagga.net>
| | | * | | [ospfd] Move passive interface checkJoakim Tjernlund2008-09-241-18/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ospf_packet.c: Apply passive check and drop for all packages and not just Hellos. Signed-off-by: Paul Jakma <paul@quagga.net>
| | | * | | [build] Fix --enable-pie so it can actually be disabledPaul P Komkoff Jr2008-09-241-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Paul Jakma <paul@quagga.net>
| | | * | | [lib] re-enable conversion of v6mapped INET6 sockunions to regular INETPaul Jakma2008-09-091-40/+20
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/sockunion.c: Re-enable conversion of v6mapped INET6 sockunions to regular INET sockunions, which was disabled in 0df7c9, as it leads to failures in sockunion_cmp. (sockunion_normalise_mapped) consolidate here (sockunion_accept) remove conversion code altogether here - no sockunion is created (sockunion_get{sockname,peername}) normalise newly created sockunion.
| | | * | [bgpd] Document the FSM dummy-peer race that sometimes afflicts session setupPaul Jakma2008-09-061-0/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bgp_packet.c: (bgp_open_receive) the accept-peer hack can sometimes cause a race between two peers that try to establish sessions to each other, causing session setup to fail when it should have succeeded. In the worst case, the race can 'loop', causing prolonged failure to establish sessions.
| | | * | Merge branch 'restricted-mode'Paul Jakma2008-09-047-4/+171
| | | |\ \
| | | | * | [vty] Add support for a 'restricted mode' with anonymous vty connectionsPaul Jakma2008-08-237-4/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/command.h: Add a RESTRICTED_NODE, intended for use with anonymous, 'no login' vtys, to provide a subset of 'view' mode commands. * lib/command.c: Add RESTRICTED_NODE bits, nothing special, just following VIEW_NODE. * lib/vty.c: (vty_auth) enable authentication should fall back to restricted/view node as appropriate. (vty_create) init vty's to restricted/view node as appropriate, for the 'no login' case. (vty_{no_,}restricted_mode_cmd) config commands to enable 'anonymous restricted' in vty configuration. (vty_config_write) 'anonymous restricted' config. (vty_init) Install some commands to restricted mode, and the 'anonymous restricted' config commands into VTY_NODE. * bgpd/*.c: Install some of the safe(r) BGP commands into 'restricted mode', i.e. lookup commands of non-sensitive data. Useful with looking-glass route-servers.
| | | * | | [ospfd] Minor enhancements to recent self-host-routes suppression patchPaul Jakma2008-09-043-22/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ospf_spf.c: (ospf_spf_process_stubs) Track whether parent router vertex is the root, so that the host-route suppression logic need only be activated for such vertices. Move the actual logic to ospf_intra_add_stub. * ospf_route.c: (ospf_intra_add_stub) Main test of link moved here, notionally more appropriate.
| | | * | | Merge commit 'remotes/jocke/delete_ghost_route'Paul Jakma2008-09-031-1/+15
| | | |\ \ \
| | | | * | | Ignore host routes to self.Joakim Tjernlund2008-08-251-1/+15
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PtP links with /32 masks adds host routes to the remote host, see RFC 2328, 12.4.1.1, Option 1. Make sure that such routes are ignored
| | | * | | Merge commit '53d0deceeb855493aa03c59477f8af7f6bb75140'Paul Jakma2008-09-021-6/+14
| | | |\ \ \
| | | | * | | Set destination for PtP links to OSPF_ALLSPFROUTERS.Joakim Tjernlund2008-08-251-6/+14
| | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update ospf_db_desc_send(), ospf_ls_upd_queue_send() and ospf_ls_req_send() to always use OSPF_ALLSPFROUTERS for PtP links. See RFC 2328, chap 8.1 for details: "The IP destination address for the packet is selected as follows. On physical point-to-point networks, the IP destination is always set to the address AllSPFRouters." Without this, it won't be possible to establish adjacencies on multiple unnumbered links to the same router. ChangeLog: 2008-07-25 Joakim Tjernlund <Joakim.Tjernlund@transmode.se> * ospfd/ospf_packet.c: Set destination for PtP links to OSPF_ALLSPFROUTERS.
| | | * | | [ospfd] Restructure opsf_if_update() and ospf_network_run()Joakim Tjernlund2008-09-023-121/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an struct interface paramenter and adjust the affected code accordingly. The old code was a mess looping over all interfaces several times when one interface was added/changed. * ospfd/ospfd.h: Add struct interface parameter to ospf_if_update() * ospfd/ospf_zebra.c: Add ifp arg to ospf_if_update() calls. (ospf_interface_address_delete) delete ospf_if_update() call, redundant as function calls ospf_if_free() itself. * ospfd/ospfd.c: (ospf_network_unset) handle deconfiguration here, rather than ospf_if_update. (ospf_network_run_interface) ospf_network_run, for any given interface. (ospf_network_run) move guts to previous, and use it. (ospf_if_update) Adjust to take struct interface as argument, as all callers have a specific ifp in mind. Iterate over ifp's connected list and call ospf_network_run_interface instead of ospf_network_run, turning this path into O(nm) rather than O(n^2). Adjust all code dealing with opsf_if_update and ospf_network_run to pass the new struct interface * arg. (some minor modifications and bug-additions by Paul Jakma). Signed-off-by: Paul Jakma <paul@quagga.net>