Commit Graph

5230 Commits

Author SHA1 Message Date
Russ White
fa48eee332 Merge pull request #227 from qlyoung/stable-no-deprecated
*: remove QUAGGA_NO_DEPRECATED_INTERFACES
2017-03-01 09:53:17 -05:00
Quentin Young
855ddb28b5 *: remove QUAGGA_NO_DEPRECATED_INTERFACES
This define is used only to guard macros in lib/linklist.h which
themselves are not used anywhere in the codebase and have been marked
deprecated since anno domini 2005

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-02-27 01:14:40 +00:00
Donald Sharp
e760cc82e7 Merge pull request #221 from LabNConsulting/working/2.0/patch/issue-218
bgpd: Fix issue #218
2017-02-23 20:19:39 -05:00
Lou Berger
5f3b76145e bgpd: Fix issue #218
Wrong offset was used when using global V6 address in place of
      v6 LL.  (Introduced in earlier fix of broken RD advertisement.)

      Tested by @dslice in master.

Signed-off-by: Lou Berger <lberger@labn.net>
2017-02-23 17:48:47 -05:00
Donald Sharp
9965fdbfbf Merge pull request #220 from opensourcerouting/fixes/addpath_id
Fix bgp_info_addpath_{rx,tx}_str if addpath info is not present
2017-02-23 10:53:51 -05:00
Christian Franke
b79d6f95a3 bgpd: fix bgp_info_addpath_{rx,tx}_str if addpath info is not present
The buffer needs to be set to length 0 if nothing is written into
it, otherwise bgpd will log uninitialized memory, disclosing information
and possibly leading to a crash.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-02-23 14:27:00 +01:00
Martin Winter
5753eb9197 release: FRR 2.0-rc2
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-23 19:47:59 +07:00
Donald Sharp
b2184d8adc Merge pull request #217 from bingen/missing_desc_entry_2
Add missing DESC_ENTRY to lib/log.c
2017-02-21 12:40:31 -05:00
ßingen
4029782441 Add missing DESC_ENTRY to lib/log.c 2017-02-21 12:27:44 +01:00
Lou Berger
e2ff97b974 Merge pull request #209 from opensourcerouting/building-docs
doc: Add initial set of docs on building FRR on various Distributions
2017-02-17 10:28:52 -05:00
Martin Winter
783c4c8fa3 doc: Fix pytest installation instructions on Ubuntu 12.04
Ubuntu 12.04 doesn't have a pytest package - needs to be installed with pip

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-17 00:52:07 +07:00
Martin Winter
eb651bbceb doc: Fixed a few typos on Building Doc's, Changed Tab's to spaces and limited line length to < 80 chars where possible
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-16 22:55:09 +07:00
Martin Winter
278fb111f6 doc: Add initial set of docs on building FRR on various Distributions
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-16 16:40:09 +07:00
Donald Sharp
5b64051ef2 Merge pull request #206 from opensourcerouting/ldpd-ordered-output
ldpd: display everything in order on CLI output
2017-02-15 06:39:18 -08:00
Renato Westphal
f4dbf917b9 ldpd: fix segfault when configuring multiple pseudowires
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:34:39 -02:00
Renato Westphal
0ba645b91d ldpd: use red-black trees to store 'adj' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:23:36 -02:00
Renato Westphal
a3cb56d84a ldpd: use red-black trees to store 'l2vpn_pw' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:19:52 -02:00
Renato Westphal
7a09a2b1c4 ldpd: use red-black trees to store 'l2vpn_if' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:19:52 -02:00
Renato Westphal
2db4e1fca1 ldpd: use red-black trees to store 'l2vpn' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:19:52 -02:00
Renato Westphal
c485351c52 ldpd: use red-black trees to store 'nbr_params' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:19:52 -02:00
Renato Westphal
29f6e7acbe ldpd: use red-black trees to store 'tnbr' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:19:52 -02:00
Renato Westphal
39ec2dc9bb ldpd: use red-black trees to store 'iface' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:19:52 -02:00
Renato Westphal
9b127e5804 ldpd: use red-black trees to store 'lde_map' elements
Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-02-15 07:19:52 -02:00
Donald Sharp
50c2e7c36d Merge pull request #200 from opensourcerouting/pytest-stable
pytest for stable/2.0
2017-02-14 08:27:50 -08:00
Donald Sharp
bbaed4c210 Merge pull request #193 from opensourcerouting/mw-coverity-fixes-2
A few fixes for issues found with Coverity (v2 - replace PR 187)
2017-02-13 21:41:12 -05:00
Donald Sharp
c11c520e79 Merge pull request #201 from opensourcerouting/fixes/coverity-isis
isisd: address coverity findings
2017-02-13 21:37:37 -05:00
Russ White
cb8e1c0e41 Merge pull request #202 from opensourcerouting/fixes/gitignore-stable
*: Add missing files to gitignore
2017-02-13 19:46:10 -05:00
Christian Franke
29d63778fc *: Add missing files to gitignore 2017-02-13 22:23:34 +01:00
Christian Franke
f75352362c isisd: address coverity findings 2017-02-13 19:27:54 +01:00
David Lamparter
43dac2baae tests: fix out-of-tree build
Fix pytest with $(top_srcdir) != "."

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-02-13 17:44:03 +01:00
Christian Franke
cbbf41cbb3 tests: add pytest testrunners
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-02-13 17:43:47 +01:00
Christian Franke
30c4877560 tests: reorganize tests hierarchically
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-02-13 16:54:48 +01:00
Christian Franke
5a1218aa53 tests: remove dejagnu
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-02-13 16:53:00 +01:00
Martin Winter
9cbad1d7c4 ospfd: CID 1399387 (#1 of 2): Destination buffer too small (STRING_OVERFLOW)
Coverity: string_overflow: You might overrun the 100-character destination string vty_path by writing 4096 characters from vty_sock_path.
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-10 16:53:18 +07:00
Martin Winter
b3411578b0 lib: CID 1399296: Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_MEANT)
Needs to be a comparison, not assignment

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-10 16:52:54 +07:00
Martin Winter
4fdeb6b0af zebra: Fix CID 1399335 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH)
Needs to be size of correct structure (prefix instead of prefix_ipv4)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-10 16:52:34 +07:00
Martin Winter
fa389c272f vtysh: Fix Coverity Warning CID 1399479 (#1 of 1): Destination buffer too small (BUFFER_SIZE)
Coverity: buffer_size: You might overrun the 108 byte destination string addr.sun_path by writing the maximum 4095 bytes from path.
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-10 16:51:57 +07:00
Martin Winter
67e5d67651 ospfd: Fix Coverity Warning CID 1399480 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)
Coverity: buffer_size_warning: Calling strncpy with a maximum size argument of 100 bytes on destination array pid_file of size 100 bytes might leave the destination string unterminated.
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-02-10 16:50:23 +07:00
Donald Sharp
3cf5e24624 Merge pull request #191 from opensourcerouting/ospfclient-incl
[stable] ospfclient: #include sources
2017-02-09 12:12:17 -05:00
David Lamparter
bd9db8f46e ospfclient: #include sources
Pulling in source files from another directory breaks automake's
distclean target, and there seems to be no good fix for this...
(particularly since we need -fPIC build for a DSO here, while ospfd
compiles for an executable...)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-02-09 17:08:09 +01:00
Donald Sharp
b7671f356a Merge pull request #190 from opensourcerouting/config-write-sync-stable
[stable] lib: use fsync() for config writes, plug fd leak
2017-02-09 09:26:58 -05:00
David Lamparter
1520d0aca9 lib: use fsync() for config writes, plug fd leak
sync() has a HUGE impact on systems that perform actual I/O, i.e. real
servers...

Also, we were leaking a fd on each config write ever since
c5e69a0 "lib/vty: add separate output fd support to VTYs"
(by myself :( ...)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-02-09 14:25:55 +01:00
Lou Berger
cf80f28161 Merge pull request #179 from donaldsharp/more_quagga_fixups
*: Found some instances of Quagga.conf
2017-02-07 20:46:44 -05:00
Donald Sharp
0dca233ec0 *: Found some instances of Quagga.conf
Cleanup Quagga.conf -> Frr.conf

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-02-07 13:44:09 -05:00
Donald Sharp
2cfe3d285f Merge pull request #176 from opensourcerouting/mtype-underflow-backtrace
lib: print backtrace on MTYPE count underflow
2017-02-07 13:04:27 -05:00
Donald Sharp
dbcceee45a Merge pull request #178 from opensourcerouting/ospf_lib_private
make libfrrospf private
2017-02-07 13:04:13 -05:00
David Lamparter
03a5ba2b54 Merge pull request #173 from LabNConsulting/working/2.0/patch-set/issue-172
2.0: Fix encap attribute on wire, protect against broken object.
2017-02-07 17:27:44 +01:00
David Lamparter
3d04dc3854 ospfd: make libfrrospf a private non-dynamic lib
There's no point in installing libospf anymore, now that
libfrrospfclient doesn't link it.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-02-07 17:19:15 +01:00
David Lamparter
0a3fc2a5df ospfd: isolate ospfapiclient lib from ospf lib
The OSPF API-client library doesn't really use anything from libospf
except some small dumping tools.  Isolate these into a separate file
and detangle the ospfapiclient library.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-02-07 17:19:11 +01:00
David Lamparter
9da3dd3bc5 Merge pull request #161 from donaldsharp/stableMcLibrary
Stable mc library
2017-02-07 17:17:12 +01:00