summaryrefslogtreecommitdiff
path: root/babeld
AgeCommit message (Collapse)Author
2012-04-28babeld: merge kernel_zebra.c into kernel.c.Juliusz Chroboczek
In upstream babel, we include different kernel_foo files depending on the platform we compile for. In Quagga, this is not needed, and it avoids tricky autotools issues. (All autotools issues are tricky.) [David: without this commit, build breaks.] From: Juliusz Chroboczek <jch@pps.jussieu.fr> Signed-off-by: David Lamparter <equinox@diac24.net>
2012-04-28babeld: Include babel_main.h in noinst_HEADERS.Denis Ovsienko
babeld wouldn't build in a dist tarball without this. From: Denis Ovsienko <infrastation@yandex.ru> Signed-off-by: Juliusz Chroboczek <jch@pps.jussieu.fr> [fixed up git message] Signed-off-by: David Lamparter <equinox@diac24.net>
2012-03-25babeld: remove "parasitic" mode.Juliusz Chroboczek
This is the functionality described in Appendix C of RFC 6126. Its main purpose is to avoid keeping a full source table, which makes it possible to implement a subset of Babel in just a few hundred lines of code. However, in Quagga the code for maintaining the source table is already there, and a parasitic implementation can be simulated using filtering -- so it makes little sense to keep the functionality.
2012-03-25babeld: 3 more timing statements in config textDenis Ovsienko
This commit makes the following lines visible in running-config text, when respective intervals are configured to non-default values: * babel hello-interval * babel update-interval * babel resend-delay
2012-03-25babeld: consolidate zebra interface into fewer functions.Juliusz Chroboczek
2012-03-25babeld: fix typo in kernel_route_add_v6.Juliusz Chroboczek
2012-03-25babeld: set interface flags eagerly, not at interface up.Juliusz Chroboczek
2012-03-25babeld: more helpful sample conf file.Juliusz Chroboczek
2012-03-25babeld: remove remains of standalone babeld's configuration code.Juliusz Chroboczek
Standalone babeld has a configuration interface that is not used in Quagga. This removes a few bits of this code that survived the port to Quagga.
2012-03-25babeld: drive interface_config_write() forwardDenis Ovsienko
2012-03-25babeld: justify "running-config" meaning in CLIDenis Ovsienko
The primary focus of this commit is to make "show running-config" command display more current configuration, including some of the bits previously seen in the output of "show babel running-config". Besides that, the following commands were renamed for consistency with the syntax of other components: "debug *" to "debug babel *" (and moved to top level) "show babel running-config" to "show babel parameters" * babel_interface.c * show_babel_running_config(): rename to show_babel_parameters(), update syntax pattern, don't call show_babeld_configuration() * babel_if_init(): update respectively * babel_enable_if_config_write(): new VTY helper for static babel_enable_if * babel_interface.h: add extern declaration * babel_main.c: unset all debug options by default * show_babel_main_configuration(): remove debug options decoder * babel_zebra.c * babel_debug(): rename to debug_babel(), update syntax pattern * no_babel_debug(): rename to no_debug_babel(), update syntax pattern * babelz_zebra_init(): update respectively * debug_babel_config_write() new VTY helper for static debug_type * babel_zebra.h: add extern declaration * babeld.c * babel_config_write(): add the code to output "debug babel *", "router babel", "redistribute *" and "network *" statements * show_babeld_configuration(): dismiss * babeld.h: remove extern declaration * babeld.texi: update for renamed commands * babeld.conf.sample: idem, add debug statements block
2012-03-25Remove dead variable reboot_time.Juliusz Chroboczek
Thanks to Denis Ovsienko.
2012-03-25babeld: display update-interval and resend-delay in show commands"Juliusz Chroboczek
2012-03-25babeld: vty commands (hello-interval, update-interval, resend-delay).Juliusz Chroboczek
2012-03-25babeld: remove port and group setting commands.Juliusz Chroboczek
They didn't work anyway, since they're called too late.
2012-03-25Resynchronise with babeld-1.3.1.Juliusz Chroboczek
2012-03-25babeld: dismiss babel_redistribute_unset()Denis Ovsienko
The function was effectively duplicating existing zclient_redistribute(). This makes no_babel_redistribute_type() consistent with babel_redistribute_type()
2012-03-25babeld: fix wire{d,less} commands name.Matthieu Boutier
2012-03-25babeld: Add support for blackhole routes.Juliusz Chroboczek
Babel makes use of blackhole routes to prevent routing loops between overlapping prefixes shortly after a route is retracted (see RFC 6126 sections 2.8 and 3.5.5). This patch adds support for installing such blackhole routes.
2012-03-25babeld: refactor filtering stubs.Juliusz Chroboczek
Factorise the common parts of the in/out filtering functions. This also fixes a bug with filtered out routes, which in babeld are signalled by a filter returing INFINITY, not -1.
2012-03-25babeld: Use quagga_gettime.Juliusz Chroboczek
2012-03-25babeld: Don't use an ifindex when installing IPv4 routes.Juliusz Chroboczek
Stand-alone babeld installs routes using both a next-hop gateway and an interface index. Unfortunately, this doesn't work for IPv4 under Quagga. We now ignore the ifindex when installing IPv4 routes, which makes Babel work for IPv4 in prefix-based networks. Of course this breaks IPv4 mesh networks, unless you play some tricks with your interfaces' netmasks.
2012-03-25babeld: remove some unused functions' arguments.Matthieu Boutier
2012-03-25babeld: Indentation fix.Juliusz Chroboczek
2012-03-25babeld: Error handling and tweaks for babeld commands.Juliusz Chroboczek
2012-03-25babeld: Fix typo in hello interval command.Juliusz Chroboczek
2012-03-25babeld: Replace the babeld.conf.sample file by one that actually works.Juliusz Chroboczek
2012-03-25babeld: fix interface bug, simplify code.Matthieu Boutier
Perhaps could it be able to free already free memory (so free(NULL)), in function interface_reset(). On other hand, it initiated untracked interfaces, raising (at least) inappropriate messages. Finally, I remove the BABEL_IF_IS_ENABLE flag, witch was not really usefull. Note the test if_up isn't weaker, because (...IS_UP => ...IS_ENABLE).
2012-03-25babeld: state-file was loaded too early. Initial seqno too.Matthieu Boutier
2012-03-25babeld: fix eui64 features.Matthieu Boutier
We are interested by eui64 with at least 6 octets.
2012-03-25babeld: "return CMD_SUCCESS" was missing for command 'no debug'.Matthieu Boutier
2012-03-25babeld: Replace redistribution strings with route_types.h defines.Matthieu Boutier
2012-03-25babeld: babelz merge.Matthieu Boutier
Babelz is the last version of the stand-alone babel daemon. In particular, it use multiple channels to diminuate interferences. Please refer to this one for more details.
2012-03-25babeld: remove unused variable.Matthieu Boutier
2012-03-25babeld: add MP-specific zclient API fixDenis Ovsienko
Add proper initialization of SAFI field, which is present in the revisions of zapi_ipv4 and zapi_ipv6 structures specific to MP-BGP patchset. Without this change no Babel routes could make into zebra RIB.
2012-03-25babeld: change the modify route system.Matthieu Boutier
Zebra doesn't set errno to EEXIST if we add a route who was already in the kernel, so we always returned after just doing "add; delete". This patch fix the problem by doing "delete; add" always.
2012-03-25babeld: fix bug due to v4mapped addresses.Matthieu Boutier
2012-03-25babeld: add command (config) to set debug flags.Matthieu Boutier
2012-03-25babeld: remove useless variable, make local another.Matthieu Boutier
2012-03-25babeld: fix commands informations messages.Matthieu Boutier
2012-03-25babeld: place the babel-state file in the quagga vars directory.Matthieu Boutier
2012-03-25babeld: use zlog_debug instead of do_debugf, for debugf.Matthieu Boutier
2012-03-25babeld: add command: "show_babel_running_config".Matthieu Boutier
2012-03-25babeld: add command: "show_babel_database".Matthieu Boutier
2012-03-25babeld: add command: "show_babel_neighbour".Matthieu Boutier
2012-03-25babeld: avoid segfault (bug 706).Matthieu Boutier
2012-03-25babeld: change fprintf(stderr) in term of zlog_err.Matthieu Boutier
2012-03-25babeld: implement "show babel interface" commandDenis Ovsienko
* babel_interface.c * show_babel_interface_sub(): new function to process one ifp * show_babel_interface(): new function, VTY wrapper * babel_if_init(): update respectively
2012-03-25babeld: add handling of "-z" cmdline argDenis Ovsienko
2012-03-25babeld: bring babel_usage() into focusDenis Ovsienko