]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
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

21 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

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

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

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

22 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

2 years agoci: try to run make check even with clang fix/check-clang
Vincent Bernat [Thu, 10 Mar 2022 20:44:56 +0000 (21:44 +0100)] 
ci: try to run make check even with clang

The mentioned issue has been solved.

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

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

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

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

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

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

Running lldpd in the foreground as follows:

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

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

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

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

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

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

Fix #490.

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

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

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

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

Therefore, allocate it dynamically. Fix #489.

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

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

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

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

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

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

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

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

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

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

CVE-2021-43612

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* changed 10GigBaseCX4 to 10GbaseT in tests

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

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

Fix #474

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

Otherwise, people may get notified too early.

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

This is needed for "git log" to work

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

The tag is too early...

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

Otherwise, changelog is empty.

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

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

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

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

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

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

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

If people want more, they will tell us.

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

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

Well, it is not totally true yet.

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

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

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

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

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

It does not work anymore as wheezy is too old.

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

And also add a link to discussions for generic questions.

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

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

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

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

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

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

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

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

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

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

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

Fix #445

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