summaryrefslogtreecommitdiffstats
path: root/zebra
Commit message (Collapse)AuthorAgeFilesLines
* 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>
| | * [zebra:linux] netlink: quiet harmless errorsStephen Hemminger2008-08-221-21/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-06-17 Stephen Hemminger <stephen.hemminger@vyatta.com> * rt_netlink.c: (netlink_parse_info) There can be harmless races such as adding an existing route, or deleting an already deleted route. Don't bother logging these unless debugging is turned on. Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra:linux] netlink buffer size tweaking only needed on receive socketStephen Hemminger2008-08-221-43/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-16 Stephen Hemminger <stephen.hemminger@vyatta.com> * rt_netlink.c: (netlink_recvbuf) consolidate recvbuf setting (netlink_socket) no need to set receive buffer on netlink sockets generally (kernel_init) set recvbuffer on the listen socket Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra:linux] clean up blocking setting of netlink socketsStephen Hemminger2008-08-221-91/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-16 Stephen Hemminger <stephen.hemminger@vyatta.com> * zebra/rt_netlink.c: This change removes the overhead of twiddling the socket twice on every route change. The netlink support has two sockets, one is used for request/response and should always block. The other is used for asynchronous notification and should always be non-blocking. Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra:linux] Filter out unwanted netlink messages by PIDStephen Hemminger2008-08-221-46/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-16 Stephen Hemminger <stephen.hemminger@vyatta.com> * zebra/rt_netlink.c: Update the netlink socket BPF to cancel out unwanted ACKs on the listen socket by matching on the PID. Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [warnings] Fix various SOS warningsPaul Jakma2008-08-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-15 Paul Jakma <paul.jakma@sun.com> * */*: Fix various problems flagged by Sun Studio compiler. - '<qualifier> <storage>' obsolescent in declarations - empty statements (';' after ALIAS definitions) - implicit declarations (e.g printstack in lib/log.c) - "\%" in printf string instead of "%%" - loops that return on the first iteration (legitimately, but compiler can't really know), e.g. bgp_routemap.c - internal declarations which mask prototypes.
| | * [lib] mes_lookup string lookup table argument should be marked constStephen Hemminger2008-08-223-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-14 Stephen Hemminger <stephen.hemminger@vyatta.com> * lib/log.{c,h}: struct message argument should point to const * */*.c: adjust to suit, Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra] mark some rt_netlink functions staticStephen Hemminger2008-08-221-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | 2008-08-14 Stephen Hemminger <stephen.hemminger@vyatta.com> * zebra/rt_netlink.c: local functions should be static. Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [zebra:netlink] Set proto/scope on all route update messagesTimo Teräs2008-08-221-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-13 Timo Teräs <timo.teras@iki.fi> * zebra/rt_netlink.c: (netlink_route{,_multipath) Set protocol and scope appropriately for both NEW and DELROUTE messages, to avoid wiping out non-zebra routes on delete. Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [build] Test for GNU-style PIE support in toolchain and enablePaul P Komkoff Jr2008-08-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-13 Paul P Komkoff Jr <i@stingr.net> * configure.ac: add a configure flag and autoconf macro, which will determine if your toolchain supports PIE. * */Makefile.am: add corresponding CFLAGS and LDFLAGS into appropriate places. Signed-off-by: Paul Jakma <paul@quagga.net>
| | * [administrivia] Add .gitignore files, based on .cvsignores.Paul Jakma2008-08-221-0/+13
| | |
| | * [zebra] Make BSD link-state deal more gracefully with GIFMEDIA ioctl errorPaul Jakma2008-07-012-15/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-07-01 Paul Jakma <paul.jakma@sun.com> * ioctl.c: (if_get_flags) Deal more gracefully with failure of the BSD link-state SIOCGIFMEDIA ioctl, as some interfaces apparently don't implement it (e.g. tun). Also, make BSD link-state checking be conditional on the 'link-detect' interface configuration flag, as it should be. Fixes bug #465.
| | * + initial edition of meta-queue for RIB updates processing (bug #431)Denis Ovsienko2008-06-025-41/+164
| | |
| | * [daemons] Sanity check port number arguments before usePaul Jakma2008-05-291-1/+2
| | | | | | | | | | | | | | | | | | 2008-05-29 Martin Nagy <mnagy@redhat.com> * */*main.c: Sanity check port numbers before using.
| | * [zebra/linux] Use BPF to filter out responses, to try avoid netlink overrunsPaul Jakma2008-05-292-1/+60
| | | | | | | | | | | | | | | | | | | | | | | | 2008-05-29 Stephen Hemminger <stephen.hemminger@vyatta.com> * rt_netlink.c: (netlink_install_filter) BPF filter to catch and drop responses to zebra's own route messages. (kernel_init) add BPF filter on the netlink socket.
| | * + fix bug#326 by rib_lookup_and_pushup()Denis Ovsienko2008-02-264-0/+64
| | |
| | * [link-detect] Improve BSD support.Andrew J. Schorr2008-01-113-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * lib/zebra.h: Revert previous change, no need to include <net/if_media.h> here. * zebra/ioctl.c: If HAVE_BSD_LINK_DETECT is defined, include <net/if_media.h> (if_get_flags) Remove debug messages about BSD link state. * zebra/kernel_socket.c: (bsd_linkdetect_translate) If link state is unknown, we should set the IFF_RUNNING flag.
| | * [link-detect] Try to get BSD link-detect to work properly.Andrew J. Schorr2008-01-103-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-01-10 Ingo Flaschberger <if@xip.at> * configure.ac: Define HAVE_BSD_LINK_DETECT if <net/if_media.h> is present. * lib/zebra.h: If HAVE_BSD_LINK_DETECT is defined, include <net/if_media.h>. * zebra/ioctl.c: (if_get_flags) If HAVE_BSD_LINK_DETECT, use the SIOCGIFMEDIA ioctl to ascertain link state. * zebra/kernel_socket.c: (bsd_linkdetect_translate) New function to map the ifm_data.ifi_link_state value into the IFF_RUNNING flag. (ifm_read) Call bsd_linkdetect_translate to fix the IFF_RUNNING flag before calling if_flags_update.