]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
11 months ago[Fuzzing] updates for oss-fuzz Ideal integration 584/head
Arjun Singh [Sat, 27 May 2023 15:52:12 +0000 (21:22 +0530)] 
[Fuzzing] updates for oss-fuzz Ideal integration

Signed-off-by: Arjun Singh <ajsinghyadav00@gmail.com>
11 months agoosx: update homebrew recipe
Vincent Bernat [Thu, 18 May 2023 14:32:43 +0000 (16:32 +0200)] 
osx: update homebrew recipe

11 months agoosx: don't use plist_options
Vincent Bernat [Thu, 18 May 2023 14:31:55 +0000 (16:31 +0200)] 
osx: don't use plist_options

11 months agoredhat: do not ship .la file in -devel package
Vincent Bernat [Thu, 18 May 2023 14:29:44 +0000 (16:29 +0200)] 
redhat: do not ship .la file in -devel package

11 months agorelease: 1.0.17 1.0.17
Vincent Bernat [Thu, 18 May 2023 14:11:45 +0000 (16:11 +0200)] 
release: 1.0.17

12 months agobuild: bump cross-platform-actions/action from 0.10.0 to 0.13.0
dependabot[bot] [Mon, 1 May 2023 19:58:53 +0000 (19:58 +0000)] 
build: bump cross-platform-actions/action from 0.10.0 to 0.13.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.10.0 to 0.13.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.10.0...v0.13.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>
12 months agoclient: don't output empty lines on configure commands
Vincent Bernat [Fri, 21 Apr 2023 20:31:26 +0000 (22:31 +0200)] 
client: don't output empty lines on configure commands

12 months agolib: remove unreachable code
Vincent Bernat [Tue, 18 Apr 2023 05:12:27 +0000 (07:12 +0200)] 
lib: remove unreachable code

12 months agodaemon: fix read overflow when parsing CDP addresses
Vincent Bernat [Wed, 12 Apr 2023 05:38:31 +0000 (07:38 +0200)] 
daemon: fix read overflow when parsing CDP addresses

14 months agobuild: bump cachix/install-nix-action from 18 to 20
dependabot[bot] [Wed, 1 Mar 2023 19:59:47 +0000 (19:59 +0000)] 
build: bump cachix/install-nix-action from 18 to 20

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 18 to 20.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v18...v20)

---
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 agointerfaces: fix use of isdigit()
Vincent Bernat [Sat, 11 Feb 2023 09:59:53 +0000 (10:59 +0100)] 
interfaces: fix use of isdigit()

It is expecting an unsigned char. Make a cast.

14 months agobuild: bump cross-platform-actions/action from 0.7.0 to 0.10.0
dependabot[bot] [Thu, 2 Feb 2023 20:15:24 +0000 (20:15 +0000)] 
build: bump cross-platform-actions/action from 0.7.0 to 0.10.0

Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.7.0 to 0.10.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.7.0...v0.10.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>
14 months agobuild: bump docker/build-push-action from 3 to 4
dependabot[bot] [Wed, 1 Feb 2023 19:04:06 +0000 (19:04 +0000)] 
build: bump docker/build-push-action from 3 to 4

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 3 to 4.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v3...v4)

---
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>
14 months agobuild: don't run clang build with SNMP support
Vincent Bernat [Thu, 2 Feb 2023 19:47:23 +0000 (20:47 +0100)] 
build: don't run clang build with SNMP support

The flags from net-snmp-config does not work with clang. This is always
a mess.

15 months agobuild: bump cross-platform-actions/action from 0.6.2 to 0.7.0 (#566)
dependabot[bot] [Sun, 1 Jan 2023 19:27:37 +0000 (19:27 +0000)] 
build: bump cross-platform-actions/action from 0.6.2 to 0.7.0 (#566)

16 months agobuild: fix lldpcli build
Vincent Bernat [Thu, 29 Dec 2022 23:34:16 +0000 (00:34 +0100)] 
build: fix lldpcli build

16 months agobuild: better integration of fuzz-decode in build process
Vincent Bernat [Thu, 29 Dec 2022 22:25:05 +0000 (23:25 +0100)] 
build: better integration of fuzz-decode in build process

I need it to reproduce crashs. Get rid of `build.sh` which does not work
with OOT compilation. Move the needed bits inside README. Simplify some
of the flags used.

16 months agointerfaces: properly initialize ethtool structure
Vincent Bernat [Thu, 29 Dec 2022 21:01:13 +0000 (22:01 +0100)] 
interfaces: properly initialize ethtool structure

16 months agobuild: make all char unsigned
Vincent Bernat [Mon, 12 Dec 2022 13:20:25 +0000 (14:20 +0100)] 
build: make all char unsigned

This is something that may be used by the kernel later. char may be
signed or unsigned depending on the architecture, so catching that may
be difficult without this option.

16 months agotests: mark "too_many_vlans" test as unreliable
Vincent Bernat [Fri, 9 Dec 2022 08:26:48 +0000 (09:26 +0100)] 
tests: mark "too_many_vlans" test as unreliable

16 months agom4/progname.m4: Include <stdio.h> for printf in lldp_CHECK___PROGNAME
Florian Weimer [Thu, 8 Dec 2022 12:01:07 +0000 (13:01 +0100)] 
m4/progname.m4: Include <stdio.h> for printf in lldp_CHECK___PROGNAME

Otherwise the checks always fails with a compiler that does not
support implict function declarations.

16 months agotests: give more time to lldpd when handling many VLANs
Vincent Bernat [Thu, 8 Dec 2022 18:08:18 +0000 (19:08 +0100)] 
tests: give more time to lldpd when handling many VLANs

16 months agotests: use prefixlen instead of mask with pyroute2
Vincent Bernat [Thu, 8 Dec 2022 18:08:04 +0000 (19:08 +0100)] 
tests: use prefixlen instead of mask with pyroute2

16 months agotests: upgrade pytest and others to more recent versions
Vincent Bernat [Thu, 8 Dec 2022 17:37:36 +0000 (18:37 +0100)] 
tests: upgrade pytest and others to more recent versions

16 months agotests: fix warnings about format string
Vincent Bernat [Thu, 8 Dec 2022 17:29:42 +0000 (18:29 +0100)] 
tests: fix warnings about format string

16 months agobuild: switch back to apheleia
Vincent Bernat [Wed, 16 Nov 2022 23:54:10 +0000 (00:54 +0100)] 
build: switch back to apheleia

17 months agoMerge pull request #563 from lldpd/dependabot/github_actions/actions/cache-3
dependabot[bot] [Thu, 1 Dec 2022 19:13:58 +0000 (19:13 +0000)] 
Merge pull request #563 from lldpd/dependabot/github_actions/actions/cache-3

17 months agobuild: bump actions/cache from 2 to 3 563/head
dependabot[bot] [Thu, 1 Dec 2022 19:01:50 +0000 (19:01 +0000)] 
build: bump actions/cache from 2 to 3

Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>
17 months agosrc/client: add two missing commands to manual page
Vincent Bernat [Sat, 12 Nov 2022 08:10:03 +0000 (09:10 +0100)] 
src/client: add two missing commands to manual page

Fix #480

17 months agobuild: update two additional docker actions
Vincent Bernat [Sat, 12 Nov 2022 07:41:44 +0000 (08:41 +0100)] 
build: update two additional docker actions

17 months agobuild: fix release script to work with OOT build dir
Vincent Bernat [Fri, 11 Nov 2022 16:48:04 +0000 (17:48 +0100)] 
build: fix release script to work with OOT build dir

17 months agoosx: update Homebrew recipe
Vincent Bernat [Fri, 11 Nov 2022 16:43:53 +0000 (17:43 +0100)] 
osx: update Homebrew recipe

17 months agobuild: bump docker/build-push-action from 2 to 3
dependabot[bot] [Fri, 11 Nov 2022 14:24:11 +0000 (14:24 +0000)] 
build: bump docker/build-push-action from 2 to 3

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
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>
17 months agobuild: bump docker/login-action from 1 to 2
dependabot[bot] [Fri, 11 Nov 2022 14:24:16 +0000 (14:24 +0000)] 
build: bump docker/login-action from 1 to 2

Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

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

Signed-off-by: dependabot[bot] <support@github.com>
17 months agobuild: bump docker/metadata-action from 3 to 4
dependabot[bot] [Fri, 11 Nov 2022 14:24:18 +0000 (14:24 +0000)] 
build: bump docker/metadata-action from 3 to 4

Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 3 to 4.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md)
- [Commits](https://github.com/docker/metadata-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  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 17 to 18
dependabot[bot] [Fri, 11 Nov 2022 14:24:25 +0000 (14:24 +0000)] 
build: bump cachix/install-nix-action from 17 to 18

Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v17...v18)

---
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: bump actions/download-artifact from 2 to 3
dependabot[bot] [Fri, 11 Nov 2022 14:24:27 +0000 (14:24 +0000)] 
build: bump actions/download-artifact from 2 to 3

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

---
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: add dependabot
Vincent Bernat [Fri, 11 Nov 2022 14:18:07 +0000 (15:18 +0100)] 
build: add dependabot

17 months agobuild: update some actions to remove warnings
Vincent Bernat [Fri, 11 Nov 2022 14:17:21 +0000 (15:17 +0100)] 
build: update some actions to remove warnings

17 months agobuild: update set-output method for GitHub action
Vincent Bernat [Fri, 11 Nov 2022 14:13:23 +0000 (15:13 +0100)] 
build: update set-output method for GitHub action

17 months agorelease: 1.0.16 1.0.16
Vincent Bernat [Fri, 11 Nov 2022 13:25:30 +0000 (14:25 +0100)] 
release: 1.0.16

17 months agobuild: add .git-blame-ignore-revs file
Vincent Bernat [Sun, 6 Nov 2022 11:42:31 +0000 (12:42 +0100)] 
build: add .git-blame-ignore-revs file

17 months agobuild: reformat code
Vincent Bernat [Sun, 6 Nov 2022 11:39:50 +0000 (12:39 +0100)] 
build: reformat code

17 months agoci: enforce a format style with clang-format and black
Vincent Bernat [Sun, 6 Nov 2022 08:52:00 +0000 (09:52 +0100)] 
ci: enforce a format style with clang-format and black

On PR, we could use git-clang-format instead.

17 months agoci: add an Emacs script to format C files
Vincent Bernat [Sat, 5 Nov 2022 23:40:51 +0000 (00:40 +0100)] 
ci: add an Emacs script to format C files

    git ls-files '*.c' '*.h' \
        | grep -v '^include/' \
        | xargs emacs -Q --batch -l tests/ci/openbsd-knf-style.el

17 months agobuild: move again stuff using libfuzzer
Vincent Bernat [Sat, 5 Nov 2022 19:18:27 +0000 (20:18 +0100)] 
build: move again stuff using libfuzzer

And fix documentation.

17 months agobuild: fix fuzz-decode automake
Vincent Bernat [Fri, 4 Nov 2022 20:26:49 +0000 (21:26 +0100)] 
build: fix fuzz-decode automake

17 months agooss-fuzz and fuzzer files #551
0x34d [Sun, 9 Oct 2022 11:37:02 +0000 (17:07 +0530)] 
oss-fuzz and fuzzer files #551

Signed-off-by: 0x34d <ajsinghyadav00@gmail.com>
18 months agoci: update cross-platform-actions to 0.6.2
Vincent Bernat [Thu, 27 Oct 2022 21:40:01 +0000 (23:40 +0200)] 
ci: update cross-platform-actions to 0.6.2

To get OpenBSD 7.1.

18 months agoci: do not try to compile SNMP on MacOS
Vincent Bernat [Thu, 27 Oct 2022 21:36:50 +0000 (23:36 +0200)] 
ci: do not try to compile SNMP on MacOS

Broken, I don't think anybody is really using it. For some reason, the
Homebrew version does not take over.

18 months agoci: test with OpenBSD 7.1
Vincent Bernat [Thu, 27 Oct 2022 21:11:30 +0000 (23:11 +0200)] 
ci: test with OpenBSD 7.1

Latest is 7.2, but it's good to build with the version before. 6.9 not
available anymore.

18 months agoci: try to install NetSNMP from Homebrew
Vincent Bernat [Thu, 27 Oct 2022 21:22:53 +0000 (23:22 +0200)] 
ci: try to install NetSNMP from Homebrew

The one shipped with MacOS is broken.

```
checking whether C compiler supports flag "-DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -Os -pipe -DBUILD=174 -DMACOSX_DEPLOYMENT_TARGET=12.6 --sysroot /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -iframeworkwithsysroot /System/Library/Frameworks/-1788-11ed-b9c4-96898e02b808/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.6.Internal.sdk/System/Library/PrivateFrameworks/ -1788-11ed-b9c4-96898e02b808/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.6.Internal.sdk/System/Library/Frameworks/ -iwithsysroot /usr/local/libressl/include -L/AppleInternal/Library/BuildRoots/a0876c02-1788-11ed-b9c4-96898e02b808/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.6.Internal.sdk/usr/local/libressl/lib -Udarwin21 -Ddarwin21=darwin21 -I/usr/local/include -DNETSNMP_NO_INLINE -lnetsnmpmibs -lnetsnmpagent -lnetsnmp"
```

18 months agodaemon: name the ints returned by pattern_match() function
Vincent Bernat [Thu, 27 Oct 2022 21:02:34 +0000 (23:02 +0200)] 
daemon: name the ints returned by pattern_match() function

18 months agodaemon: cleanup remote ports for permanent interfaces too
Vincent Bernat [Thu, 27 Oct 2022 20:55:25 +0000 (22:55 +0200)] 
daemon: cleanup remote ports for permanent interfaces too

Otherwise, we will try to delete them again and again.

Fix #554

18 months agolib: fix types in custom TLVs documentation
Vincent Bernat [Sat, 8 Oct 2022 11:41:38 +0000 (13:41 +0200)] 
lib: fix types in custom TLVs documentation

Fix #550

19 months agoclient: document ability to have per-port custom TLVs
Vincent Bernat [Thu, 22 Sep 2022 21:14:37 +0000 (23:14 +0200)] 
client: document ability to have per-port custom TLVs

19 months agolib: zero receive buffer
Vincent Bernat [Sun, 18 Sep 2022 08:03:43 +0000 (10:03 +0200)] 
lib: zero receive buffer

This is not strictly needed as we only use the part that was correctly
written by recv(), but it helps static tool analysis.

19 months agobuild: really reset coverity cache
Vincent Bernat [Sun, 18 Sep 2022 07:25:14 +0000 (09:25 +0200)] 
build: really reset coverity cache

19 months agobuild: reset Coverity cache
Vincent Bernat [Sun, 18 Sep 2022 07:23:58 +0000 (09:23 +0200)] 
build: reset Coverity cache

20 months agodaemon: do not use 00:00:00:00:00:00 as chassis ID
Vincent Bernat [Thu, 18 Aug 2022 21:56:47 +0000 (23:56 +0200)] 
daemon: do not use 00:00:00:00:00:00 as chassis ID

Fix #541

20 months agoclient: mention pause does not work in the configuration file
Vincent Bernat [Wed, 17 Aug 2022 18:18:41 +0000 (20:18 +0200)] 
client: mention pause does not work in the configuration file

Fix #538

20 months agobuild: only build ARM64 docker images for releases
Vincent Bernat [Wed, 17 Aug 2022 15:36:42 +0000 (17:36 +0200)] 
build: only build ARM64 docker images for releases

20 months agobuild: disable multi-arch build for now
Vincent Bernat [Wed, 17 Aug 2022 14:50:25 +0000 (16:50 +0200)] 
build: disable multi-arch build for now

We keep this as this would become handy in the future and people can
still try to use it.

20 months agobuild: ship universal binaries for macOS
Vincent Bernat [Wed, 17 Aug 2022 14:09:02 +0000 (16:09 +0200)] 
build: ship universal binaries for macOS

This mostly reverts commit 737afb3517d822ae50722510993acbd097bc5aca.
We have to build in an OOT directory to make it work. This also
requires to bump minimum SDK to 11.1 (for ARM64 mostly but it also fix
an issue with strtonum() which is detected as available but really is
since 11.0 only).

This does not currently work as the host has to be ARM64 (to be able
to run both binaries). Otherwise, we would have to cross-compile. See
https://github.com/actions/runner-images/issues/2187 for availability.

20 months agobuild: try to run FreeBSD/OpenBSD on macos-latest
Vincent Bernat [Wed, 17 Aug 2022 14:12:13 +0000 (16:12 +0200)] 
build: try to run FreeBSD/OpenBSD on macos-latest

macos-10.15 environment is being deprecated.

20 months agobuild: prefer install in /usr/local in Docker
Vincent Bernat [Wed, 17 Aug 2022 13:47:45 +0000 (15:47 +0200)] 
build: prefer install in /usr/local in Docker

It does not matter much, but this is more correct from a distribution
point of view.

20 months agorelease: 1.0.15 1.0.15
Vincent Bernat [Wed, 17 Aug 2022 13:07:26 +0000 (15:07 +0200)] 
release: 1.0.15

20 months agoprotocol/lldp: accept unknown TLVs on known orgs
Vincent Bernat [Tue, 16 Aug 2022 16:31:06 +0000 (18:31 +0200)] 
protocol/lldp: accept unknown TLVs on known orgs

Fix #532

20 months agoclient: make a connection before parsing inputs
Vincent Bernat [Thu, 11 Aug 2022 16:24:39 +0000 (18:24 +0200)] 
client: make a connection before parsing inputs

This shows a clear error message if the socket does not exist and when
using privileged commands.

Fix #535.

20 months agodoc: mention contributor of last commit
Vincent Bernat [Thu, 11 Aug 2022 10:34:32 +0000 (12:34 +0200)] 
doc: mention contributor of last commit

20 months agoclient: Added support to override system capabilities
Ignacio Sanchez Navarro [Mon, 1 Aug 2022 17:22:40 +0000 (13:22 -0400)] 
client: Added support to override system capabilities

1) configure system capabilities enabled <capability_0,capability_1,...>

    Override system capabilities with the provided value instead of using kernel information. Several capabilities can be specified separated by commas. Only available capabilities can be enabled. Valid capabilities are:

        other
        repeater
        bridge
        wlan
        router
        telephone
        docsis
        station

    Here is an example of use:

        lldpcli configure system capabilities enabled bridge,router

2) unconfigure system capabilities enabled

    Do not override capabilities and use the kernel information. This option undoes the previous one.

Ignacio Sanchez Navarro (Ignacio.Sanchez@uws.ac.uk) - University of the West of Scotland - Supported by H2020-ICT-2020-2/101017226 6G-BRAINS

-------------------------------------------------------------------------------
Modified files

lldpd-structs.h
    - Added new attribute "c_cap_override" to "lldpd_config" struct

conf-system.c
    - Added new function "cmd_capability" for new command to override the chassis capabilities
    - Added new function "register_commands_capabilities" to registers new commands to override the chassis capabilities
    - Added call to "register_commands_capabilities" in "register_commands_configure_system"

chassis.c
    - Added new function "_lldpctl_atom_st_int_chassis" to set "int" type vars in chassis
    - Added assignation of ".set_int" function in "chassis" var build

config.c
    - Added case for "lldpctl_k_config_chassis_cap_override" to get value of "c_cap_override" in "_lldpctl_atom_get_int_config" function
    - Added case for "lldpctl_k_config_chassis_cap_override" to set value of "c_cap_override" in "_lldpctl_atom_set_int_config" function

client.c
    - Added changes check for "c_cap_override" var in "client_handle_set_configuration" function
    - Added changes check for "c_cap_enabled" var in "client_handle_set_local_chassis" function

lldpctl.h
    - Added new enum values un "lldpctl_key_t" enum : "lldpctl_k_chassis_cap_enabled" and "lldpctl_k_config_chassis_cap_override"
    - Corrected some typos in previous comments

lldpd.c
    - Added check of capabilities override before setting new values in "lldpd_update_localchassis" function
    - Added check of capabilities override before setting initial value of "c_cap_enabled" to 0 in "lldpd_loop" function
    - Added initial set of "cfg->g_config.c_cap_override" to 0 in "lldpd_main" function

interfaces.c
    - Added check of capabilities override before setting new values in "interfaces_helper_chassis" function

display.c
    - Added new line to display the status of capabilities override in "show configration" command

lldpcli.8.in
    - Added new commands and descriptions to man file

20 months agobuild: update flake.lock
Vincent Bernat [Fri, 5 Aug 2022 10:38:29 +0000 (12:38 +0200)] 
build: update flake.lock

21 months agogithub: only build tags, master branch and pull requests
Vincent Bernat [Sat, 30 Jul 2022 09:37:05 +0000 (11:37 +0200)] 
github: only build tags, master branch and pull requests

21 months agogithub: revert last change
Vincent Bernat [Mon, 25 Jul 2022 05:32:48 +0000 (07:32 +0200)] 
github: revert last change

The template is shown as text, so no need to escape backticks.

21 months agogithub: show how to use triple backticks
Vincent Bernat [Mon, 25 Jul 2022 05:31:18 +0000 (07:31 +0200)] 
github: show how to use triple backticks

21 months agonetlink: fix indentation
Vincent Bernat [Mon, 11 Jul 2022 06:30:35 +0000 (08:30 +0200)] 
netlink: fix indentation

21 months agonetlink: ignore IPv6 temporary addresses
Vincent Bernat [Wed, 6 Jul 2022 20:56:29 +0000 (22:56 +0200)] 
netlink: ignore IPv6 temporary addresses

21 months agotests: really fix "too many VLANs" test
Vincent Bernat [Wed, 6 Jul 2022 20:44:24 +0000 (22:44 +0200)] 
tests: really fix "too many VLANs" test

We want to have a neighbor, but without VLANs.

21 months agodoc: add an entry for latest commit
Vincent Bernat [Wed, 6 Jul 2022 19:25:27 +0000 (21:25 +0200)] 
doc: add an entry for latest commit

Also fix the test!

21 months agolldp: don't send vlan when without_vlans is set
Florent Fourcot [Mon, 4 Jul 2022 08:46:06 +0000 (10:46 +0200)] 
lldp: don't send vlan when without_vlans is set

Fixes: 8e9dbbf80918 "lldp: don't send VLANs when there are too many of them
On interface with a lot of vlans, we still have "Too big packet"
notification on version 1.0.14

It looks like retry does exactly the same packet than first try

23 months agodebian: update debhelper to 9
Vincent Bernat [Sat, 21 May 2022 21:24:25 +0000 (23:24 +0200)] 
debian: update debhelper to 9

23 months agorelease: 1.0.14 1.0.14
Vincent Bernat [Sat, 21 May 2022 21:07:48 +0000 (23:07 +0200)] 
release: 1.0.14

23 months agoRevert "lib: update version-info"
Vincent Bernat [Sun, 15 May 2022 10:03:52 +0000 (12:03 +0200)] 
Revert "lib: update version-info"

This reverts commit e069bba4ec993cc4df14fab3a7108f43e3b66714. My bad,
this should not be changed just because of new stuff in enums. Only
additional functions require an update.

23 months agolib: update version-info
Vincent Bernat [Sun, 15 May 2022 10:02:41 +0000 (12:02 +0200)] 
lib: update version-info

This is reverse-compatible with previous versions.

23 months agodoc: add a NEWS entry for latest commits
Vincent Bernat [Sun, 15 May 2022 09:56:52 +0000 (11:56 +0200)] 
doc: add a NEWS entry for latest commits

23 months agodocs: fix discussion ID related to VLAN issues
Vincent Bernat [Sat, 14 May 2022 22:43:58 +0000 (00:43 +0200)] 
docs: fix discussion ID related to VLAN issues

23 months agodoc: Add docs for (un)configure inventory commands
Harshal Gohel [Thu, 14 Apr 2022 05:22:47 +0000 (10:52 +0530)] 
doc: Add docs for (un)configure inventory commands

23 months agotests: Add inventory configuration tests
Harshal Gohel [Mon, 11 Apr 2022 12:45:05 +0000 (18:15 +0530)] 
tests: Add inventory configuration tests

23 months agomed: Add configure inventory commands
Harshal Gohel [Mon, 11 Apr 2022 12:42:50 +0000 (18:12 +0530)] 
med: Add configure inventory commands

Default inventory information is fetched from dmi table.
Most of embedded devices do not run EFI bootloader hence dmi information
will not be available in /sys/class/dmi

- Add `configure inventory` commands
- Add `unconfigure inventory` commands
- New code is dependent on enable-lldpmed
- Add write support on lldpctl atoms
- Add support for setting inventory configuration in daemon
- Refactor `lldp_med` to assign `c_med_sw` only once.
  We have the configurability of inventory information, So
  it is not required for daemon to keep assigning `c_med_sw`

23 months agotests: ensure we free pyroute2 resources fix/too-many-vlans
Vincent Bernat [Sat, 14 May 2022 21:10:53 +0000 (23:10 +0200)] 
tests: ensure we free pyroute2 resources

23 months agolldp: don't send VLANs when there are too many of them
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

2 years agodoc: restore note about Intel cards
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.

2 years agodocker: fix build on Alpine by requiring bsd-compat-headers for sys/queue.h
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.

2 years agoinclude: add back include/linux for old distributions
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.

2 years agoinclude: nuke include directory for BSD and Linux
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)

2 years agoci: only run distcheck if we are doing a release
Vincent Bernat [Fri, 11 Mar 2022 21:57:51 +0000 (22:57 +0100)] 
ci: only run distcheck if we are doing a release

2 years agoci: tentative to also build on FreeBSD/NetBSD/OpenBSD
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.

2 years agobuild: use `cc -E` instead of `cpp` to build atom list
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`.

2 years agobuild: define _OPENBSD_SOURCE on NetBSD
Vincent Bernat [Fri, 11 Mar 2022 06:37:47 +0000 (07:37 +0100)] 
build: define _OPENBSD_SOURCE on NetBSD

2 years agodoc: use @sysconfdir@ for /etc in manual pages
Vincent Bernat [Fri, 11 Mar 2022 06:26:54 +0000 (07:26 +0100)] 
doc: use @sysconfdir@ for /etc in manual pages