]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
3 days agorelease: 1.0.20 master 1.0.20
Vincent Bernat [Sat, 13 Sep 2025 08:41:05 +0000 (10:41 +0200)] 
release: 1.0.20

2 weeks agobuild: bump actions/download-artifact from 4 to 5
dependabot[bot] [Tue, 2 Sep 2025 09:01:58 +0000 (09:01 +0000)] 
build: bump actions/download-artifact from 4 to 5

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 weeks agobuild: bump actions/checkout from 4 to 5
dependabot[bot] [Tue, 2 Sep 2025 10:14:33 +0000 (10:14 +0000)] 
build: bump actions/checkout from 4 to 5

Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2 weeks agodaemon/interfaces: fix management address selection when negative
Vincent Bernat [Sat, 30 Aug 2025 07:56:30 +0000 (09:56 +0200)] 
daemon/interfaces: fix management address selection when negative

When we had a negative IP address, and nothing positive, the address was
still selected as it didn't match an interface. When all negative, we
should only select an address if both IP and interface are allowed.

This mechanism is becoming a bit complex.

3 weeks agodocs: add a NEWS entry for the previous change
Vincent Bernat [Tue, 19 Aug 2025 17:57:37 +0000 (19:57 +0200)] 
docs: add a NEWS entry for the previous change

3 weeks agoadd support for vlan-advertisements configuration (#740)
ugoldfeld [Tue, 19 Aug 2025 17:56:44 +0000 (20:56 +0300)] 
add support for vlan-advertisements configuration (#740)

* add support for vlan-advertisements configuration

adding new configurations configure [ports ethx [,..]] lldp vlan-advertisements pattern and
unconfigure [ports ethx,[,...]] lldp vlan-advertisements pattern.
The commands enable control of which vlans are advertised

* Code review changes

Updated manual page.
Added add an example of invocation in tests/lldpcli.conf.
Added tests to tests/integration/test_dot1.py.
Vlan formatting fixes.

* more CR fixes

* Fix memory leak

fixing port->p_vlan_advertise_pattern memory leak

5 weeks agoclient: keep "configure med fast-start" working
Vincent Bernat [Sat, 9 Aug 2025 18:24:29 +0000 (20:24 +0200)] 
client: keep "configure med fast-start" working

People should now use "configure lldp fast-start", but we keep the
previous configuration working as well.

Add an entry in NEWS.

Fix #680 (well, previous commit did)

5 weeks agofix: Some cleanup in moving fast-start into LLDP core
Breuninger Matthias (ETAS-DAP/XPC-Fe3) [Fri, 17 Jan 2025 07:54:24 +0000 (08:54 +0100)] 
fix: Some cleanup in moving fast-start into LLDP core

5 weeks agofix: Move tx-fast config from MED to LLDP section
Breuninger Matthias (ETAS-DAP/XPC-Fe3) [Thu, 24 Oct 2024 09:12:16 +0000 (11:12 +0200)] 
fix: Move tx-fast config from MED to LLDP section

5 weeks agofix: Always TX fast start complient to IEEE802.1as-2009
Breuninger Matthias (ETAS-DAP/XPC-Fe3) [Mon, 21 Oct 2024 12:32:45 +0000 (14:32 +0200)] 
fix: Always TX fast start complient to IEEE802.1as-2009

5 weeks agodaemon/interfaces: fix double-free when unable to initialize interface
Vincent Bernat [Sat, 9 Aug 2025 16:45:30 +0000 (18:45 +0200)] 
daemon/interfaces: fix double-free when unable to initialize interface

When an interface is converted from one type to another and cannot be
initialized, we free it twice: once on the error and again when removing
unused interfaces.

Remove the first occurrence and ensure we get in a state where the
interface can be both cleaned up or reinstantiated in a later round.

5 weeks agoautoconf: Use m4sh syntax where appropriate
Lars Wendler [Sun, 12 Jan 2025 16:17:25 +0000 (17:17 +0100)] 
autoconf: Use m4sh syntax where appropriate

This fixes an issue where when using the options

  --without-embedded-libevent --without-libbsd

configure errors out with missing libevent:

  checking for libevent >= 2.0.5... no
  configure: error: *** libevent not found

but succeeds to find libevent when using

  --without-embedded-libevent --with-libbsd

configure options instead.
See also: https://autotools.info/autoconf/m4sh.html

5 weeks agobuild: bump cross-platform-actions/action from 0.28.0 to 0.29.0
dependabot[bot] [Fri, 1 Aug 2025 19:21:45 +0000 (19:21 +0000)] 
build: bump cross-platform-actions/action from 0.28.0 to 0.29.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/cross-platform-actions/action/releases)
- [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md)
- [Commits](https://github.com/cross-platform-actions/action/compare/v0.28.0...v0.29.0)

---
updated-dependencies:
- dependency-name: cross-platform-actions/action
  dependency-version: 0.29.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
5 weeks agoMerge pull request #742 from rbu9fe/fix/error-category
Vincent Bernat [Sat, 9 Aug 2025 16:49:58 +0000 (18:49 +0200)] 
Merge pull request #742 from rbu9fe/fix/error-category

fix: Error category handling

5 weeks agofix: Add missing include 742/head
Breuninger Matthias (ETAS-ICA/XPC-Fe3) [Wed, 6 Aug 2025 09:24:55 +0000 (11:24 +0200)] 
fix: Add missing include

5 weeks agofix: Add missing is_error_code_enum specialization
Breuninger Matthias (ETAS-ICA/XPC-Fe3) [Tue, 5 Aug 2025 17:34:39 +0000 (19:34 +0200)] 
fix: Add missing is_error_code_enum specialization

Directly pass error code to std::system_error.

6 weeks agofix: Error category handling
Breuninger Matthias (ETAS-ICA/XPC-Fe3) [Tue, 5 Aug 2025 14:38:16 +0000 (16:38 +0200)] 
fix: Error category handling

A std::error_code stores the error category only by reference, hence, we must use an object in static storage.
Add lldpcli::make_error_code for convenience similar to std::make_error_code.

3 months agobuild: bump cross-platform-actions/action from 0.27.0 to 0.28.0
dependabot[bot] [Sun, 1 Jun 2025 19:39:46 +0000 (19:39 +0000)] 
build: bump cross-platform-actions/action from 0.27.0 to 0.28.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.27.0 to 0.28.0.
- [Release notes](https://github.com/cross-platform-actions/action/releases)
- [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md)
- [Commits](https://github.com/cross-platform-actions/action/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: cross-platform-actions/action
  dependency-version: 0.28.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 months agolib/cpp: Fix memory leaks in LldpCtl
PM Holtmo [Fri, 23 May 2025 14:10:25 +0000 (16:10 +0200)] 
lib/cpp: Fix memory leaks in LldpCtl

LldpCtl::GetInterfaces() and LldpAtom::GetAtomList() did not decrement ref for retrieved atoms
Ensure parent atom outlives its children atoms

4 months agolib/cpp: LldpCtl supports non default transports
PM Holtmo [Tue, 29 Apr 2025 10:44:34 +0000 (12:44 +0200)] 
lib/cpp: LldpCtl supports non default transports

added optional arg to lldpd unix socket for constructor

5 months agodoc: add entry in NEWS for previous commit
Vincent Bernat [Thu, 10 Apr 2025 08:22:28 +0000 (10:22 +0200)] 
doc: add entry in NEWS for previous commit

5 months agodaemon/priv: fix PACKET_IGNORE_OUTGOING
Jon Kohler [Thu, 10 Apr 2025 06:59:39 +0000 (23:59 -0700)] 
daemon/priv: fix PACKET_IGNORE_OUTGOING

Switch from netpacket/packet.h to linux/if_packet.h to pick up both
sockaddr_ll and PACKET_IGNORE_OUTGOING.

Fixes case where PACKET_IGNORE_OUTGOING was compiled out due to ifdef
conditional, which caused Linux zerocopy to break.

Fixes #732

Signed-off-by: Jon Kohler <jon@nutanix.com>
5 months agobuild: bump cachix/install-nix-action from 30 to 31
dependabot[bot] [Tue, 1 Apr 2025 19:55:45 +0000 (19:55 +0000)] 
build: bump cachix/install-nix-action from 30 to 31

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 30 to 31.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v30...v31)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-version: '31'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
5 months agobuild: Fix macos compile warning on macos >= 12
Paul Donald [Wed, 26 Mar 2025 01:12:43 +0000 (02:12 +0100)] 
build: Fix macos compile warning on macos >= 12

dmi-osx.c:37:40: warning: 'kIOMasterPortDefault' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
        service = IOServiceGetMatchingService(kIOMasterPortDefault, matching);
                                              ^~~~~~~~~~~~~~~~~~~~
                                              kIOMainPortDefault

5 months agoman: clarify what the power class numbers mean for 802.3at, in dot3
Paul Donald [Wed, 26 Mar 2025 00:27:45 +0000 (01:27 +0100)] 
man: clarify what the power class numbers mean for 802.3at, in dot3

5 months agoman: Amend keyword colour formatted as operations and not values.
Paul Donald [Tue, 25 Mar 2025 22:21:44 +0000 (23:21 +0100)] 
man: Amend keyword colour formatted as operations and not values.

5 months agocomment cleanup and spelling fixes
Paul Donald [Wed, 26 Mar 2025 18:17:16 +0000 (19:17 +0100)] 
comment cleanup and spelling fixes

5 months agodifferentiate between setup(n) and set(v) up
Paul Donald [Wed, 26 Mar 2025 18:01:35 +0000 (19:01 +0100)] 
differentiate between setup(n) and set(v) up

6 months agodaemon: fix typo in comment
Vincent Bernat [Sat, 22 Feb 2025 08:43:30 +0000 (09:43 +0100)] 
daemon: fix typo in comment

7 months agoAdd UnregisterInterfaceCallback
Breuninger Matthias (ETAS-DAP/XPC-Fe3) [Fri, 31 Jan 2025 12:09:27 +0000 (13:09 +0100)] 
Add UnregisterInterfaceCallback

7 months agoSetValue: Add various string-like type support
Breuninger Matthias (ETAS-DAP/XPC-Fe3) [Fri, 31 Jan 2025 12:06:32 +0000 (13:06 +0100)] 
SetValue: Add various string-like type support

7 months agoadd more missing syscalls to seccomp profile
Christian Bricart [Thu, 30 Jan 2025 10:15:26 +0000 (11:15 +0100)] 
add more missing syscalls to seccomp profile

it turned out, adding just clock_gettime64()
from #710 has not been enough for ia32 platform.

iteratively added additional syscalls, that
prevented lldpd from starting up without
bailing out with SIGSYS

7 months agobuild: bump cross-platform-actions/action from 0.26.0 to 0.27.0
dependabot[bot] [Sat, 1 Feb 2025 19:25:30 +0000 (19:25 +0000)] 
build: bump cross-platform-actions/action from 0.26.0 to 0.27.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.26.0 to 0.27.0.
- [Release notes](https://github.com/cross-platform-actions/action/releases)
- [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md)
- [Commits](https://github.com/cross-platform-actions/action/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: cross-platform-actions/action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
7 months agodaemon: add clock_gettime64 to seccomp profile
Vincent Bernat [Thu, 30 Jan 2025 06:28:49 +0000 (07:28 +0100)] 
daemon: add clock_gettime64 to seccomp profile

Fix #710

7 months agodebian: also install C++ header in Debian package
Vincent Bernat [Fri, 17 Jan 2025 21:24:50 +0000 (22:24 +0100)] 
debian: also install C++ header in Debian package

7 months agofix: Add lldpctl.hpp to the include list
Breuninger Matthias (ETAS-DAP/XPC-Fe3) [Fri, 17 Jan 2025 16:42:02 +0000 (17:42 +0100)] 
fix: Add lldpctl.hpp to the include list

8 months agobuild: bump cross-platform-actions/action from 0.25.0 to 0.26.0
dependabot[bot] [Wed, 1 Jan 2025 19:25:45 +0000 (19:25 +0000)] 
build: bump cross-platform-actions/action from 0.25.0 to 0.26.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.25.0 to 0.26.0.
- [Release notes](https://github.com/cross-platform-actions/action/releases)
- [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md)
- [Commits](https://github.com/cross-platform-actions/action/compare/v0.25.0...v0.26.0)

---
updated-dependencies:
- dependency-name: cross-platform-actions/action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
8 months agolib: fix warning about uninitialized variable 1.0.19
Vincent Bernat [Sat, 11 Jan 2025 11:44:40 +0000 (12:44 +0100)] 
lib: fix warning about uninitialized variable

This is not really the case, but older compilers may not be able to
detect there is no branch when this variable is uninitialized.

8 months agobuild: remove hacks around NetSNMP
Vincent Bernat [Sat, 11 Jan 2025 11:32:17 +0000 (12:32 +0100)] 
build: remove hacks around NetSNMP

The workaround for -D_FORTIFY_SOURCE was failing on Fedora because it
was not robust enough. The current version was tested with:

- Fedora 41
- Debian 10
- Ubuntu Trusty (14.04)
- CentOS 7

8 months agorelease: 1.0.19
Vincent Bernat [Sat, 11 Jan 2025 11:08:07 +0000 (12:08 +0100)] 
release: 1.0.19

8 months agodoc: finalize changelog
Vincent Bernat [Sat, 11 Jan 2025 11:06:22 +0000 (12:06 +0100)] 
doc: finalize changelog

9 months agolib: format *.hpp as well
Vincent Bernat [Sat, 14 Dec 2024 20:26:47 +0000 (21:26 +0100)] 
lib: format *.hpp as well

9 months agofeat: Add lldpctl C++ wrapper (#693)
rbu9fe [Sat, 14 Dec 2024 20:24:51 +0000 (21:24 +0100)] 
feat: Add lldpctl C++ wrapper (#693)

* feat: Add lldpctl C++ wrapper

* fix: Call the new lldpctl_watch_sync_unblock() on watch termination

* fix: Category name

9 months agoclient: fix global tx hold and interval setting
Hangbin Liu [Mon, 2 Dec 2024 06:34:44 +0000 (14:34 +0800)] 
client: fix global tx hold and interval setting

In the following fixed commit, I forgot to fix the transmission (tx) hold
and interval range in the global configuration setting.

Fixes: 7b9abb819337 ("client: add range restriction for tx hold and interval")
Reported-by: Fei Liu <feliu@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
9 months agolldpd: fix ttl range on ports
Hangbin Liu [Mon, 2 Dec 2024 06:33:16 +0000 (14:33 +0800)] 
lldpd: fix ttl range on ports

In the following fixed commit, I forgot to fix the ttl range for
interfaces/ports.

Fixes: a73e04f46ebe ("lldpd: limit tx ttl to 65535")
Reported-by: Fei Liu <feliu@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
9 months agodaemon: use code from sd_notify(3) for handling notify socket
Vincent Bernat [Sat, 7 Dec 2024 11:24:26 +0000 (12:24 +0100)] 
daemon: use code from sd_notify(3) for handling notify socket

This also fixes a compilation error about connect().

9 months agolib: fix formatting
Vincent Bernat [Sat, 7 Dec 2024 10:48:12 +0000 (11:48 +0100)] 
lib: fix formatting

9 months agolib: bump library version
Vincent Bernat [Sat, 7 Dec 2024 10:39:38 +0000 (11:39 +0100)] 
lib: bump library version

Also fix versioning of lldpctl_watch_sync_unblock. And add a NEWS entry.

9 months agodocs: add an entry for change about AppArmor
Vincent Bernat [Mon, 28 Oct 2024 07:51:00 +0000 (08:51 +0100)] 
docs: add an entry for change about AppArmor

9 months agofeat: Add lldpctl_watch_sync_unblock (#696)
rbu9fe [Sat, 7 Dec 2024 10:36:09 +0000 (11:36 +0100)] 
feat: Add lldpctl_watch_sync_unblock (#696)

* feat: Add lldpctl_watch_sync_unblock

* update: Replace select by epoll

* refactor: Replace epoll by poll to support non-Linux OS

* update: Let lldpcli terminate gracefully

10 months agofix: Typo
Breuninger Matthias (ETAS-DAP/XPC-Fe3) [Mon, 4 Nov 2024 08:10:15 +0000 (09:10 +0100)] 
fix: Typo

10 months agobuild: bump cachix/install-nix-action from 29 to 30
dependabot[bot] [Fri, 1 Nov 2024 19:24:31 +0000 (19:24 +0000)] 
build: bump cachix/install-nix-action from 29 to 30

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 29 to 30.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v29...v30)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
10 months agofix: add socket lock to AppArmor policy
Sten Spans [Mon, 28 Oct 2024 07:42:29 +0000 (08:42 +0100)] 
fix: add socket lock to AppArmor policy

10 months agobuild: query pkg-config for readline/libedit/libeditline
Vincent Bernat [Sat, 26 Oct 2024 06:55:08 +0000 (08:55 +0200)] 
build: query pkg-config for readline/libedit/libeditline

Fix #686

10 months agosonmp: convert deprecated inet_ntoa to inet_ntop
Hangbin Liu [Wed, 17 Jul 2024 01:24:31 +0000 (09:24 +0800)] 
sonmp: convert deprecated inet_ntoa to inet_ntop

inet_ntoa has been marked as deprecated. Let's convert it to inet_ntop.

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
10 months agobuild: stop using apheleia for C code
Vincent Bernat [Sat, 26 Oct 2024 07:17:06 +0000 (09:17 +0200)] 
build: stop using apheleia for C code

Related to faee60497260.

10 months agobuild: don't enforce style
Vincent Bernat [Fri, 25 Oct 2024 17:22:35 +0000 (19:22 +0200)] 
build: don't enforce style

clang-format is a pain with behaviour depending on the version...

10 months agodaemon: revert latest style change
Vincent Bernat [Fri, 25 Oct 2024 17:10:01 +0000 (19:10 +0200)] 
daemon: revert latest style change

10 months agodaemon: do not query PHY for a down interface on Linux
Vincent Bernat [Fri, 25 Oct 2024 16:33:28 +0000 (18:33 +0200)] 
daemon: do not query PHY for a down interface on Linux

It may wake up the device.

Fix #685

10 months agofix endless loop in redefined malloc/remalloc functions on system using uClibc
lzhou [Tue, 15 Oct 2024 02:48:13 +0000 (10:48 +0800)] 
fix endless loop in redefined malloc/remalloc functions on system using uClibc

11 months agobuild: use environment variables to configure pip
Vincent Bernat [Tue, 15 Oct 2024 20:44:07 +0000 (22:44 +0200)] 
build: use environment variables to configure pip

Otherwise, it may or may not work depending on the version of pip...

11 months agobuild: use Ubuntu 22.04
Vincent Bernat [Tue, 15 Oct 2024 20:37:02 +0000 (22:37 +0200)] 
build: use Ubuntu 22.04

Can't fix everything right now...

11 months agodaemon: fix formatting with clang-format
Vincent Bernat [Tue, 15 Oct 2024 19:10:45 +0000 (21:10 +0200)] 
daemon: fix formatting with clang-format

11 months agoRevert "build: try to build SNMP with --base-lib-cflags"
Vincent Bernat [Tue, 15 Oct 2024 19:08:20 +0000 (21:08 +0200)] 
Revert "build: try to build SNMP with --base-lib-cflags"

This reverts commit 3e3ba6e8dd93b2adf6a46b6345e7ff2f3ae7f962. This does
not work as it also includes -D_FORTIFY_SOURCE=x...

11 months agodaemon: fix usage of calloc
Vincent Bernat [Tue, 15 Oct 2024 19:05:14 +0000 (21:05 +0200)] 
daemon: fix usage of calloc

First argument is the number of elements to allocate.

11 months agobuild: try to build SNMP with --base-lib-cflags
Vincent Bernat [Tue, 15 Oct 2024 19:02:50 +0000 (21:02 +0200)] 
build: try to build SNMP with --base-lib-cflags

In the past, this was not working correctly. Let's see if the situation
has improved.

11 months agobuild: remove -D_FORTIFY_SOURCE= from NetSNMP CFLAGS
Vincent Bernat [Tue, 15 Oct 2024 19:00:51 +0000 (21:00 +0200)] 
build: remove -D_FORTIFY_SOURCE= from NetSNMP CFLAGS

This is really a pain...

11 months agobuild: allow pip to install packages system-wide
Vincent Bernat [Tue, 15 Oct 2024 06:26:59 +0000 (08:26 +0200)] 
build: allow pip to install packages system-wide

11 months agobuild: bump cachix/install-nix-action from 26 to 29
dependabot[bot] [Tue, 1 Oct 2024 19:54:54 +0000 (19:54 +0000)] 
build: bump cachix/install-nix-action from 26 to 29

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 26 to 29.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v26...v29)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agobuild: run cross-platforms test on ubuntu-latest
Vincent Bernat [Tue, 6 Aug 2024 05:36:20 +0000 (07:36 +0200)] 
build: run cross-platforms test on ubuntu-latest

MacOS and Xhyve are deprecated. See:
https://github.com/cross-platform-actions/action/blob/HEAD/changelog.md#0250---2024-07-11

13 months agobuild: bump cross-platform-actions/action from 0.24.0 to 0.25.0
dependabot[bot] [Thu, 1 Aug 2024 19:39:32 +0000 (19:39 +0000)] 
build: bump cross-platform-actions/action from 0.24.0 to 0.25.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/cross-platform-actions/action/releases)
- [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md)
- [Commits](https://github.com/cross-platform-actions/action/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: cross-platform-actions/action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
13 months agobuild: run clang-format
Vincent Bernat [Sun, 21 Jul 2024 15:13:22 +0000 (17:13 +0200)] 
build: run clang-format

14 months agolldpd: limit tx ttl to 65535 672/head
Hangbin Liu [Wed, 10 Jul 2024 07:49:32 +0000 (15:49 +0800)] 
lldpd: limit tx ttl to 65535

Based on IEEE 802.1AB(2016) 9.2.5.22 txTTL:
  During normal operation, txTTL is set to whichever is the smaller of the
  values represented by Equation (1) and Equation (2):
      (msgTxInterval x msgTxHold) + 1   (1)
      65535                             (2)

Reported-by: Matt Lucius <malucius@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
14 months agoclient: add range restriction for tx hold and interval
Hangbin Liu [Wed, 10 Jul 2024 07:32:01 +0000 (15:32 +0800)] 
client: add range restriction for tx hold and interval

Based on IEEE 802.1AB(2016) 9.2.5. The valid range of tx hold is 1-100,
the valid range of tx interval is 1-3600.

Reported-by: Matt Lucius <malucius@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
14 months agobuild: bump docker/build-push-action from 5 to 6
dependabot[bot] [Mon, 1 Jul 2024 19:42:34 +0000 (19:42 +0000)] 
build: bump docker/build-push-action from 5 to 6

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
15 months agoBe more defensive when parsing PRETTY_NAME out of os-release
Enji Cooper [Thu, 6 Jun 2024 04:25:59 +0000 (21:25 -0700)] 
Be more defensive when parsing PRETTY_NAME out of os-release

Test the result of `strtok(..)` to ensure that the line being parsed has
an `=` sign in it. This addresses a potential crash due to a NULL
pointer dereference.

Reported by: Coverity
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
16 months agopriv: disable LLDP in firmware for Intel X7xx cards on FreeBSD
John W. O'Brien [Sat, 11 May 2024 22:49:42 +0000 (18:49 -0400)] 
priv: disable LLDP in firmware for Intel X7xx cards on FreeBSD

16 months agobuild: fix inclusion of editline/readline.h
Vincent Bernat [Sat, 4 May 2024 13:00:04 +0000 (15:00 +0200)] 
build: fix inclusion of editline/readline.h

16 months agobuild: also test for editline/readline.h
Vincent Bernat [Sat, 4 May 2024 12:58:06 +0000 (14:58 +0200)] 
build: also test for editline/readline.h

16 months agoclient: provide a working prototype for readline()
Vincent Bernat [Sat, 4 May 2024 12:49:25 +0000 (14:49 +0200)] 
client: provide a working prototype for readline()

16 months agoosx: multiarch install package
Vincent Bernat [Sat, 4 May 2024 12:26:26 +0000 (14:26 +0200)] 
osx: multiarch install package

16 months agoosx: fix package build on Apple Silicon
Vincent Bernat [Sat, 4 May 2024 12:24:58 +0000 (14:24 +0200)] 
osx: fix package build on Apple Silicon

16 months agobuild: use FreeBSD 13.3
Vincent Bernat [Sat, 4 May 2024 11:59:48 +0000 (13:59 +0200)] 
build: use FreeBSD 13.3

16 months agobuild: run BSD tests on macos-12
Vincent Bernat [Sat, 4 May 2024 11:58:39 +0000 (13:58 +0200)] 
build: run BSD tests on macos-12

No nested virtualization allowed for macos-14.

16 months agodocs: in NEWS, mention extra capabilities
Vincent Bernat [Wed, 1 May 2024 21:54:20 +0000 (23:54 +0200)] 
docs: in NEWS, mention extra capabilities

16 months agobuild: bump cross-platform-actions/action from 0.23.0 to 0.24.0
dependabot[bot] [Wed, 1 May 2024 19:35:59 +0000 (19:35 +0000)] 
build: bump cross-platform-actions/action from 0.23.0 to 0.24.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/cross-platform-actions/action/releases)
- [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md)
- [Commits](https://github.com/cross-platform-actions/action/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: cross-platform-actions/action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
16 months agoExtra capabilities bitflags and configurability.
Paul Donald [Thu, 25 Apr 2024 11:40:50 +0000 (13:40 +0200)] 
Extra capabilities bitflags and configurability.
No attempt is made to detect such functionality yet.

16 months agodocs: fix spacing for code blocks
Vincent Bernat [Wed, 1 May 2024 21:51:21 +0000 (23:51 +0200)] 
docs: fix spacing for code blocks

16 months agoDocs (#657)
Paul Donald [Wed, 1 May 2024 21:48:08 +0000 (23:48 +0200)] 
Docs (#657)

* README.md improvements

* sp

16 months agoFix macos warnings at compile time.
Paul Donald [Thu, 25 Apr 2024 02:02:04 +0000 (04:02 +0200)] 
Fix macos warnings at compile time.

If this happens:

lldpd.c:1577:14: warning: variable 'pidfile' set but not used [-Wunused-but-set-variable]
        const char *pidfile = LLDPD_PID_FILE;

Then the other places using pidfile should get the same ifndef treatment

16 months agoDocument default behaviour for these advertisements.
Paul Donald [Mon, 22 Apr 2024 13:10:47 +0000 (15:10 +0200)] 
Document default behaviour for these advertisements.

16 months agooui-info format description: shall
Paul Donald [Sun, 21 Apr 2024 21:10:45 +0000 (23:10 +0200)] 
oui-info format description: shall

17 months agolib: Fix a buffer underflow in _lldpctl_dump_in_atom
Cliff Clark [Thu, 11 Apr 2024 21:48:13 +0000 (14:48 -0700)] 
lib: Fix a buffer underflow in _lldpctl_dump_in_atom

Do not write a zero byte before the beginning of the buffer when
_lldpctl_dump_in_atom is called with a zero length atom.

17 months agointerfaces: "fix" style issue in latest commit
Vincent Bernat [Sun, 7 Apr 2024 10:49:22 +0000 (12:49 +0200)] 
interfaces: "fix" style issue in latest commit

Depending on the version of clang, we may get different result. This is
annoying, but no time to fix that now.

17 months agointerfaces: don't use wireless extensions
Vincent Bernat [Sun, 7 Apr 2024 10:37:22 +0000 (12:37 +0200)] 
interfaces: don't use wireless extensions

Fix #579

17 months agodaemon: rework a bit systemd support
Vincent Bernat [Sun, 7 Apr 2024 06:16:26 +0000 (08:16 +0200)] 
daemon: rework a bit systemd support

Use connect() as done by other implementations, notably the one in
sd_notify(2). Also add a check on socket length.

17 months agobuild: bump softprops/action-gh-release from 1 to 2
dependabot[bot] [Mon, 1 Apr 2024 19:23:59 +0000 (19:23 +0000)] 
build: bump softprops/action-gh-release from 1 to 2

Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 1 to 2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild: bump cachix/install-nix-action from 25 to 26
dependabot[bot] [Mon, 1 Apr 2024 19:23:55 +0000 (19:23 +0000)] 
build: bump cachix/install-nix-action from 25 to 26

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 25 to 26.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v25...v26)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild: use pytest-forked to replace boxed feature from xdist
Vincent Bernat [Sun, 31 Mar 2024 14:14:36 +0000 (16:14 +0200)] 
build: use pytest-forked to replace boxed feature from xdist

This is needed because of the code switching from one namespace to
another.

17 months agobuild: don't use boxed feature of xdist
Vincent Bernat [Sun, 31 Mar 2024 13:55:23 +0000 (15:55 +0200)] 
build: don't use boxed feature of xdist

It has been removed from 3.0. This could be replaced by pytest-forked if
needed. I don't really remember why I was using that (I suppose it was
to avoid segfaults, due maybe to ctypes?).