Commit Graph

12710 Commits

Author SHA1 Message Date
David Lamparter
e10cfdaf51 bfdd: fix garbage "port" string
bfd_recv_ipv4() is getting an uninitialized buffer passed in as port,
and then checks it without clearing it first.  Thus we can end up
leaving garbage data in it.

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-08 20:34:35 +02:00
David Lamparter
4f4060f6ab *: fix clang-6 SA warnings
I don't see these in CI, but my local clang-6 does emit warnings for
these.

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-08 20:34:35 +02:00
David Lamparter
f70247febe lib: fix SA warning in skiplist code
Clang was thinking the random level could be negative.  (And, no, I
couldn't figure that out by reading its output... trial and error this
was.)

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-08 20:34:35 +02:00
David Lamparter
a43ad4fef8 lib, ldpd: fix SA warnings from TAILQ oddness
Add a TAILQ_POP_FIRST so Clang understands it's the same item that is
getting removed from the list.

Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-08 20:34:32 +02:00
David Lamparter
6317894ef3
Merge pull request #2989 from donaldsharp/static_debug
Static debug
2018-09-08 17:38:48 +02:00
David Lamparter
d1490fb796
Merge pull request #2988 from donaldsharp/more_debugs
zebra: Modify nexthop checks to report inactive a bit more
2018-09-08 17:36:18 +02:00
David Lamparter
18b43e554e
Merge pull request #2981 from donaldsharp/v6_vxlan_bug
zebra: Fix RB-Tree storage comparison function for v6
2018-09-08 17:35:20 +02:00
David Lamparter
5af18c4126
Merge pull request #2982 from donaldsharp/smux_h
lib: Add missing smux.h to `make distrib` results
2018-09-08 17:13:45 +02:00
Martin Winter
cb50f399db
Merge pull request #2949 from donaldsharp/removal
ospf6d: Remove deprecated code after 1 year
2018-09-07 19:04:51 +02:00
Quentin Young
dfeef149e9
Merge pull request #2987 from pacovn/Coverity_1473088_ovf_array_index_write
lib: array index check (Coverity 1473088)
2018-09-07 11:40:31 -04:00
Donald Sharp
aaf8c96fa9 sharpd: Fix missing 'show debug' command
The sharp daemon was not properly handling 'show debug'
commands.  Fix.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-07 07:05:35 -04:00
Donald Sharp
e60b527e66 staticd: Fix 'show debug static" command
'show debugging' is returning a Command incomplete
error message as that it is being sent to staticd
and staticd has no knowledge of it, fix this.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-07 07:01:19 -04:00
F. Aragon
aa1bac3039
lib: array index check (Coverity 1473088)
Signed-off-by: F. Aragon <paco@voltanet.io>
2018-09-07 11:20:45 +02:00
Donald Sharp
34815ea334 zebra: Modify nexthop checks to report inactive a bit more
Debugging inactive nexthops in zebra can be quite difficult
and non-obvious what has gone wrong.  Add detailed rib
debugs for the cases where we decide that a nexthop is
inactive so that we can more easily debug a reason
for the failure.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-06 20:24:00 -04:00
Renato Westphal
ccf811a32b
Merge pull request #2984 from donaldsharp/ak503_eigrp
eigrp: opnional metric in 'no redistribute'
2018-09-06 13:51:40 -03:00
Renato Westphal
f9ecc65d03
Merge pull request #2974 from donaldsharp/v4_and_v6
V4 and v6
2018-09-06 12:33:26 -03:00
dturlupov
1a5cad2e9a eigrp: opnional metric in 'no redistribute'
Signed-off-by: Dmitrii Turlupov <dturlupov@factor-rs.ru>
2018-09-06 06:14:51 -04:00
Donald Sharp
fa83edf08b doc: Update sharp documentation
Update the sharp documentation to note v6 nexthops are able
to be installed now.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-05 21:03:58 -04:00
Donald Sharp
ba041beaae sharpd: Modify route install to allow v6 nexthops
Allow the user to create a v4 route with a v6 nexthop.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-05 21:03:58 -04:00
Donald Sharp
2d68a0f2da zebra: Fix _route_entry_dump to handle nexthop family as appropriate
The _route_entry_dump function was not handling the nexthop as passed
in from an upper level protocol appropriate and as such not displaying
the v4/v6 nexthop right in the case where we have both going.

Additionally dump the nexthop vrf as well.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-05 21:02:18 -04:00
Donald Sharp
98ea5be8b3 lib: Add missing smux.h to make distrib results
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-05 20:58:50 -04:00
Donald Sharp
c279fc5fdd
Merge pull request #2959 from opensourcerouting/bfd-cleanup
bfdd: code clean up
2018-09-05 19:54:35 -04:00
Russ White
7f0f6e7b75
Merge pull request #2873 from vivek-cumulus/evpn-extended-mobility
EVPN extended mobility support
2018-09-05 18:09:31 -04:00
Donald Sharp
2acc231024 zebra: Fix RB-Tree storage comparison function for v6
The RB-Tree used to store rmac information was not properly
handling the v6 address family.  Modify the code to allow
this handling.

Cleans up this error message:

zebra[2231]: host_rb_entry_compare: Unexpected family type: 10

That is being seen, This fixes some connectivity issues being seen.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-05 17:04:35 -04:00
Rafael Zalamena
9835f17d33 bfdd: fix crash when receiving invalid echo packet
The log function would improperly format a string using an integer
causing a crash. This situation was found when switching echo mode with
a active connection.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-09-05 12:29:14 -03:00
Rafael Zalamena
8529e18048 bfdd: use THREAD_OFF() instead of thread_cancel()
Use a standardized function to cancel threads instead of hand rolling
our own.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-09-05 12:27:52 -03:00
Russ White
fc449ff00d
Merge pull request #2970 from dslicenc/more-bool-use-json
bgpd, ospfd, pimd, zebra: Convert more use_json locations to bool
2018-09-05 10:38:11 -04:00
David Lamparter
74938acb94
Merge pull request #2971 from qlyoung/misc-doc-updates
doc: fix building.rst index
2018-09-04 21:36:14 +02:00
Quentin Young
2862f9e185 doc: fix building.rst index
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-09-04 19:28:42 +00:00
Don Slice
088f109866 bgpd, ospfd, pimd, zebra: Convert more use_json locations to bool
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
2018-09-04 17:39:04 +00:00
Quentin Young
0895ecd3d8
Merge pull request #2909 from netravnen/feature/git-pl-template
Add github pull-request-template.md
2018-09-04 11:56:43 -04:00
David Lamparter
6a314aaf35
Merge pull request #2934 from LabNConsulting/working/master/rfapi_topotest_support
add some testing support for use in rfapi topotest
2018-09-04 17:42:32 +02:00
Russ White
1b7958c890
Merge pull request #2939 from netravnen/feature/git-issue-teplate
Add ISSUE_TEMPLATE
2018-09-04 11:28:18 -04:00
David Lamparter
cefe81a9a0
Merge pull request #2966 from donaldsharp/v6_cleanup
lib: Remove dead code
2018-09-04 16:17:39 +02:00
Donald Sharp
ba50512125 lib: Remove dead code
The ZEBRA_IPV4_ROUTE_IPV6_NEXTHOP_ADD zapi message has no creators and
no handlers.  Let's just remove.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-09-04 09:14:53 -04:00
Rafael Zalamena
2f11c53f55 bfdd: use UDP sockets instead of raw
Avoid all complexities of handling ethernet/IP/UDP headers and just use
UDP sockets: let the OS kernel handle this task.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-09-03 10:41:33 -03:00
Rafael Zalamena
40675ea908 bfdd: enumerate all diagnositic codes
Enumerate all codes, update the string representation and fix the
misdiagnosed echo failure.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-09-03 10:41:33 -03:00
Rafael Zalamena
50571b2ee7 bfdd: make bfd_recv_* more generic
We'll reuse these functions later to receive echo packets, so we need
to despecialize them first. Another improvement here is that we are
going to remove the global buffer variable and opt to use the stack.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-09-03 10:41:33 -03:00
Rafael Zalamena
8a9f760ed9 bfdd: remove VxLAN code
Remove all VxLAN code. There are probably better ways to write VxLAN
support without having to use raw sockets and depend on extra user
configuration input.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-09-03 10:41:33 -03:00
Rafael Zalamena
6e01e275dd bfdd: remove global variables and improve logs
Remove some more global variables and make the log messages look like
the rest of the code.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-09-03 10:41:33 -03:00
David Lamparter
3bf513a597
Merge pull request #2950 from qlyoung/misc-doc-updates
Misc doc updates
2018-09-01 05:06:46 +02:00
David Lamparter
1fbd4e382a
Merge pull request #2945 from dslicenc/bgp-ospf-json
bgpd/ospfd: make bgp and ospf json response a bit more consistent
2018-09-01 05:05:30 +02:00
Christoffer
9119b9b118
.github: Update ISSUE_TEMPLATE.md
Addressed @rwestphal comments.

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-09-01 00:10:42 +02:00
Christoffer
d967b38177
.github: Updated PULL_REQUEST_TEMPLATE.md
Addressed @qlyoung's suggestions.

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-08-31 23:06:02 +02:00
Christoffer
9ab45012d0
.github: Updated ISSUE_TEMPALTE.md
Addressed @qlyoung's suggestions.

Signed-off-by: Christoffer <netravnen@gmail.com>
2018-08-31 20:04:46 +00:00
Quentin Young
1dae463ea5 zebra: remove invalid ref "frr-configuration"
There is, in fact, no such additional information

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-08-31 18:04:31 +00:00
Quentin Young
ecaadbaeb4 doc: update subdir.am
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-08-31 17:15:14 +00:00
Quentin Young
09b67c0938 doc: update misc build docs
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-08-31 17:13:31 +00:00
Quentin Young
fff24a2e73 doc: name correct sphinx package under FreeBSD 11
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-08-31 17:13:31 +00:00
Quentin Young
8ba7845f5e doc: rename building_frr_on* -> building_frr_for*
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-08-31 17:13:31 +00:00