]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
12 days agobuild: bump cross-platform-actions/action from 0.27.0 to 0.28.0 master
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>
2 weeks 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 weeks 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

2 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

2 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>
2 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>
2 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

2 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

2 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.

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

2 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

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

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

4 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

4 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

4 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>
4 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

4 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

4 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

5 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>
5 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.

5 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

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

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

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

5 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

6 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>
6 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>
6 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().

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

6 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.

6 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

6 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

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

7 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>
7 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

7 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

7 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>
7 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.

7 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...

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

7 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

7 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

7 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...

7 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...

7 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

7 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...

7 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.

7 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.

7 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...

7 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

8 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>
10 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

10 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>
10 months agobuild: run clang-format
Vincent Bernat [Sun, 21 Jul 2024 15:13:22 +0000 (17:13 +0200)] 
build: run clang-format

11 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>
11 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>
11 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>
12 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>
13 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

13 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

13 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

13 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()

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

13 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

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

13 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.

13 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

13 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>
13 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.

13 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

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

* README.md improvements

* sp

13 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

13 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.

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

14 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.

14 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.

14 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

14 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.

14 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>
14 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>
14 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.

14 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?).

14 months agobuild: disable gold linker in CI
Vincent Bernat [Sun, 31 Mar 2024 13:46:54 +0000 (15:46 +0200)] 
build: disable gold linker in CI

This should not be needed anymore nowadays. This is a tentative to fix
the following errors with clang:

    /usr/bin/ld.gold: warning: Cannot export local symbol '__asan_check_load_add_16_RAX'

14 months agoclient: spell fix
Paul Donald [Sat, 16 Mar 2024 17:27:37 +0000 (18:27 +0100)] 
client: spell fix

14 months agodocs: man page fixes
Paul Donald [Sat, 16 Mar 2024 17:25:42 +0000 (18:25 +0100)] 
docs: man page fixes

15 months agobuild: bump cachix/install-nix-action from 24 to 25
dependabot[bot] [Thu, 1 Feb 2024 19:50:11 +0000 (19:50 +0000)] 
build: bump cachix/install-nix-action from 24 to 25

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

---
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>
15 months agobuild: bump cross-platform-actions/action from 0.22.0 to 0.23.0
dependabot[bot] [Fri, 1 Mar 2024 19:19:11 +0000 (19:19 +0000)] 
build: bump cross-platform-actions/action from 0.22.0 to 0.23.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.22.0 to 0.23.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.22.0...v0.23.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 agodocs: man page fixes
Paul Dee [Thu, 8 Feb 2024 17:32:59 +0000 (18:32 +0100)] 
docs: man page fixes

changed: network cable -> link

change -M help text in src/daemon/lldpd.c also

16 months agoosx: update Brew formula
Vincent Bernat [Sun, 14 Jan 2024 15:50:31 +0000 (16:50 +0100)] 
osx: update Brew formula

16 months agoredhat: suppress extra .la file we don't want to install 1.0.18
Vincent Bernat [Sun, 14 Jan 2024 14:36:05 +0000 (15:36 +0100)] 
redhat: suppress extra .la file we don't want to install

16 months agoredhat: fix date in changelog
Vincent Bernat [Sun, 14 Jan 2024 14:32:01 +0000 (15:32 +0100)] 
redhat: fix date in changelog

16 months agorelease: 1.0.18
Vincent Bernat [Sun, 14 Jan 2024 14:11:38 +0000 (15:11 +0100)] 
release: 1.0.18

There is a small regression in support for 802.3BT. People should keep
using 1.0.17 if that's important for them.

17 months agobuild: bump actions/download-artifact from 3 to 4
dependabot[bot] [Mon, 1 Jan 2024 19:28:31 +0000 (19:28 +0000)] 
build: bump actions/download-artifact from 3 to 4

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

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

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild: bump actions/upload-artifact from 3 to 4
dependabot[bot] [Mon, 1 Jan 2024 19:28:34 +0000 (19:28 +0000)] 
build: bump actions/upload-artifact from 3 to 4

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

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

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild: bump cross-platform-actions/action from 0.21.1 to 0.22.0
dependabot[bot] [Mon, 1 Jan 2024 19:28:36 +0000 (19:28 +0000)] 
build: bump cross-platform-actions/action from 0.21.1 to 0.22.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.21.1 to 0.22.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.21.1...v0.22.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>
18 months agodaemon/netlink: fix documentation string
Vincent Bernat [Mon, 4 Dec 2023 20:54:23 +0000 (21:54 +0100)] 
daemon/netlink: fix documentation string

18 months agodaemon/netlink: use a different socket for changes and queries
Vincent Bernat [Mon, 4 Dec 2023 15:58:23 +0000 (16:58 +0100)] 
daemon/netlink: use a different socket for changes and queries

There is a race condition when using the same socket for both. We need
to subscribe for changes before getting the current state as we don't
want to miss an update happening while we get the initial state, but if
there is such an update, the Netlink messages we receive may not be the
ones we expect.

Fix #611

18 months agocompat: add compat.h header to get forward declarations
Vincent Bernat [Mon, 4 Dec 2023 15:52:45 +0000 (16:52 +0100)] 
compat: add compat.h header to get forward declarations

18 months agodaemon/priv: no need to define IFALIASZ
Vincent Bernat [Sat, 2 Dec 2023 21:01:28 +0000 (22:01 +0100)] 
daemon/priv: no need to define IFALIASZ

It is part of the shipped kernel header. This is a bit odd we did define
it...