summaryrefslogtreecommitdiffstats
path: root/zebra
Commit message (Collapse)AuthorAgeFilesLines
* Allow recursive route with any nexthopStephen Hemminger2009-05-272-4/+5
| | | | | | Bug 4228 Mark static routes as internal. By marking static routes as internal, they get re-evaluated as possible recursive routes.
* ZEBRA make message table read onlyStephen Hemminger2009-05-151-1/+1
|
* RFC 4191 Default Router Preference support for router advertisementsChris Caputo2009-05-074-2/+82
| | | | | | | | | On Sun, 3 May 2009, Chris Caputo wrote: > For consideration... Feedback welcome. 2nd version. (fix to adhere to a "MUST" clause in the RFC) Chris
* Don't delete too many routes.Joakim Tjernlund2009-05-061-1/+8
| | | | | | | | | | If there are two paralell PtP links to the same router: C * 192.168.101.112/32 is directly connected, p1-4-19-4-20 C>* 192.168.101.112/32 is directly connected, p1-4-17-4-18 and the cable is to one of the ppp links is pulled, Zebra deletes both routes instead of just the one that got yanked. This fixes it to only delete the route to the interface that got yanked.
* Compiler warning fixes for when --enable-snmp is configured.Chris Caputo2009-05-061-13/+18
| | | | | Compiled on 32-bit and 64-bit linux gcc 4.1.2 platforms. No run-time testing on 32-bit and limited run-time testing on 64-bit.
* Handle kernel flush when address is deletedStephen Hemminger2009-04-293-1/+71
| | | | | | | When interface addresses are deleted, the kernel will flush all routes. Quagga needs to follow this correctly. Relates to DHCP bugs 4314, 4315, ...
* Use INET6_ADDRSTRLEN rather than BUFSIZStephen Hemminger2009-04-291-4/+6
| | | | Don't need whole 1K buffer for IPV6 address
* Remove unused structure elementStephen Hemminger2009-04-291-3/+0
|
* Force rib_update when connected route deletedStephen Hemminger2009-04-291-0/+4
|
* Use INET6_ADDRSTRLEN instead of BUFSIZStephen Hemminger2009-04-281-2/+2
|
* Use correct buffer size for inet_ntop()Stephen Hemminger2009-04-281-17/+17
| | | | | Don't need big buffer 1024 to hold IPV4 (INET_ADDRSTRLEN) or IPV6 (INET6_ADDRSTRLEN) message.
* Rearrange code to print out more info from netlink messagesStephen Hemminger2009-04-281-47/+20
| | | | | Want to see the route being added/deleted before deciding to ignore.
* Rename rib_system_route to interface_manage_modeStephen Hemminger2009-04-283-18/+23
| | | | More descriptive name which matches usage.
* Keep quagga away from kernel routesStephen Hemminger2009-04-132-18/+7
| | | | | | | Any route created via 'ip route' etc, is a kernel route, and Quagga needs to not be trying to add/remove it from FIB on link events. It is probably something like openvpn, dhcp, etc, which can take care of it's own route events.
* Fix compiler warningsStephen Hemminger2009-04-132-5/+5
| | | | Resolve gcc warnings about signed/unsigned and missing parens
* Zebra: remember metric of kernel routeStephen Hemminger2009-04-071-4/+10
| | | | | When kernel notifies zebra about route, zebra needs to remember and use that metric.
* copy config for renamed interfaces.Joakim Tjernlund2009-03-301-0/+1
| | | | | When renameing an interface to a preconfigured name, make sure that the preconfigured config is preserved.
* zebra: minor whitespace stuffStephen Hemminger2009-02-092-1/+1
|
* zebra: disambiguate up from operativeStephen Hemminger2009-02-091-5/+5
| | | | | Some changes are allowed when link is down but interface is up. Others (like delete) should not be possible when only link is down.
* zebra: rtadv use ansi-c prototoypeStephen Hemminger2009-02-091-1/+1
|
* Convert XMALLOC/memset to XCALLOCStephen Hemminger2009-02-091-4/+1
| | | | Simple conversion of XMALLOC/memset to XCALLOC
* Move pid check back to original locationStephen Hemminger2009-01-081-7/+7
| | | | | There is a possiblity of some hostile netlink user getting bogus responses in the conversation between zebra and kernel.
* Add more to interface rename updatesStephen Hemminger2008-12-231-23/+36
| | | | | When interface is renamed notify daemons of addresses that are now available.
* Add diagnostic messagesStephen Hemminger2008-12-231-2/+3
| | | | More diagnostic messages in case of updating existing route.
* Add diagnostic messagesStephen Hemminger2008-12-231-2/+8
| | | | More messages in case of netlink errors, and debugging
* Fix recursive route handlingStephen Hemminger2008-12-221-7/+30
| | | | If route type or other index changes flag it as changed.
* Handle rename to existing deviceStephen Hemminger2008-12-191-10/+13
| | | | | | In the case of rename, delete_retain would be called twice. Once when the interface is removed from the system, and again when interface is being replaced during rename.
* Interface rename changesStephen Hemminger2008-12-192-18/+25
| | | | | | When interface is created, associate it with any pre-existing configuration. When interface is renamed, notify protocols that is deleted/added but keep existing address information.
* Revert "Revised version if interface renaming"Stephen Hemminger2008-12-173-18/+26
| | | | | | | | This reverts commit 3b1779981cd67679dd4cddd70160859ca3d862d7. Conflicts: zebra/rt_netlink.c
* 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-153-4/+19
|\
| * 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.
| * 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).
* | Ignore delete address message interface is goneStephen Hemminger2008-12-151-0/+3
|/ | | | | Kernel can sometimes send delete address messages after device has been deleted.
* 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 2814: Add "show ip route summary" command.Stig Thormodsrud2008-11-041-35/+86
|
* Merge in latest quagga (0.99.11)Stephen Hemminger2008-10-278-2717/+27
|\ | | | | | | Merge in current upstream version of quagga.
| * Merge branch 'master' of /home/shemminger/src/quagga into upstreamStephen Hemminger2008-10-1311-2926/+353
| |\ | | | | | | | | | Resolve all conflicts by using upstream version.
| | *-. Merge commit 'remotes/jocke/ospf_neighbour'; commit ↵Paul Jakma2008-09-011-1/+3
| | |\ \ | | | | | | | | | | | | | | | 'remotes/jocke/snmp_crosscompile'
| | | | * Make --enable-snmp cross compile and make libcrypto optional with ↵Joakim Tjernlund2008-08-251-1/+3
| | | |/ | | | | | | | | | | | | | | | | | | | | | | | | --without-crypto Autoconfig work by me, the rest was done by "Kirill K. Smirnov" <lich@math.spbu.ru>
| | * / testPaul Jakma2008-08-261-1/+1
| | |/
| | * [administrivia] Update gitignore filesPaul Jakma2008-08-221-1/+1
| | | | | | | | | | | | - Add more stuff, archive libraries, etc..
| | * [administrivia] Git should ignore backup files and .loT filesPaul Jakma2008-08-221-0/+3
| | |
| | * [trivia] Remove ChangeLog files, as this data is now maintained in SCMPaul Jakma2008-08-221-2712/+0
| | |
| | * [zebra] trivial: fix spelling mistakeStephen Hemminger2008-08-221-1/+1
| | |
| | * [zebra] trivia: static qualifiers for metaqStephen Hemminger2008-08-221-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-17 Stephen Hemminger <stephen.hemminger@vyatta.com> * zebra_rib.c: (process_subq) mark static (rib_meta_queue_add) ditto (meta_queue_new) ditt Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra] make some data localStephen Hemminger2008-08-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2008-06-17 Stephen Hemminger <stephen.hemminger@vyatta.com> * zebra_rib.c: static qualifier on local data Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra] ignore dead routes in RIB updateStephen Hemminger2008-08-221-17/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-17 Stephen Hemminger <stephen.hemminger@vyatta.com> * zebra_rib.c: When doing a RIB update, routes in process of removal should be ignored. This fixes bugs where a route is removed but a recursive route is not changed. Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra:linux] netlink: no need to change privs for receiveStephen Hemminger2008-08-221-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-17 Stephen Hemminger <stephen.hemminger@vyatta.com> * rt_netlink.c: (netlink_parse_info) Linux doesn't check privledges on receive, so avoid the overhead of lowering and raising the priviledges on each received message Signed-off-by: Paul Jakma <paul@quagga.net>