]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
2 years agoci: try to run make check even with clang fix/check-clang
Vincent Bernat [Thu, 10 Mar 2022 20:44:56 +0000 (21:44 +0100)] 
ci: try to run make check even with clang

The mentioned issue has been solved.

2 years agobuild: explain current alternative
Vincent Bernat [Sun, 6 Feb 2022 09:14:45 +0000 (10:14 +0100)] 
build: explain current alternative

2 years agobuild: add a mention why we still use nix-gitignore
Vincent Bernat [Sun, 6 Feb 2022 09:04:15 +0000 (10:04 +0100)] 
build: add a mention why we still use nix-gitignore

2 years agobuild: use Nix flake
Vincent Bernat [Sun, 6 Feb 2022 08:53:41 +0000 (09:53 +0100)] 
build: use Nix flake

2 years agolldp: fix capitalization in error message
Vincent Bernat [Thu, 3 Feb 2022 19:21:39 +0000 (20:21 +0100)] 
lldp: fix capitalization in error message

2 years agolldp: report interface name on "Too big message"
Vincent Bernat [Tue, 1 Feb 2022 20:26:54 +0000 (21:26 +0100)] 
lldp: report interface name on "Too big message"

2 years agodaemon: add additional syscalls to SECCOMP filter when running in the foreground
David Sastre Medina [Tue, 11 Jan 2022 13:55:05 +0000 (14:55 +0100)] 
daemon: add additional syscalls to SECCOMP filter when running in the foreground

Running lldpd in the foreground as follows:

strace -c /usr/sbin/lldpd -d -cfse -D -C lldpd-peer -I lldpd-peer \
       -S lldpd-system-name -m 192.168.50.6

Requires additional syscalls to be filtered (non relevant syscalls removed):

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
  0.47    0.000026           6         4           ppoll
  0.33    0.000018           3         5           rt_sigprocmask
  0.27    0.000015           3         4           getsockopt
------ ----------- ----------- --------- --------- ----------------
100.00    0.005520           8       637        22 total

2 years agolinux: add access syscall to seccomp rules
Antonio Quartulli [Sun, 9 Jan 2022 14:24:55 +0000 (15:24 +0100)] 
linux: add access syscall to seccomp rules

Signed-off-by: Antonio Quartulli <a@unstable.cc>
2 years agointerfaces: detect interface index changes
Vincent Bernat [Sun, 12 Dec 2021 13:25:13 +0000 (14:25 +0100)] 
interfaces: detect interface index changes

When an interface is deleted and recreated, we didn't detect any
change and just updated its index. However, the handles we had on this
interface are now invalid. Ensure the interface is correctly
reinitialized in this case.

Fix #490.

2 years agotests: use @pytest.fixture instead of @pytest.yield_fixture
Vincent Bernat [Sun, 12 Dec 2021 13:28:23 +0000 (14:28 +0100)] 
tests: use @pytest.fixture instead of @pytest.yield_fixture

This works since 3.0 and the second form is therefore deprecated.

2 years agolib: avoid useless initialization of buffer
Vincent Bernat [Sun, 12 Dec 2021 13:00:40 +0000 (14:00 +0100)] 
lib: avoid useless initialization of buffer

2 years agointerfaces: on NetBSD, ifbic_req can use more than 64 bytes
Vincent Bernat [Wed, 1 Dec 2021 18:29:28 +0000 (19:29 +0100)] 
interfaces: on NetBSD, ifbic_req can use more than 64 bytes

Therefore, allocate it dynamically. Fix #489.

2 years agotests: fix compilation warning in marshalling test
Vincent Bernat [Sat, 27 Nov 2021 23:02:11 +0000 (00:02 +0100)] 
tests: fix compilation warning in marshalling test

2 years agobuild: add git and check to default.nix
Vincent Bernat [Sat, 27 Nov 2021 22:59:02 +0000 (23:59 +0100)] 
build: add git and check to default.nix

2 years agobuild: simplify a bit default.nix
Vincent Bernat [Sat, 27 Nov 2021 22:58:36 +0000 (23:58 +0100)] 
build: simplify a bit default.nix

2 years agolinux: add missing SECCOMP rules
Benedikt Neuffer [Sat, 27 Nov 2021 16:07:50 +0000 (17:07 +0100)] 
linux: add missing SECCOMP rules

Signed-off-by: Benedikt Neuffer <benedikt.neuffer@kit.edu>
2 years agoosx: update Brew recipe
Vincent Bernat [Sat, 13 Nov 2021 12:47:27 +0000 (13:47 +0100)] 
osx: update Brew recipe

2 years agorelease: 1.0.13 1.0.13
Vincent Bernat [Sat, 13 Nov 2021 12:05:00 +0000 (13:05 +0100)] 
release: 1.0.13

2 years agotests: stop complain about extra args when compiling checks
Vincent Bernat [Sat, 13 Nov 2021 12:28:19 +0000 (13:28 +0100)] 
tests: stop complain about extra args when compiling checks

This is expected. See: https://github.com/libcheck/check/pull/320

2 years agosonmp: fix heap overflow when reading SONMP packets
Vincent Bernat [Sun, 19 Sep 2021 19:18:47 +0000 (21:18 +0200)] 
sonmp: fix heap overflow when reading SONMP packets

By sending short SONMP packets, an attacker can make the decoder crash
by reading too much data on the heap. SONMP packets are fixed in size,
just ensure we get the enough bytes to contain a SONMP packet.

CVE-2021-43612

2 years agobuild: provide a clearer message if pkg-config is not installed
Vincent Bernat [Sat, 13 Nov 2021 08:24:27 +0000 (09:24 +0100)] 
build: provide a clearer message if pkg-config is not installed

2 years agodoc: add NEWS entry for latest commit
Vincent Bernat [Wed, 29 Sep 2021 10:03:42 +0000 (12:03 +0200)] 
doc: add NEWS entry for latest commit

2 years agoclient: do not set VLAN tag if client did not set it
Vincent Bernat [Wed, 29 Sep 2021 10:02:15 +0000 (12:02 +0200)] 
client: do not set VLAN tag if client did not set it

This fixes a bug where frames could be tagged with VLAN 0 after client
configuration.

2 years agodoc: replace the old py.test references by pytest
Jose Pedro Oliveira [Sun, 26 Sep 2021 19:15:00 +0000 (21:15 +0200)] 
doc: replace the old py.test references by pytest

2 years agointerfaces: on OpenBSD, ensure we get a device before setting its flags
Vincent Bernat [Wed, 22 Sep 2021 07:17:12 +0000 (09:17 +0200)] 
interfaces: on OpenBSD, ensure we get a device before setting its flags

2 years agolldpcli: remove redundant "ports" parameters from cap and mgmt cmds
Yaroslav Fedoriachenko [Tue, 21 Sep 2021 16:14:00 +0000 (19:14 +0300)] 
lldpcli: remove redundant "ports" parameters from cap and mgmt cmds

The commands below were introduced as global commands, but all of them
except the first one were missing code to ignore "ports" parameter
```
configure lldp capabilities-advertisements
unconfigure lldp capabilities-advertisements
unconfigure lldp management-addresses-advertisements
configure lldp management-addresses-advertisements
```

Signed-off-by: Yaroslav Fedoriachenko <yar.fed99@gmail.com>
2 years agobuild: more fallback to autoconf 2.69
Vincent Bernat [Tue, 21 Sep 2021 07:55:18 +0000 (09:55 +0200)] 
build: more fallback to autoconf 2.69

2 years agobuild: fallback to use autoconf 2.69 again
Vincent Bernat [Tue, 21 Sep 2021 07:52:15 +0000 (09:52 +0200)] 
build: fallback to use autoconf 2.69 again

Unfortunately, Ubuntu, used for CI on GitHub does not have 2.70 which
is needed for `AC_PROG_CC` to test for C99.

2 years agobuild: update to autoconf 2.71
Vincent Bernat [Tue, 21 Sep 2021 06:48:53 +0000 (08:48 +0200)] 
build: update to autoconf 2.71

This removes warning about deprecated stuff. Notably AC_PROG_CC now
does what AC_PROG_CC_C99 did.

2 years agotests: make decode work without libcheck
Vincent Bernat [Tue, 21 Sep 2021 06:37:39 +0000 (08:37 +0200)] 
tests: make decode work without libcheck

2 years agodoc: update link to the Wireshark's LLDP Wiki page
Jose Pedro Oliveira [Sat, 18 Sep 2021 22:46:15 +0000 (00:46 +0200)] 
doc: update link to the Wireshark's LLDP Wiki page

The Wireshark's Wiki was migrated to the Gitlab built-in Wiki on
August 23rd, 2020.

2 years agoFix illumos name typo
Brian Bennett [Mon, 13 Sep 2021 18:08:14 +0000 (11:08 -0700)] 
Fix illumos name typo

2 years agoevent: fix monitoring of the monitor process on Illuminos
Vincent Bernat [Mon, 13 Sep 2021 17:45:38 +0000 (19:45 +0200)] 
event: fix monitoring of the monitor process on Illuminos

Using read(0) will return 0 on Illuminos, even if there is no data.
Request at least one byte. I hope I don't break something else by
doing that.

2 years agopriv: fix chroot creation
Vincent Bernat [Mon, 13 Sep 2021 06:19:49 +0000 (08:19 +0200)] 
priv: fix chroot creation

2 years agopriv: handle EROFS when creating chroot
Vincent Bernat [Mon, 13 Sep 2021 06:18:28 +0000 (08:18 +0200)] 
priv: handle EROFS when creating chroot

2 years agoosx: replace plist by service in brew recipe
Vincent Bernat [Fri, 10 Sep 2021 06:35:40 +0000 (08:35 +0200)] 
osx: replace plist by service in brew recipe

2 years agoosx: update Brew recipe
Vincent Bernat [Fri, 10 Sep 2021 06:21:40 +0000 (08:21 +0200)] 
osx: update Brew recipe

2 years agodoc: update NEWS file
Vincent Bernat [Mon, 30 Aug 2021 06:24:11 +0000 (08:24 +0200)] 
doc: update NEWS file

2 years agoAdd support for 2.5G, 5G, 25G, and 50G based Ethernet (#475)
quwer2 [Mon, 30 Aug 2021 06:22:36 +0000 (08:22 +0200)] 
Add support for 2.5G, 5G, 25G, and 50G based Ethernet (#475)

* add support for 2.5G, 5G, 25G, and 50G speeds

* Added 10GBASE-T and changed 100GBASE-CR10 to 100GBASE-CR4

* changed 10GigBaseCX4 to 10GbaseT in tests

Co-authored-by: quwer2 <quwer2@users.noreply.github.com>
2 years agointerfaces-bsd: do not consider an interface when it is down
Vincent Bernat [Sun, 29 Aug 2021 19:57:07 +0000 (21:57 +0200)] 
interfaces-bsd: do not consider an interface when it is down

At least on OpenBSD, an interface can be oper down while
`IFF_RUNNING`. Check the link state and removes the `IFF_RUNNING` flag
in this case. Something similar may work with FreeBSD and NetBSD, but
it may not be needed. It does not work with MacOS.

Fix #474

2 years agoci: publish a release as a draft
Vincent Bernat [Sat, 21 Aug 2021 08:00:23 +0000 (10:00 +0200)] 
ci: publish a release as a draft

Otherwise, people may get notified too early.

2 years agoci: unshallow repository on release
Vincent Bernat [Fri, 20 Aug 2021 20:44:52 +0000 (22:44 +0200)] 
ci: unshallow repository on release

This is needed for "git log" to work

2 years agorelease: 1.0.12 1.0.12
Vincent Bernat [Fri, 20 Aug 2021 20:25:09 +0000 (22:25 +0200)] 
release: 1.0.12

The tag is too early...

2 years agoci: fetch tags when doing a release
Vincent Bernat [Fri, 20 Aug 2021 20:16:59 +0000 (22:16 +0200)] 
ci: fetch tags when doing a release

Otherwise, changelog is empty.

2 years agodoc: fix typo
Vincent Bernat [Fri, 20 Aug 2021 18:51:43 +0000 (20:51 +0200)] 
doc: fix typo

2 years agogithub: emphasize more that the issue tracker is not a support forum
Vincent Bernat [Tue, 3 Aug 2021 07:58:06 +0000 (09:58 +0200)] 
github: emphasize more that the issue tracker is not a support forum

2 years agogithub: fix release workflow
Vincent Bernat [Tue, 27 Jul 2021 18:53:19 +0000 (20:53 +0200)] 
github: fix release workflow

2 years agogithub: better caching for coverity toolchain
Vincent Bernat [Tue, 27 Jul 2021 18:44:30 +0000 (20:44 +0200)] 
github: better caching for coverity toolchain

Thanks to @troglobit. See https://github.com/lldpd/lldpd/discussions/460.

2 years agogithub: automatically publish a release
Vincent Bernat [Mon, 21 Jun 2021 23:29:52 +0000 (01:29 +0200)] 
github: automatically publish a release

2 years agoci: reduce the number of docker images to maintain
Vincent Bernat [Mon, 21 Jun 2021 22:57:13 +0000 (00:57 +0200)] 
ci: reduce the number of docker images to maintain

If people want more, they will tell us.

2 years agobuild: modernize a bit autoconf setup (to 2.69)
Vincent Bernat [Mon, 21 Jun 2021 22:56:05 +0000 (00:56 +0200)] 
build: modernize a bit autoconf setup (to 2.69)

2 years agodoc: explain which tags to use for Docker
Vincent Bernat [Mon, 21 Jun 2021 22:45:51 +0000 (00:45 +0200)] 
doc: explain which tags to use for Docker

Well, it is not totally true yet.

2 years agoci: fix ppc64el platform
Vincent Bernat [Mon, 21 Jun 2021 22:33:19 +0000 (00:33 +0200)] 
ci: fix ppc64el platform

2 years agoci: run coverity only once a week
Vincent Bernat [Mon, 21 Jun 2021 22:23:01 +0000 (00:23 +0200)] 
ci: run coverity only once a week

2 years agoci: build and publish a Dockerfile
Vincent Bernat [Mon, 21 Jun 2021 22:20:27 +0000 (00:20 +0200)] 
ci: build and publish a Dockerfile

2 years agodoc: change title format to use pound for markdown
Vincent Bernat [Mon, 21 Jun 2021 22:17:46 +0000 (00:17 +0200)] 
doc: change title format to use pound for markdown

2 years agotests: remove old Dockerfile.wheezy
Vincent Bernat [Mon, 21 Jun 2021 21:41:49 +0000 (23:41 +0200)] 
tests: remove old Dockerfile.wheezy

It does not work anymore as wheezy is too old.

2 years agogithub: templates for bug report and feature request
Vincent Bernat [Sat, 12 Jun 2021 08:51:39 +0000 (10:51 +0200)] 
github: templates for bug report and feature request

And also add a link to discussions for generic questions.

2 years agogithub: add funding using BMC
Vincent Bernat [Tue, 8 Jun 2021 22:19:17 +0000 (00:19 +0200)] 
github: add funding using BMC

2 years agolldpcli: require powerpairs for Dot3 power even when PD
Vincent Bernat [Fri, 4 Jun 2021 16:51:13 +0000 (18:51 +0200)] 
lldpcli: require powerpairs for Dot3 power even when PD

This reverts commit 7056d802b9c595dd16f1354649bb7ae2f8b8880c. I may
have been hasty in removing this as my understanding is that the PSE
would impose the value to the PD, but it could be the other way
around. Some implementations do not like to have 0 as the value here
and will ignore the whole TLV.

2 years agoUpdates documentation for Android target
Zach Cardoza [Mon, 17 May 2021 18:10:10 +0000 (11:10 -0700)] 
Updates documentation for Android target
Adds specific compilation steps
Adds links to source and NDK
Adds installation script example

3 years agoclient: put lock file in the same directory as the socket
Vincent Bernat [Tue, 4 May 2021 19:46:30 +0000 (21:46 +0200)] 
client: put lock file in the same directory as the socket

The whole deal I was trying to solve is the fact that I cannot put the
lock here because I was unprivileged. Just let lldpd create the lock
in the same way it creates the socket (same privileges).

3 years agotests: use a tmpfs for /var/lock and handle broken symlinks fix/tests-var-lock
Vincent Bernat [Tue, 4 May 2021 15:07:49 +0000 (17:07 +0200)] 
tests: use a tmpfs for /var/lock and handle broken symlinks

3 years agotests: create /var/lock if it does not exist
Vincent Bernat [Tue, 4 May 2021 14:57:11 +0000 (16:57 +0200)] 
tests: create /var/lock if it does not exist

3 years agoclient: use a dedicated file lock to prevent concurrent changes
Vincent Bernat [Tue, 4 May 2021 13:55:21 +0000 (15:55 +0200)] 
client: use a dedicated file lock to prevent concurrent changes

We were using a lock on the Unix socket. This was working on Linux but
this is not portable. Therefore, we have to use a dedicated file for
this purpose. We use /var/lock by default.

We don't do a secure creation as the lock file is only opened in
append mode, so a symlink attack could only create empty file or reset
the timestamp of a file. No content can be erased this way.

Fix #445

3 years agorelease: 1.0.11 1.0.11
Vincent Bernat [Sat, 1 May 2021 16:52:30 +0000 (18:52 +0200)] 
release: 1.0.11

3 years agopriv: explain why we don't use ethtool
Vincent Bernat [Fri, 30 Apr 2021 09:03:14 +0000 (11:03 +0200)] 
priv: explain why we don't use ethtool

I have tested on a few servers I have access to and none of them
supported the use of this ethtool command. So, keep using sysfs
instead (with the drawback that 1. debugfs should be mounted, 2. we
need to tell systemd we want to tune through sysfs).

3 years agopriv: disable LLDP in firmware for Intel X7xx cards
Vincent Bernat [Tue, 27 Apr 2021 20:57:54 +0000 (22:57 +0200)] 
priv: disable LLDP in firmware for Intel X7xx cards

This requires to configure systemd to not protect sysfs.

3 years agopriv: ensure Intel E8xx cards can transmit LLDP packets
Vincent Bernat [Tue, 27 Apr 2021 08:45:57 +0000 (10:45 +0200)] 
priv: ensure Intel E8xx cards can transmit LLDP packets

Fix #444

3 years agodaemon: fix some use of "if defined"
Vincent Bernat [Sun, 25 Apr 2021 17:08:26 +0000 (19:08 +0200)] 
daemon: fix some use of "if defined"

`#if defined HOST_OS_FREEBSD || HOST_OS_NETBSD` is not the same as
`#if defined HOST_OS_FREEBSD || defined HOST_OS_NETBSD`. This doesn't
really matter in our case, but for consistency, fix these cases. Also,
don't use parentheses as they are not useful in our case (or we should
put them everywhere).

3 years agogithub: no need to be smart to show how to format code
Vincent Bernat [Thu, 15 Apr 2021 18:06:58 +0000 (20:06 +0200)] 
github: no need to be smart to show how to format code

People should see the markdown code, not the rendered code, from the
template.

3 years agogithub: explain people how to format lines of code
Vincent Bernat [Thu, 15 Apr 2021 18:06:09 +0000 (20:06 +0200)] 
github: explain people how to format lines of code

3 years agoosx: update Homebrew recipe
Vincent Bernat [Sun, 11 Apr 2021 06:39:10 +0000 (08:39 +0200)] 
osx: update Homebrew recipe

3 years agorelease: 1.0.10 1.0.10
Vincent Bernat [Fri, 9 Apr 2021 10:52:15 +0000 (12:52 +0200)] 
release: 1.0.10

3 years agotests: catch problem with creation of chroot in tests
Vincent Bernat [Fri, 9 Apr 2021 09:59:07 +0000 (11:59 +0200)] 
tests: catch problem with creation of chroot in tests

3 years agopriv: fix chroot directory creation
Vincent Bernat [Fri, 9 Apr 2021 09:51:19 +0000 (11:51 +0200)] 
priv: fix chroot directory creation

The last component was not created!

3 years agoosx: update version in Homebrew recipe
Vincent Bernat [Thu, 8 Apr 2021 17:57:55 +0000 (19:57 +0200)] 
osx: update version in Homebrew recipe

3 years agotests: fix a command in tests/lldpcli.conf
Vincent Bernat [Thu, 8 Apr 2021 17:56:39 +0000 (19:56 +0200)] 
tests: fix a command in tests/lldpcli.conf

This file is not really used, but it contains a non-working command.

3 years agorelease: 1.0.9 1.0.9
Vincent Bernat [Fri, 2 Apr 2021 07:39:50 +0000 (09:39 +0200)] 
release: 1.0.9

3 years agoosx: add license to HomeBrew recipe
Vincent Bernat [Thu, 25 Mar 2021 19:09:04 +0000 (20:09 +0100)] 
osx: add license to HomeBrew recipe

3 years agoosx: update URL for HomeBrew recipe
Vincent Bernat [Thu, 25 Mar 2021 19:07:21 +0000 (20:07 +0100)] 
osx: update URL for HomeBrew recipe

3 years agoosx: handle empty groups correctly when looking for a free UID
Vincent Bernat [Thu, 25 Mar 2021 10:31:55 +0000 (11:31 +0100)] 
osx: handle empty groups correctly when looking for a free UID

This was already done this way with Homebrew. Fix #438.

3 years agobuild: cache coverity toolchain
Vincent Bernat [Mon, 22 Mar 2021 09:30:08 +0000 (10:30 +0100)] 
build: cache coverity toolchain

3 years agodaemon: fix mkdir_p() implementation
Vincent Bernat [Sun, 21 Mar 2021 14:41:41 +0000 (15:41 +0100)] 
daemon: fix mkdir_p() implementation

3 years agoclient: fix additional memory leaks detected by Coverity Scan fix/coverity-annotations
Vincent Bernat [Sun, 21 Mar 2021 14:25:19 +0000 (15:25 +0100)] 
client: fix additional memory leaks detected by Coverity Scan

3 years agodaemon: rewrite `mkdir_p()` to not use strtok/strcat
Vincent Bernat [Sun, 21 Mar 2021 14:22:06 +0000 (15:22 +0100)] 
daemon: rewrite `mkdir_p()` to not use strtok/strcat

3 years agodaemon: fix some coverity annotations
Vincent Bernat [Sun, 21 Mar 2021 14:20:20 +0000 (15:20 +0100)] 
daemon: fix some coverity annotations

3 years agoclient: make it easier for Coverity to understand commands_new()
Vincent Bernat [Sun, 21 Mar 2021 12:56:19 +0000 (13:56 +0100)] 
client: make it easier for Coverity to understand commands_new()

Never returning NULL is not enough to make Coverity understands we
don't leak anything. Remove the branch in commands_new() as it must
never happen, except for the root node.

3 years agobuild: allow to manually trigger Coverity Scan
Vincent Bernat [Sun, 21 Mar 2021 12:38:04 +0000 (13:38 +0100)] 
build: allow to manually trigger Coverity Scan

3 years agodaemon: enforce limits when receiving arbitrary-length data in privsep
Vincent Bernat [Sun, 21 Mar 2021 10:39:33 +0000 (11:39 +0100)] 
daemon: enforce limits when receiving arbitrary-length data in privsep

3 years agointerfaces: use an array of MAC addresses when defining supported protocols
Vincent Bernat [Sun, 21 Mar 2021 10:32:25 +0000 (11:32 +0100)] 
interfaces: use an array of MAC addresses when defining supported protocols

In interfaces.c, we were handling it as a table while in lldpd.c, we
were copy-pasting the same condition three times. This was confusing
for analysis tools.

3 years agopriv: abort on allocation error
Vincent Bernat [Sun, 21 Mar 2021 11:09:49 +0000 (12:09 +0100)] 
priv: abort on allocation error

This helps Coverity Scan.

3 years agodaemon: annotate "daemonisation" to help Coverity
Vincent Bernat [Sun, 21 Mar 2021 11:05:16 +0000 (12:05 +0100)] 
daemon: annotate "daemonisation" to help Coverity

When daemonizing, we need to use /dev/null for stdin, stdout, and
stderr. If one of these file descriptors happen to be already closed,
we need to close the new file descriptor only if > 2. This is
confusing confusing for Coverity, annotate it correctly.

Not all locations are annotated because not all of them are detected,
for some reason.

3 years agoclient: do not allow memory allocations to fail
Vincent Bernat [Sun, 21 Mar 2021 10:21:24 +0000 (11:21 +0100)] 
client: do not allow memory allocations to fail

This leads to some memory leak (quite improbable), but we don't want
to continue running with an incomplete set of commands.

3 years agonetlink: fix socket leak on some error condition
Vincent Bernat [Sun, 21 Mar 2021 10:00:59 +0000 (11:00 +0100)] 
netlink: fix socket leak on some error condition

3 years agonetlink: remove dead code, iface2 cannot be NULL inside the iterator
Vincent Bernat [Sun, 21 Mar 2021 09:56:52 +0000 (10:56 +0100)] 
netlink: remove dead code, iface2 cannot be NULL inside the iterator

3 years agobuild: reenable Coverity Scan
Vincent Bernat [Sun, 21 Mar 2021 09:29:10 +0000 (10:29 +0100)] 
build: reenable Coverity Scan

3 years agoprotocols: fix more memory leak when decoding multiple TLVs
Vincent Bernat [Tue, 16 Mar 2021 16:36:35 +0000 (17:36 +0100)] 
protocols: fix more memory leak when decoding multiple TLVs

In a8d3c90feca5, some memory leaks were fixed when a TLV is present
multiple times. There were other occurrences in LLDP, CDP and EDP
handling. We ensure we free before overwriting with the new TLVs.

Fix #436

3 years agoEliminate unused arguments to priv_init() with --disable-privsep.
John Lindgren [Mon, 8 Mar 2021 17:06:47 +0000 (12:06 -0500)] 
Eliminate unused arguments to priv_init() with --disable-privsep.

This seems a bit cleaner than passing dummy values (e.g. 0) that
aren't ever used.  Additionally, it means that PRIVSEP_CHROOT no
longer needs to be defined to a dummy value if building with
--disable-privsep.

3 years agoFix relative include paths to be more correct and portable.
John Lindgren [Mon, 8 Mar 2021 15:27:23 +0000 (10:27 -0500)] 
Fix relative include paths to be more correct and portable.

Some relative include paths in subdirectories (src/daemon/protocols
and src/lib/atoms) were written relative to the parent directories
(src/daemon and src/lib).  This was okay in automake builds but
caused errors when porting to other build systems (for example,
Android make).