]>
git.ipfire.org Git - thirdparty/lldpd.git/log
Vincent Bernat [Sat, 14 May 2022 21:10:53 +0000 (23:10 +0200)]
tests: ensure we free pyroute2 resources
Vincent Bernat [Sat, 14 May 2022 20:58:00 +0000 (22:58 +0200)]
lldp: don't send VLANs when there are too many of them
Vincent Bernat [Fri, 18 Mar 2022 22:11:51 +0000 (23:11 +0100)]
doc: restore note about Intel cards
People using older versions of lldpd may not find this information
easily. So put it back in the README.
Vincent Bernat [Sat, 12 Mar 2022 14:12:42 +0000 (15:12 +0100)]
docker: fix build on Alpine by requiring bsd-compat-headers for sys/queue.h
As it is self-contained, we could surely just include it.
Vincent Bernat [Sat, 12 Mar 2022 13:30:06 +0000 (14:30 +0100)]
include: add back include/linux for old distributions
However, we don't ship sys/queue.h and netinet/if_ether.h. At some
point, we may want to explore just shipping uapi directory. This has
been tested with Debian 8.
Vincent Bernat [Sat, 12 Mar 2022 13:00:24 +0000 (14:00 +0100)]
include: nuke include directory for BSD and Linux
We keep OSX for now as it is small and isolated (and it's difficult to
test).
Fix #503 (but really, the patch is just included)
Vincent Bernat [Fri, 11 Mar 2022 21:57:51 +0000 (22:57 +0100)]
ci: only run distcheck if we are doing a release
Vincent Bernat [Thu, 10 Mar 2022 20:41:28 +0000 (21:41 +0100)]
ci: tentative to also build on FreeBSD/NetBSD/OpenBSD
This could work with NetBSD, but this is far too slow. Give up on it.
Also, use different jobs for Linux and MacOS.
Vincent Bernat [Fri, 11 Mar 2022 21:17:26 +0000 (22:17 +0100)]
build: use `cc -E` instead of `cpp` to build atom list
For some reason, with OpenBSD, `cpp` only half expand the macros when
invoked as `cpp`, but it works just fine with `clang -E`.
Vincent Bernat [Fri, 11 Mar 2022 06:37:47 +0000 (07:37 +0100)]
build: define _OPENBSD_SOURCE on NetBSD
Vincent Bernat [Fri, 11 Mar 2022 06:26:54 +0000 (07:26 +0100)]
doc: use @sysconfdir@ for /etc in manual pages
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.
Vincent Bernat [Sun, 6 Feb 2022 09:14:45 +0000 (10:14 +0100)]
build: explain current alternative
Vincent Bernat [Sun, 6 Feb 2022 09:04:15 +0000 (10:04 +0100)]
build: add a mention why we still use nix-gitignore
Vincent Bernat [Sun, 6 Feb 2022 08:53:41 +0000 (09:53 +0100)]
build: use Nix flake
Vincent Bernat [Thu, 3 Feb 2022 19:21:39 +0000 (20:21 +0100)]
lldp: fix capitalization in error message
Vincent Bernat [Tue, 1 Feb 2022 20:26:54 +0000 (21:26 +0100)]
lldp: report interface name on "Too big message"
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
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>
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.
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.
Vincent Bernat [Sun, 12 Dec 2021 13:00:40 +0000 (14:00 +0100)]
lib: avoid useless initialization of buffer
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.
Vincent Bernat [Sat, 27 Nov 2021 23:02:11 +0000 (00:02 +0100)]
tests: fix compilation warning in marshalling test
Vincent Bernat [Sat, 27 Nov 2021 22:59:02 +0000 (23:59 +0100)]
build: add git and check to default.nix
Vincent Bernat [Sat, 27 Nov 2021 22:58:36 +0000 (23:58 +0100)]
build: simplify a bit default.nix
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>
Vincent Bernat [Sat, 13 Nov 2021 12:47:27 +0000 (13:47 +0100)]
osx: update Brew recipe
Vincent Bernat [Sat, 13 Nov 2021 12:05:00 +0000 (13:05 +0100)]
release: 1.0.13
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
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
Vincent Bernat [Sat, 13 Nov 2021 08:24:27 +0000 (09:24 +0100)]
build: provide a clearer message if pkg-config is not installed
Vincent Bernat [Wed, 29 Sep 2021 10:03:42 +0000 (12:03 +0200)]
doc: add NEWS entry for latest commit
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.
Jose Pedro Oliveira [Sun, 26 Sep 2021 19:15:00 +0000 (21:15 +0200)]
doc: replace the old py.test references by pytest
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
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>
Vincent Bernat [Tue, 21 Sep 2021 07:55:18 +0000 (09:55 +0200)]
build: more fallback to autoconf 2.69
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.
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.
Vincent Bernat [Tue, 21 Sep 2021 06:37:39 +0000 (08:37 +0200)]
tests: make decode work without libcheck
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.
Brian Bennett [Mon, 13 Sep 2021 18:08:14 +0000 (11:08 -0700)]
Fix illumos name typo
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.
Vincent Bernat [Mon, 13 Sep 2021 06:19:49 +0000 (08:19 +0200)]
priv: fix chroot creation
Vincent Bernat [Mon, 13 Sep 2021 06:18:28 +0000 (08:18 +0200)]
priv: handle EROFS when creating chroot
Vincent Bernat [Fri, 10 Sep 2021 06:35:40 +0000 (08:35 +0200)]
osx: replace plist by service in brew recipe
Vincent Bernat [Fri, 10 Sep 2021 06:21:40 +0000 (08:21 +0200)]
osx: update Brew recipe
Vincent Bernat [Mon, 30 Aug 2021 06:24:11 +0000 (08:24 +0200)]
doc: update NEWS file
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>
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
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.
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
Vincent Bernat [Fri, 20 Aug 2021 20:25:09 +0000 (22:25 +0200)]
release: 1.0.12
The tag is too early...
Vincent Bernat [Fri, 20 Aug 2021 20:16:59 +0000 (22:16 +0200)]
ci: fetch tags when doing a release
Otherwise, changelog is empty.
Vincent Bernat [Fri, 20 Aug 2021 18:51:43 +0000 (20:51 +0200)]
doc: fix typo
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
Vincent Bernat [Tue, 27 Jul 2021 18:53:19 +0000 (20:53 +0200)]
github: fix release workflow
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.
Vincent Bernat [Mon, 21 Jun 2021 23:29:52 +0000 (01:29 +0200)]
github: automatically publish a release
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.
Vincent Bernat [Mon, 21 Jun 2021 22:56:05 +0000 (00:56 +0200)]
build: modernize a bit autoconf setup (to 2.69)
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.
Vincent Bernat [Mon, 21 Jun 2021 22:33:19 +0000 (00:33 +0200)]
ci: fix ppc64el platform
Vincent Bernat [Mon, 21 Jun 2021 22:23:01 +0000 (00:23 +0200)]
ci: run coverity only once a week
Vincent Bernat [Mon, 21 Jun 2021 22:20:27 +0000 (00:20 +0200)]
ci: build and publish a Dockerfile
Vincent Bernat [Mon, 21 Jun 2021 22:17:46 +0000 (00:17 +0200)]
doc: change title format to use pound for markdown
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.
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.
Vincent Bernat [Tue, 8 Jun 2021 22:19:17 +0000 (00:19 +0200)]
github: add funding using BMC
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.
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
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).
Vincent Bernat [Tue, 4 May 2021 15:07:49 +0000 (17:07 +0200)]
tests: use a tmpfs for /var/lock and handle broken symlinks
Vincent Bernat [Tue, 4 May 2021 14:57:11 +0000 (16:57 +0200)]
tests: create /var/lock if it does not exist
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
Vincent Bernat [Sat, 1 May 2021 16:52:30 +0000 (18:52 +0200)]
release: 1.0.11
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).
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.
Vincent Bernat [Tue, 27 Apr 2021 08:45:57 +0000 (10:45 +0200)]
priv: ensure Intel E8xx cards can transmit LLDP packets
Fix #444
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).
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.
Vincent Bernat [Thu, 15 Apr 2021 18:06:09 +0000 (20:06 +0200)]
github: explain people how to format lines of code
Vincent Bernat [Sun, 11 Apr 2021 06:39:10 +0000 (08:39 +0200)]
osx: update Homebrew recipe
Vincent Bernat [Fri, 9 Apr 2021 10:52:15 +0000 (12:52 +0200)]
release: 1.0.10
Vincent Bernat [Fri, 9 Apr 2021 09:59:07 +0000 (11:59 +0200)]
tests: catch problem with creation of chroot in tests
Vincent Bernat [Fri, 9 Apr 2021 09:51:19 +0000 (11:51 +0200)]
priv: fix chroot directory creation
The last component was not created!
Vincent Bernat [Thu, 8 Apr 2021 17:57:55 +0000 (19:57 +0200)]
osx: update version in Homebrew recipe
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.
Vincent Bernat [Fri, 2 Apr 2021 07:39:50 +0000 (09:39 +0200)]
release: 1.0.9
Vincent Bernat [Thu, 25 Mar 2021 19:09:04 +0000 (20:09 +0100)]
osx: add license to HomeBrew recipe
Vincent Bernat [Thu, 25 Mar 2021 19:07:21 +0000 (20:07 +0100)]
osx: update URL for HomeBrew recipe
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.
Vincent Bernat [Mon, 22 Mar 2021 09:30:08 +0000 (10:30 +0100)]
build: cache coverity toolchain
Vincent Bernat [Sun, 21 Mar 2021 14:41:41 +0000 (15:41 +0100)]
daemon: fix mkdir_p() implementation
Vincent Bernat [Sun, 21 Mar 2021 14:25:19 +0000 (15:25 +0100)]
client: fix additional memory leaks detected by Coverity Scan
Vincent Bernat [Sun, 21 Mar 2021 14:22:06 +0000 (15:22 +0100)]
daemon: rewrite `mkdir_p()` to not use strtok/strcat
Vincent Bernat [Sun, 21 Mar 2021 14:20:20 +0000 (15:20 +0100)]
daemon: fix some coverity annotations
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.
Vincent Bernat [Sun, 21 Mar 2021 12:38:04 +0000 (13:38 +0100)]
build: allow to manually trigger Coverity Scan