summaryrefslogtreecommitdiffstats
path: root/isisd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* isisd: implement draft-ietf-isis-ext-eth and support p2p over LAN on BSDChristian Franke2017-04-283-32/+16
| | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org>
* isisd: do some cleanup on the spf implementationChristian Franke2017-04-282-419/+225
| | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org>
* isisd: function lsp_te_tlv_fit is never usedChristian Franke2017-04-282-60/+0
| | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org>
* isisd: Fix some various clang warningsDonald Sharp2017-04-012-8/+8
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* *: apply DEFUN_NOSH for node-switch CLI commandsDavid Lamparter2017-03-281-1/+1
| | | | | | | | | | These have copies in vtysh that do the node-switch locally and are listed in extract.pl's ignore list. The ignore list however is redundant since DEFUN_NOSH does the same thing... ldpd is a bit hacky, but Renato is reworking this anyway. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: Refactor if_lookup_by_name to be VRF awareDonald Sharp2017-03-151-1/+1
| | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* isisd: remove reload-by-reexecDavid Lamparter2017-03-081-38/+1
| | | | | | This is a quite horrible mechanism... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* lib: remove remaining struct zlog * argsDavid Lamparter2017-03-081-1/+1
| | | | | | These don't serve any purpose either. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: add frr_run()David Lamparter2017-03-081-11/+1
| | | | | | | Contains the fetch-and-run-thread logic, and vty startup (which is the last thing happening before entering the main loop). Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: add frr_config_fork()David Lamparter2017-03-081-56/+3
| | | | | | | | | Centralise read_config/daemonize/dryrun/pidfile/vty_serv into libfrr. This also makes multi-instance pid/config handling available as part of the library. It's only wired up in ospfd, but the code is in lib/. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: centralize more into frr_init()David Lamparter2017-03-071-4/+1
| | | | | | Move CLI/VTY/Memory accounting init into frr_* Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* *: add frr_init() infrastructureDavid Lamparter2017-03-071-100/+28
| | | | | | | | | Start centralising startup & option parsing into the library. FRR_DAEMON_INFO is a bit weird, but it will become useful later (e.g. for killing the ZLOG_* enum, and having the daemon name available) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* isisd: Clean up leaked memoryDonald Sharp2017-03-011-0/+1
| | | | | | | When in error path clean up the route table created. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* Merge pull request #219 from ↵Donald Sharp2017-02-246-136/+197
|\ | | | | | | | | opensourcerouting/feature/isis-draft-ietf-rtgwg-backoff-algo Add support for draft-ietf-rtgwg-backoff-algo to IS-IS
| * isisd: add support for draft-ietf-rtgwg-backoff-algoStephane Litkowski2017-02-224-0/+161
| | | | | | | | | | Adds CLI command "spf-delay-ietf" to area node for configuration and "show isis spf-delay-ietf" to enable node for displaying status.
| * isisd: cleanup SPF schedulingStephane Litkowski2017-02-226-136/+36
| | | | | | | | | | | | | | | | | | | | - SPF is now per level only (no more per family) - t_spf and pending removed from struct spftree and moved to spf_timer field in struct isis_area - show isis summary output changed to accomodate the per level SPF - isis_spf_schedule6 and isis_run_spf6_lx functions are removed, isis_run_spf_lx now calls isis_run_spf for both INET and INET6 - lsp related functions now call isis_spf_schedule only
* | Merge remote-tracking branch 'origin/stable/2.0'Donald Sharp2017-02-246-17/+18
|\ \ | |/ |/|
| * isisd: address coverity findingsChristian Franke2017-02-136-21/+18
| |
* | Merge remote-tracking branch 'origin/stable/2.0'Donald Sharp2017-02-071-1/+1
|\|
| * *: Convert libzebra -> libfrrDonald Sharp2017-02-031-1/+1
| | | | | | | | | | | | | | The library libzebra that is installed with FRR will conflict with Quagga. So let's rename it to libfrr. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | Merge remote-tracking branch 'origin/stable/2.0'Donald Sharp2017-02-023-8/+62
|\|
| * *: fix warning fallout from set_socket_pathDavid Lamparter2017-02-011-1/+1
| | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * isisd: parse TE-IP reachability and IPv6 reachability subtlvsChristian Franke2017-01-312-7/+51
| | | | | | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org>
| * isisd: Add vty_socket cli option to override the compiled-in location for ↵Martin Winter2017-01-251-1/+11
| | | | | | | | | | | | the VTY Socket Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
* | lib: send ZAPI IPv6 source prefixDavid Lamparter2017-01-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | This introduces ZAPI_MESSAGE_SRCPFX, and if set adds a source prefix field to ZAPI IPv6 route messages sent from daemons to zebra. The function calls all have a new prefix_ipv6 * argument specifying the source, or NULL. All daemons currently supply NULL. Zebra support for processing the field was added in the previous patch, however, zebra does not do anything useful with the value yet. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | *: Fix redistribute issueDonald Sharp2017-01-271-2/+2
| | | | | | | | | | | | | | | | | | | | Somewhere in the past we switched from using the auto-generated redistribute statements to a non-generated version. This caused us to loose new protocols to redistribute as they are added. Put it back. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | Merge pull request #104 from opensourcerouting/time-cleanupDonald Sharp2017-01-241-2/+2
|\ \ | | | | | | Time cleanup
| * | *: use monotime()David Lamparter2017-01-231-2/+2
| | | | | | | | | | | | | | | | | | This is largely a bulk-replace made with coccinelle. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | | isisd: Fix unused variable in some situations.Donald Sharp2017-01-191-1/+4
|/ / | | | | | | | | | | | | Fix an unused variable for certain compile options. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | Merge branch 'master' into cleanupDonald Sharp2017-01-131-0/+8
|\ \
| * | Merge branch 'stable/2.0-for-merge'David Lamparter2017-01-131-0/+8
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts (CLI vs. atol()): - bgpd/bgp_vty.c - ospfd/ospf_vty.c - zebra/zebra_vty.c NB: pull req #65 (LabNConsulting/working/2.0/afi-safi-vty/c) was excluded from this merge. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| | * isisd: clean up own LSPs correctly on updateChristian Franke2017-01-061-0/+8
| | | | | | | | | | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org>
* | | frr: Remove HAVE_IPV6 from code baseDonald Sharp2017-01-1315-201/+2
|/ / | | | | | | Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* | Merge branch 'master' into fix-proto_redistnumQuentin Young2017-01-074-13/+16
|\ \
| * | Merge remote-tracking branch 'origin/stable/2.0'Donald Sharp2017-01-063-12/+15
| |\|
| | * isisd: don't generate LSPs with LSP-ID zero on is-type changeChristian Franke2017-01-051-4/+7
| | | | | | | | | | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org>
| | * build: rename (2 of ?): route_types macrosDavid Lamparter2016-12-201-4/+4
| | | | | | | | | | | | | | | | | | | | | All of the autogenerated macros in lib/route_types.pl are now called FRR_* instead of QUAGGA_*. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| | * build: rename (1 of ?): configure.ac + preprocDavid Lamparter2016-12-201-6/+6
| | | | | | | | | | | | | | | | | | | | | This replaces Quagga -> FRR in most configure.ac settings as well as a handful of preprocessor macros in the source code. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * | Rationalize Link Parameters flagsOlivier Dugeon2017-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/if.h: Remove LP_TE as Link Parameters is set if different from 0 See IS_LINK_PARAMS_SET macro and use LP_TE_METRIC to determine if TE metric is set or not * lib/if.c: replace LP_TE by LP_TE_METRIC in default LP status * zebra/interface.c: replace LP_TE by LP_TE_METRIC and check if TE metric is equal to standard metric or not * ospfd/ospf_te.c: replace LP_TE by LP_TE_METRIC * isisd/isis_te.c: replace LP_TE by LP_TE_METRIC Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
* | | all: use ->text when parsing protocol argumentQuentin Young2016-12-161-4/+4
|/ / | | | | | | | | | | and match on full protocol name in proto_redistnum() Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* | *: kill useless if(...) after VTY_DECLVAR_CONTEXTDavid Lamparter2016-12-091-12/+0
| | | | | | | | | | | | | | VTY_DECLVAR_CONTEXT already contains a NULL check, vty warning message and return statement. These are not needed. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | lib: remove vty->indexDavid Lamparter2016-12-091-2/+1
| | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | Merge branch 'stable/2.0'David Lamparter2016-12-084-53/+15
|\| | | | | | | | | | | | | | | Conflicts: bgpd/rfapi/bgp_rfapi_cfg.c bgpd/rfapi/vnc_debug.c Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * Merge branch '-isisd-simpl' into stable/2.0David Lamparter2016-12-083-50/+15
| |\ | | | | | | | | | Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| | * isisd: create the isis_circuit_prepare() helper functionRenato Westphal2016-11-283-18/+15
| | | | | | | | | | | | | | | | | | | | | | | | This reduces code duplication and the likelihood of a bug like 186534 ("isisd: fix loss of packets after circuit is brought up") to happen again. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
| | * isisd: use a smaller #ifdef for isis_receive()Renato Westphal2016-11-281-36/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's no need to provide two definitions of the isis_receive() function (one for GNU_LINUX and the other for !GNU_LINUX). Both differ only slightly so it makes more sense to define isis_receive() just once and use a smaller #ifdef to account for these differences. This improves code readability. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
| * | isisd: Remove unnecessary debugDonald Sharp2016-12-081-3/+0
| | | | | | | | | | | | | | | | | | | | | Remove unnecessary debug from isis write mem. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* | | Merge remote-tracking branch 'osr_private_quagga/queue/osr/vtysh-generic' ↵Quentin Young2016-12-0226-3350/+37
|\ \ \ | | | | | | | | | | | | into vtysh-grammar
| * | | *: make DEFUN installations file-localDavid Lamparter2016-12-011-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves all install_element calls into the file where the DEFUNs are located. This fixes several small related bugs: - ospf6d wasn't installing a "no interface FOO" command - zebra had a useless copy of "interface FOO" - pimd's copy of "interface FOO" was not setting qobj_index, which means "description LINE" commands would fail with an error The next commit will do the actual act of making "foo_cmd" static. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| * | | Merge branch 'vtysh-grammar'David Lamparter2016-11-285-868/+390
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: isisd/isisd.c lib/Makefile.am lib/thread.c Signed-off-by: David Lamparter <equinox@opensourcerouting.org>