Commit Graph

5230 Commits

Author SHA1 Message Date
Hung-Weic Chiu
c604467a08 Fix the "Uninitialized argument value" of clang SA.
Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
2017-04-29 15:35:32 +00:00
Hung-Weic Chiu
3a6570a1f1 Fix the "Dead assignment" of clang SA.
- Remove duplicated assignemt.
- Remove unused initialized.

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
2017-04-29 15:25:32 +00:00
Hung-Weic Chiu
5d6cc38ca3 Fix the "Use-after-free" of clang SA.
- Set the pointer to NULL after free it, otherwise the pointer will be accessed again. (since not null)

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
2017-04-29 15:02:31 +00:00
Hung-Weic Chiu
d8d58e9839 Fix the memory leak
- free the memory for all cases.

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
2017-04-29 14:20:15 +00:00
Donald Sharp
650532d3d5 Merge pull request #419 from hwchiu/update-the-docs-of-ubuntu
Update the docs of ubuntu 12.04/14.04
2017-04-28 11:10:47 -04:00
Hung-Wei Chiu
362de4a621 update doc of ubuntu 12.04
1. modify the prefix to /usr (which is hard-code in /etc/init.d/frr)
2. install init.d related files.
2017-04-27 23:30:56 +08:00
Hung-Wei Chiu
500e13fea3 Update 14.04 docs to support init.d service
1. Configure the prefix to /usr  (frr script hard-code those path in /etc/init.d/frr)
2. Install the service file to /etc/init.d
2017-04-27 23:14:23 +08:00
Donald Sharp
e12ff52ab3 Merge pull request #415 from hwchiu/fix_ubuntu16.04
Update Building_FRR_on_Ubuntu1604 to make it support systemd
2017-04-27 08:31:16 -04:00
Hung-Wei Chiu
8a77d75b8a Update Building_FRR_on_Ubuntu1604.md
Fix typo
2017-04-27 11:22:15 +08:00
Hung-Wei Chiu
8399fd9d36 Update Building_FRR_on_Ubuntu1604.md
1.  Modify the configure prefix (since there some hard coded path in **/usr/lib/frr/fr**
2.  Install the systemd service config
2017-04-27 11:10:36 +08:00
Martin Winter
6491e6303e Merge pull request #370 from donaldsharp/as_path_fix
bgpd: Fix 'set as-path prepend last-as 10'
2017-04-17 14:46:28 -07:00
Donald Sharp
5cf5f2033b bgpd: Fix 'set as-path prepend last-as 10'
The route-map compilation function was comparing < 10
instead of <= 10.  While the cli was accepting 1-10.

Fix:
!
route-map FOO permit 44
 set as-path prepend last-as 10
!

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-04-14 20:05:48 -04:00
Martin Winter
6e38a83973 Merge pull request #366 from pichuang/fixed_add_group
Fixed some document typo
2017-04-13 14:52:16 -07:00
Phil Huang
be9665641d Clean installation guide with Debian/Ubuntu
Signed-off-by: Phil Huang <phil_huang@edge-core.com>
2017-04-13 21:20:53 +08:00
Phil Huang
7caef08c84 Add user frr into group frrvty
Signed-off-by: Phil Huang <phil_huang@edge-core.com>
2017-04-13 19:16:11 +08:00
Donald Sharp
81a37d8911 Merge pull request #365 from opensourcerouting/snap-doc-fixes
snapcraft: Improve README.usage.md based on feedback received
2017-04-12 21:12:26 -04:00
Martin Winter
2a3a819a9c snapcraft: Improve README.usage.md based on feedback received
- Fix snap connect (it's now called core, not ubuntu-core)
- Add section on MPLS configuration
- Add FAQ topic on ospfd/ospf6d crashing before privs are assigned to snap
- Add pointer to official webpage

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-04-12 16:00:43 -07:00
Donald Sharp
902726b81f doc: Cleanup 'Build the Software'
The frrouting.org web page:
https://frrouting.org/manual/Build-the-Software.html#Build-the-Software
is built from doc/install.texi.  The output on this page is a bit
missleading, let's clean it up some.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-04-07 17:20:32 -04:00
Martin Winter
3e71b5d907 Release: FRR-2.0
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-04-01 22:22:47 -07:00
Mike Tancsa
7e5b539722 lib: fix usage of getgrouplist() in *BSD
On BSD systems, the getgrouplist() function returns 0 if successful and
-1 on error.

Linux in the other hand returns *ngroups (the number of groups of which
user is a member) on success and -1 on error.

Given this difference, the most portable way to use getgrouplist()
is use its return value only for checking if it succeeded or not.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2017-04-01 00:50:40 -04:00
Donald Sharp
98b506c210 Merge pull request #307 from LabNConsulting/working/2.0/patch/rename2
Rename: FreeRangeRouting --> FRRouting
2017-03-30 14:23:55 -05:00
Lou Berger
d6180888fc Rename: freerangerouting --> frrouting
Signed-off-by: Lou Berger <lberger@labn.net>
2017-03-30 14:24:05 -04:00
Lou Berger
447a8fe92e Rename: FreeRangeRouting FRRouting
Signed-off-by: Lou Berger <lberger@labn.net>
2017-03-30 14:22:35 -04:00
Donald Sharp
fdbfd655c1 Merge pull request #299 from opensourcerouting/test-ref-out
tests: format TestRefMismatch more readable
2017-03-30 06:14:21 -05:00
Donald Sharp
aba41ec40c Merge pull request #298 from opensourcerouting/defaults
track version & "defaults" in configs
2017-03-30 06:13:19 -05:00
David Lamparter
8efe88eacf *: track version & "defaults" in configs
[CF]: Move default name to autoconf and update tests

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-03-28 19:18:42 +02:00
Christian Franke
1ea8289e2a tests: format TestRefMismatch more readable
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-03-28 18:56:38 +02:00
Donald Sharp
59ad9d4f30 Merge pull request #295 from opensourcerouting/community_md_edits
COMMUNITY.md: update CodingStyle & branching
2017-03-25 07:36:53 -04:00
David Lamparter
02fe6f865e COMMUNITY.md: update CodingStyle & branching
Also add a note that this is documentation, not law.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-25 10:37:57 +01:00
Renato Westphal
c1ec5aaf7c Merge pull request #277 from donaldsharp/proto-dev-build
Proto dev build
2017-03-21 12:31:41 -03:00
Donald Sharp
6405e44fe5 Merge pull request #281 from opensourcerouting/snapcraft-fixes
Snapcraft fixes
2017-03-21 11:11:16 -04:00
Martin Winter
567dd75c07 snapcraft: Change setup/ to snap/ directory based on new snap format
DEPRECATED: Assets in 'setup/gui' should now be placed in 'snap/gui'.
See http://snapcraft.io/docs/deprecation-notices/dn3 for more information.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-03-17 20:54:34 -07:00
Martin Winter
d1c2443dc7 snapcraft: Add missing snapcraft files from dist (make dist) archive
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-03-17 20:54:28 -07:00
Donald Sharp
358336ef36 zebra: zebra_fpm_dt.c does not always need protobuf
When compiling zebra_fpm_dt.c only pull in
protobuf headers if we've turned it on.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-15 09:48:12 -04:00
Donald Sharp
9cbae545f0 zebra: Fix protobuf build on stable/2.0
When compiling w/ --enable-protobuf on stable/2.0
we were attempting to dereference the zvrf->vrf_id
which got moved to zvrf->vrf->vrf_id.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-15 09:25:43 -04:00
Donald Sharp
81180ab813 Merge pull request #272 from opensourcerouting/snapcraft-logo-update
snapcraft: Replace temporary logo with official FRR logo
2017-03-11 06:58:24 -05:00
Martin Winter
5b848048d7 snapcraft: Replace temporary logo with official FRR logo
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2017-03-11 12:48:55 +07:00
David Lamparter
e2675fbd56 Merge pull request #266 from donaldsharp/nht
bug fixes
2017-03-10 14:10:10 +01:00
Donald Sharp
feb554e508 zebra: Fix specific prefix handling
Suppose we are handling the process_workq and either a new static
route is installed or a Routing Protocol installs a new route.
We will call evaluate_rnh with a specific prefix.  We might
have a situation where we clear the NHC flag prematurely.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-09 19:37:23 -05:00
Donald Sharp
a40ccc86af Merge pull request #267 from opensourcerouting/vty-completion-again
vty completion memory counting redux
2017-03-09 15:34:57 -05:00
Lou Berger
6253a46a75 lib: handle case specifc types, protect against double free (issue #144)
Signed-off-by: Lou Berger <lberger@labn.net>
[DL: dropped changes except the two NULL assignments]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-09 19:24:49 +01:00
David Lamparter
4dcee34bd6 Revert "lib: Fix tab completions memleak, memory stats corruption"
This reverts commit 039dc61292.

The patch actually made the situation worse since the return value from
cmd_complete_command_real() was now inconsistently allocated from
different memory stat pools.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-09 19:23:00 +01:00
Martín Beauchamp
685e701ef3 Lowercase frr.conf 2017-03-09 09:45:00 -05:00
Donald Sharp
8ce5e6a33c zebra: Notify all nexthops that we've changed
Zebra when it was scanning the tree would unset NEXTHOPS_CHANGED
after the first notification.  If the route we are notifying because
of covers multiple interesting nexthops then we would be unable
to know that we need to notify for that one as well because of
the flag removal.

Ticket: CM-15157
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-09 09:38:41 -05:00
Quentin Young
72c62cb803 Merge pull request #259 from opensourcerouting/vtysh-completion-mtype-underflow
vtysh: fix completion
2017-03-07 13:24:12 -05:00
David Lamparter
09e61a383f vtysh: fix completion
The return value from cmd_complete_command is a VECTOR_INDEX, not TMP.
Use the appropriate vector_only_index_free().

Fixes #223.

Reported-by: https://github.com/k0ste
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-07 19:20:05 +01:00
David Lamparter
fc2af2b729 Merge pull request #256 from donaldsharp/bgp_bfd_fix
bgpd: Clean up bfd memory *before* deleting the peer
2017-03-07 16:49:53 +01:00
Donald Sharp
080b97f2ab bgpd: Clean up bfd memory *before* deleting the peer
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-07 08:45:24 -05:00
Lou Berger
ed228401a1 Merge pull request #238 from donaldsharp/bgp_memory
bgpd: Fix memory leaks on shutdown
2017-03-02 10:07:34 -05:00
Donald Sharp
6bf1fe4727 bgpd: Fix memory leaks on shutdown
The original code on shutdown assumed a 'forced' mode
if there was no process_main_queue.  This construct
was violated by commit 2e02b9b2d1
due to not fully understanding the shutdown process.

If we are shutting down, don't store work to do later,
just gracefully don't do it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-03-01 20:26:06 -05:00