]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
3 years agoclient: fix additional memory leaks detected by Coverity Scan fix/coverity-annotations
Vincent Bernat [Sun, 21 Mar 2021 14:25:19 +0000 (15:25 +0100)] 
client: fix additional memory leaks detected by Coverity Scan

3 years agodaemon: rewrite `mkdir_p()` to not use strtok/strcat
Vincent Bernat [Sun, 21 Mar 2021 14:22:06 +0000 (15:22 +0100)] 
daemon: rewrite `mkdir_p()` to not use strtok/strcat

3 years agodaemon: fix some coverity annotations
Vincent Bernat [Sun, 21 Mar 2021 14:20:20 +0000 (15:20 +0100)] 
daemon: fix some coverity annotations

3 years agoclient: make it easier for Coverity to understand commands_new()
Vincent Bernat [Sun, 21 Mar 2021 12:56:19 +0000 (13:56 +0100)] 
client: make it easier for Coverity to understand commands_new()

Never returning NULL is not enough to make Coverity understands we
don't leak anything. Remove the branch in commands_new() as it must
never happen, except for the root node.

3 years agobuild: allow to manually trigger Coverity Scan
Vincent Bernat [Sun, 21 Mar 2021 12:38:04 +0000 (13:38 +0100)] 
build: allow to manually trigger Coverity Scan

3 years agodaemon: enforce limits when receiving arbitrary-length data in privsep
Vincent Bernat [Sun, 21 Mar 2021 10:39:33 +0000 (11:39 +0100)] 
daemon: enforce limits when receiving arbitrary-length data in privsep

3 years agointerfaces: use an array of MAC addresses when defining supported protocols
Vincent Bernat [Sun, 21 Mar 2021 10:32:25 +0000 (11:32 +0100)] 
interfaces: use an array of MAC addresses when defining supported protocols

In interfaces.c, we were handling it as a table while in lldpd.c, we
were copy-pasting the same condition three times. This was confusing
for analysis tools.

3 years agopriv: abort on allocation error
Vincent Bernat [Sun, 21 Mar 2021 11:09:49 +0000 (12:09 +0100)] 
priv: abort on allocation error

This helps Coverity Scan.

3 years agodaemon: annotate "daemonisation" to help Coverity
Vincent Bernat [Sun, 21 Mar 2021 11:05:16 +0000 (12:05 +0100)] 
daemon: annotate "daemonisation" to help Coverity

When daemonizing, we need to use /dev/null for stdin, stdout, and
stderr. If one of these file descriptors happen to be already closed,
we need to close the new file descriptor only if > 2. This is
confusing confusing for Coverity, annotate it correctly.

Not all locations are annotated because not all of them are detected,
for some reason.

3 years agoclient: do not allow memory allocations to fail
Vincent Bernat [Sun, 21 Mar 2021 10:21:24 +0000 (11:21 +0100)] 
client: do not allow memory allocations to fail

This leads to some memory leak (quite improbable), but we don't want
to continue running with an incomplete set of commands.

3 years agonetlink: fix socket leak on some error condition
Vincent Bernat [Sun, 21 Mar 2021 10:00:59 +0000 (11:00 +0100)] 
netlink: fix socket leak on some error condition

3 years agonetlink: remove dead code, iface2 cannot be NULL inside the iterator
Vincent Bernat [Sun, 21 Mar 2021 09:56:52 +0000 (10:56 +0100)] 
netlink: remove dead code, iface2 cannot be NULL inside the iterator

3 years agobuild: reenable Coverity Scan
Vincent Bernat [Sun, 21 Mar 2021 09:29:10 +0000 (10:29 +0100)] 
build: reenable Coverity Scan

3 years agoprotocols: fix more memory leak when decoding multiple TLVs
Vincent Bernat [Tue, 16 Mar 2021 16:36:35 +0000 (17:36 +0100)] 
protocols: fix more memory leak when decoding multiple TLVs

In a8d3c90feca5, some memory leaks were fixed when a TLV is present
multiple times. There were other occurrences in LLDP, CDP and EDP
handling. We ensure we free before overwriting with the new TLVs.

Fix #436

3 years agoEliminate unused arguments to priv_init() with --disable-privsep.
John Lindgren [Mon, 8 Mar 2021 17:06:47 +0000 (12:06 -0500)] 
Eliminate unused arguments to priv_init() with --disable-privsep.

This seems a bit cleaner than passing dummy values (e.g. 0) that
aren't ever used.  Additionally, it means that PRIVSEP_CHROOT no
longer needs to be defined to a dummy value if building with
--disable-privsep.

3 years agoFix relative include paths to be more correct and portable.
John Lindgren [Mon, 8 Mar 2021 15:27:23 +0000 (10:27 -0500)] 
Fix relative include paths to be more correct and portable.

Some relative include paths in subdirectories (src/daemon/protocols
and src/lib/atoms) were written relative to the parent directories
(src/daemon and src/lib).  This was okay in automake builds but
caused errors when porting to other build systems (for example,
Android make).

3 years agoclient: don't show age/via for local interfaces feature/show-port-config
Vincent Bernat [Mon, 1 Mar 2021 08:21:10 +0000 (09:21 +0100)] 
client: don't show age/via for local interfaces

3 years agoclient: display port administrative status with "show interfaces"
Vincent Bernat [Sun, 28 Feb 2021 15:29:41 +0000 (16:29 +0100)] 
client: display port administrative status with "show interfaces"

Fix #432.

3 years agotests: also test if we send interface description if present
Vincent Bernat [Sat, 30 Jan 2021 15:43:15 +0000 (16:43 +0100)] 
tests: also test if we send interface description if present

3 years agointerfaces: do not use interface alias if we set it ourselves
Vincent Bernat [Sat, 30 Jan 2021 15:39:59 +0000 (16:39 +0100)] 
interfaces: do not use interface alias if we set it ourselves

Fix #431

3 years agotests: add a test for "configure system interface description"
Vincent Bernat [Sat, 30 Jan 2021 15:35:07 +0000 (16:35 +0100)] 
tests: add a test for "configure system interface description"

3 years agodoc: tell content of lib should be in lib64 for Android
Vincent Bernat [Thu, 28 Jan 2021 11:54:23 +0000 (12:54 +0100)] 
doc: tell content of lib should be in lib64 for Android

3 years agodoc: tell minimum Android NDK this has been tested with
Vincent Bernat [Wed, 27 Jan 2021 18:53:34 +0000 (19:53 +0100)] 
doc: tell minimum Android NDK this has been tested with

With ndk21r, `LD` should be set to `ld.lld`.

3 years agodoc: update instructions for Android
Vincent Bernat [Wed, 27 Jan 2021 18:19:15 +0000 (19:19 +0100)] 
doc: update instructions for Android

Android NDK is a less and less capable toolchain. The standalone
toolchain is deprecated and the new way require you to override a
bunch of variables. Documentation also contains mistakes.

3 years agolldpd: override compiler and linker option strings
Oleksiy Obitotskyy [Tue, 19 Jan 2021 08:33:06 +0000 (00:33 -0800)] 
lldpd: override compiler and linker option strings

Compiler and linker option strings contains absolute path, so
replace them with disclaimer. Thos strings used only as
debug information to show not actual compilation options.

Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
3 years agorelease: 1.0.8 1.0.8
Vincent Bernat [Wed, 13 Jan 2021 17:43:16 +0000 (18:43 +0100)] 
release: 1.0.8

3 years agodoc: add NEWS entry about CVE-2020-27827
Vincent Bernat [Wed, 13 Jan 2021 17:42:19 +0000 (18:42 +0100)] 
doc: add NEWS entry about CVE-2020-27827

3 years agodoc: update NEWS file
Vincent Bernat [Sat, 9 Jan 2021 18:08:52 +0000 (19:08 +0100)] 
doc: update NEWS file

3 years agorouting/linux: check IPv6 forwarding status when enabling Router capa
Antonio Quartulli [Sat, 9 Jan 2021 14:45:50 +0000 (15:45 +0100)] 
routing/linux: check IPv6 forwarding status when enabling Router capa

Consider also IPv6 when deciding whether to enable the Router capability.
This way, if a host is a router for IPv6 only, it will still be
advertised as Router to its neighbours.

Signed-off-by: Antonio Quartulli <a@unstable.cc>
3 years agotests: don't install libxml2 on MacOS
Vincent Bernat [Sat, 9 Jan 2021 15:22:09 +0000 (16:22 +0100)] 
tests: don't install libxml2 on MacOS

It is shipped and Homebrew will fail if we try to install it.

3 years agoMerge pull request #423 from jow-/bugfix-prevent-macro-conflict
Vincent Bernat [Wed, 9 Dec 2020 11:27:08 +0000 (12:27 +0100)] 
Merge pull request #423 from jow-/bugfix-prevent-macro-conflict

build: prevent conflict with official AX_LIB_READLINE macro

3 years agobuild: prevent conflict with official AX_LIB_READLINE macro 423/head
Jo-Philipp Wich [Wed, 9 Dec 2020 11:04:04 +0000 (12:04 +0100)] 
build: prevent conflict with official AX_LIB_READLINE macro

On systems where the official AX_LIB_READLINE (ax_lib_readline.m4) is
present in a globally shared autoconf include directory, auto(re)conf
will prefer including that offical version over the local variant due
to the offical macro having a higher serial number.

As a consequence, @READLINE_LIBS@ will not be substituted in *.in files,
eventually failing the compilation with errors similar to:

    gcc: error: READLINE_LIBS@: No such file or directory

Avoid this problem by renaming the incompatible local macro to
AX_LIB_READLINE_LLDPD which is sufficient to prevent any clashes.

We encountered this problem on OpenWrt which uses GNU autoconf-archive
to provide commonly used M4 macros through a global include directory,
which happens to ship AX_LIB_READLINE as well.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
3 years agoMerge pull request #422 from lldpd/fix/lldp-med-loc-parsing
Vincent Bernat [Sun, 6 Dec 2020 13:41:38 +0000 (14:41 +0100)] 
Merge pull request #422 from lldpd/fix/lldp-med-loc-parsing

lib: fix LLDP-MED location parsing in liblldpctl

3 years agolib: fix LLDP-MED location parsing in liblldpctl fix/lldp-med-loc-parsing 422/head
Vincent Bernat [Sun, 6 Dec 2020 13:21:04 +0000 (14:21 +0100)] 
lib: fix LLDP-MED location parsing in liblldpctl

Some bounds were not checked correctly when parsing LLDP-MED civic
location fields. This triggers out-of-bound reads (no write) in
lldpcli, ultimately leading to a crash.

Fix #420

3 years agoMerge pull request #418 from orgcandman/memleak_fix
Vincent Bernat [Tue, 17 Nov 2020 16:54:17 +0000 (17:54 +0100)] 
Merge pull request #418 from orgcandman/memleak_fix

lldp: avoid memory leak from bad packets

3 years agolldp: avoid memory leak from bad packets 418/head
Aaron Conole [Tue, 17 Nov 2020 14:28:17 +0000 (09:28 -0500)] 
lldp: avoid memory leak from bad packets

A packet that contains multiple instances of certain TLVs will cause
lldpd to continually allocate memory and leak the old memory.  As an
example, multiple instances of system name TLV will cause old values
to be dropped by the decoding routine.

Reported-at: https://github.com/openvswitch/ovs/pull/337
Reported-by: Jonas Rudloff <jonas.t.rudloff@gmail.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
3 years agodoc: fix lldpd new URL
Vincent Bernat [Sat, 14 Nov 2020 11:26:47 +0000 (12:26 +0100)] 
doc: fix lldpd new URL

3 years agodoc: move lldpd to a dedicated organization
Vincent Bernat [Sat, 14 Nov 2020 07:54:01 +0000 (08:54 +0100)] 
doc: move lldpd to a dedicated organization

3 years agogithub: move away from Travis to GitHub Actions
Vincent Bernat [Sun, 8 Nov 2020 15:01:20 +0000 (16:01 +0100)] 
github: move away from Travis to GitHub Actions

3 years agolibevent: update to 2.1.12-stable
Vincent Bernat [Sun, 8 Nov 2020 15:52:36 +0000 (16:52 +0100)] 
libevent: update to 2.1.12-stable

3 years agodaemon: remove implicit fall-through
Vincent Bernat [Sun, 8 Nov 2020 15:26:54 +0000 (16:26 +0100)] 
daemon: remove implicit fall-through

3 years agorelease: 1.0.7 1.0.7
Vincent Bernat [Sat, 31 Oct 2020 14:34:20 +0000 (15:34 +0100)] 
release: 1.0.7

3 years agoMerge pull request #414 from vincentbernat/fix/missed-lldp-packets
Vincent Bernat [Sat, 31 Oct 2020 07:52:37 +0000 (08:52 +0100)] 
Merge pull request #414 from vincentbernat/fix/missed-lldp-packets

interfaces: listen to all incoming packets on Linux, not just LLDP ones

3 years agointerfaces: listen to all incoming packets on Linux, not just LLDP ones fix/missed-lldp-packets 414/head
Vincent Bernat [Tue, 27 Oct 2020 17:31:22 +0000 (18:31 +0100)] 
interfaces: listen to all incoming packets on Linux, not just LLDP ones

This mostly reverts fc5526dae75f. Listening only on ETH_P_LLDP makes
us miss incoming packets on enslaved interfaces to an Open vSwitch.
Therefore, prefer listening to ETH_P_ALL instead of ETH_P_LLDP. It is
likely that enslaved interfaces do not fully process Ethernet packets
and `type` is not correctly filled.

Fix #413

3 years agotests: fix tests around XML by canonicalizing XML representation
Vincent Bernat [Mon, 7 Sep 2020 18:10:10 +0000 (20:10 +0200)] 
tests: fix tests around XML by canonicalizing XML representation

Since Python 3.8, insertion order is respected for attributes, so we
cannot just compare strings as previously. Python 3.8 also introduces
a `canonicalize()` function to normalize XML for digital signature. We
apply this function if it exists.

3 years agolinux: ignore outgoing packets at the socket level
Vincent Bernat [Mon, 7 Sep 2020 15:45:38 +0000 (17:45 +0200)] 
linux: ignore outgoing packets at the socket level

Since Linux 4.20, it is possible to ignore outgoing packets. This is
already done like this on *BSD.

3 years agoosx: update formula for HomeBrew (with upstream additions)
Vincent Bernat [Sat, 5 Sep 2020 12:24:39 +0000 (14:24 +0200)] 
osx: update formula for HomeBrew (with upstream additions)

3 years agoosx: update HomeBrew formula
Vincent Bernat [Sat, 5 Sep 2020 12:21:03 +0000 (14:21 +0200)] 
osx: update HomeBrew formula

3 years agorelease: 1.0.6 1.0.6
Vincent Bernat [Sat, 5 Sep 2020 11:48:00 +0000 (13:48 +0200)] 
release: 1.0.6

3 years agoMerge pull request #410 from awujek/develop
Vincent Bernat [Wed, 2 Sep 2020 21:41:57 +0000 (23:41 +0200)] 
Merge pull request #410 from awujek/develop

#403 ports: make possible sending LLDP frames on a specified VLAN

3 years agoports: allow sending LLDP frames on a specified VLAN 410/head
Michal Wasiak [Fri, 3 Jul 2020 18:36:03 +0000 (20:36 +0200)] 
ports: allow sending LLDP frames on a specified VLAN

The current limitation is that the frames are sent only on one VLAN per port.

3 years agoclient: fix spelling error
Vincent Bernat [Mon, 20 Jul 2020 20:14:06 +0000 (22:14 +0200)] 
client: fix spelling error

Fix #409

3 years agodoc: add a NEWS entry for latest commit
Vincent Bernat [Tue, 14 Jul 2020 09:01:57 +0000 (11:01 +0200)] 
doc: add a NEWS entry for latest commit

3 years agolib: remove limit on system description length
Vincent Bernat [Tue, 14 Jul 2020 05:16:47 +0000 (07:16 +0200)] 
lib: remove limit on system description length

The limit was introduced in 9c49cedf8e75 while fixing a memory leak.
The state data is used to ensure we don't interleave operations. We
need to handle the case where the value is truncated because it is
larger than the allocated size.

Fix #408.

3 years agoci: silent a bit `brew update`
Vincent Bernat [Sat, 11 Jul 2020 09:42:38 +0000 (11:42 +0200)] 
ci: silent a bit `brew update`

It's quite verbose (and long...)

3 years agoMerge pull request #401 from vincentbernat/fix/allowlist
Vincent Bernat [Sat, 27 Jun 2020 15:55:24 +0000 (17:55 +0200)] 
Merge pull request #401 from vincentbernat/fix/allowlist

code: remove use of blacklist/whitelist

3 years agoci: don't run unittests with clang fix/allowlist 401/head
Vincent Bernat [Sat, 27 Jun 2020 14:46:30 +0000 (16:46 +0200)] 
ci: don't run unittests with clang

libcheck introduced a change in 0.15 which is incompatible with clang.

3 years agoci: use "brew bundle" instead of "brew install"
Vincent Bernat [Sat, 27 Jun 2020 11:24:27 +0000 (13:24 +0200)] 
ci: use "brew bundle" instead of "brew install"

Otherwise, when a dependency is already installed and not up-to-date,
we get an error.

3 years agocode: remove use of blacklist/whitelist
Vincent Bernat [Sat, 27 Jun 2020 08:20:55 +0000 (10:20 +0200)] 
code: remove use of blacklist/whitelist

Use allowlist and denylist and adapt the documentation.

3 years agonetlink: make "no name/no address" message a debug message
Vincent Bernat [Fri, 12 Jun 2020 18:05:46 +0000 (20:05 +0200)] 
netlink: make "no name/no address" message a debug message

It seems it can happen on WLAN interfaces during AAA.

Fix #398

3 years agodoc: fix wording about interface exclusion
Vincent Bernat [Fri, 12 Jun 2020 05:41:21 +0000 (07:41 +0200)] 
doc: fix wording about interface exclusion

Reported in #398.

3 years agobuild: add lldpd.stp to CLEANFILES
Vincent Bernat [Sun, 31 May 2020 06:19:52 +0000 (08:19 +0200)] 
build: add lldpd.stp to CLEANFILES

3 years agobuild: make unit tests work when systemtap support is enabled
Vincent Bernat [Sun, 31 May 2020 06:01:32 +0000 (08:01 +0200)] 
build: make unit tests work when systemtap support is enabled

3 years agotravis: fix systemtap package name for dtrace support
Vincent Bernat [Sun, 31 May 2020 05:39:53 +0000 (07:39 +0200)] 
travis: fix systemtap package name for dtrace support

3 years agolibevent: upgrade to 2.1.11-stable
Vincent Bernat [Sun, 31 May 2020 05:07:25 +0000 (07:07 +0200)] 
libevent: upgrade to 2.1.11-stable

3 years agotravis: check build with dtrace support
Vincent Bernat [Sun, 31 May 2020 05:35:18 +0000 (07:35 +0200)] 
travis: check build with dtrace support

3 years agopriv: fix missing semi-colon
Vincent Bernat [Sun, 31 May 2020 05:33:55 +0000 (07:33 +0200)] 
priv: fix missing semi-colon

3 years agobuild: fix syscall names extraction
Vincent Bernat [Sun, 31 May 2020 05:23:42 +0000 (07:23 +0200)] 
build: fix syscall names extraction

3 years agobuild: ensure build process stops if not able to generate syscall-names.h
Vincent Bernat [Sun, 31 May 2020 05:22:47 +0000 (07:22 +0200)] 
build: ensure build process stops if not able to generate syscall-names.h

3 years agobuild: do not hardcode cpp invocation
Vincent Bernat [Sat, 30 May 2020 21:52:39 +0000 (23:52 +0200)] 
build: do not hardcode cpp invocation

This needs to be overridable by using $(CPP) instead. Patch from
Patrick McLean (Sony Interactive Entertainment Inc).

3 years agoMerge pull request #393 from vincentbernat/fix/snmp-empty-sysname
Vincent Bernat [Sat, 23 May 2020 14:04:32 +0000 (16:04 +0200)] 
Merge pull request #393 from vincentbernat/fix/snmp-empty-sysname

agent: fix SNMP walk on lldpRemTable when missing remote sysName

3 years agoagent: fix SNMP walk on lldpRemTable when missing remote sysName fix/snmp-empty-sysname 393/head
Vincent Bernat [Sat, 23 May 2020 12:32:39 +0000 (14:32 +0200)] 
agent: fix SNMP walk on lldpRemTable when missing remote sysName

When enumerating lldpRemSysName (and some others), one row could have
a NULL value because the remote system didn't provide a value. In this
case, we should return the next row.

There was already some code around that but it was not systematically
used. Therefore, we fix the issue for lldpRemTable and
lldpLocalSystemData. To ensure we catch future cases, we ensure
helpers functions use `default: return NULL` when no missing value is
allowed (no `break`, compiler would catch if it was the case) and
therefore, we don't need to try next OID and `default: break` when a
value may be missing and in this case, the caller should try next OID
upon receiving NULL.

Fix #392

3 years agoMerge pull request #391 from Polynomial-C/1.0.5-gentoo_seccomp
Vincent Bernat [Wed, 20 May 2020 08:56:41 +0000 (10:56 +0200)] 
Merge pull request #391 from Polynomial-C/1.0.5-gentoo_seccomp

a couple of necessary seccomp enhancements

3 years agov1.0.5: seccomp - add gettime 391/head
Patrick McLean [Mon, 27 Apr 2020 18:40:20 +0000 (20:40 +0200)] 
v1.0.5: seccomp - add gettime

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
3 years agov1.0.1: seccomp - add brk
Patrick McLean [Mon, 27 Apr 2020 18:38:42 +0000 (20:38 +0200)] 
v1.0.1: seccomp - add brk

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
3 years agov0.9.5: seccomp - add socket ops
Patrick McLean [Mon, 27 Apr 2020 18:37:56 +0000 (20:37 +0200)] 
v0.9.5: seccomp - add socket ops

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
4 years agoMerge pull request #388 from vincentbernat/fix/locked-conn
Vincent Bernat [Sun, 26 Apr 2020 11:03:34 +0000 (13:03 +0200)] 
Merge pull request #388 from vincentbernat/fix/locked-conn

lib: introduce lldpctl_watch_callback2()

4 years agolib: introduce lldpctl_watch_callback2() fix/locked-conn 388/head
Vincent Bernat [Fri, 24 Apr 2020 17:29:36 +0000 (19:29 +0200)] 
lib: introduce lldpctl_watch_callback2()

This is similar to `lldpctl_watch_callback()` (which is getting
deprecated), except the callback won't receive the current connection.
This prevents a user to use the connection which is unusable because
it is now dedicated to watch events.

Minor ABI dump due to new function, but everything is
backward-compatible, except you may now get an error if you use the
connection while watching (but this was already not supported).

Fix #380

4 years agolib: stricly-prevent use of a connection used to watch events
Vincent Bernat [Fri, 24 Apr 2020 17:09:42 +0000 (19:09 +0200)] 
lib: stricly-prevent use of a connection used to watch events

The protocol cannot handle received events mixed with regular
messages. Once the connection is dedicated to a watch, prevent its
regular use.

4 years agolib: emphasize `conn` cannot be used after lldpctl_watch_callback()
Vincent Bernat [Thu, 23 Apr 2020 19:27:23 +0000 (21:27 +0200)] 
lib: emphasize `conn` cannot be used after lldpctl_watch_callback()

4 years agoagent: simpler code with #ifdef
Vincent Bernat [Mon, 13 Apr 2020 17:59:24 +0000 (19:59 +0200)] 
agent: simpler code with #ifdef

The use #ifdef to avoid some line duplications makes the code harder
to read. Prefer duplicating the lines when needed.

4 years agoRevert "agent: fix crash on AgentX reconnect with NetSNMP 5.8"
Vincent Bernat [Mon, 13 Apr 2020 17:58:20 +0000 (19:58 +0200)] 
Revert "agent: fix crash on AgentX reconnect with NetSNMP 5.8"

This reverts commit c0b9ad5fc83e913e6ef761390c6211d6d240c212. This is
not needed: global and static variables are zero-initialized in C89.

4 years agoagent: fix crash on AgentX reconnect with NetSNMP 5.8
Vincent Bernat [Mon, 13 Apr 2020 12:17:10 +0000 (14:17 +0200)] 
agent: fix crash on AgentX reconnect with NetSNMP 5.8

4 years agoMerge pull request #386 from vincentbernat/fix/chassisid-interface-flap
Vincent Bernat [Sat, 11 Apr 2020 15:32:43 +0000 (17:32 +0200)] 
Merge pull request #386 from vincentbernat/fix/chassisid-interface-flap

interfaces: don't modify chassis ID when overriden

4 years agointerfaces: don't modify chassis ID when overriden fix/chassisid-interface-flap 386/head
Vincent Bernat [Sat, 11 Apr 2020 14:21:30 +0000 (16:21 +0200)] 
interfaces: don't modify chassis ID when overriden

If the chassis ID has been overriden by the user, do not modify it.

Fix #385

4 years agotests: don't fail on __exit__ if we failed in __enter__
Vincent Bernat [Thu, 9 Apr 2020 16:12:04 +0000 (18:12 +0200)] 
tests: don't fail on __exit__ if we failed in __enter__

4 years agotests: fix bitmap test on 32bit
Vincent Bernat [Fri, 3 Apr 2020 20:34:18 +0000 (22:34 +0200)] 
tests: fix bitmap test on 32bit

4 years agotests: do not check for MED inventory if /sys/class/dmi not available
Vincent Bernat [Thu, 12 Mar 2020 12:25:37 +0000 (13:25 +0100)] 
tests: do not check for MED inventory if /sys/class/dmi not available

4 years agotests: do not enable asan on anything else than x86_64
Vincent Bernat [Thu, 12 Mar 2020 11:56:01 +0000 (12:56 +0100)] 
tests: do not enable asan on anything else than x86_64

It seems buggy.

4 years agotests: display tests/test-suite.log on errors
Vincent Bernat [Thu, 12 Mar 2020 10:54:34 +0000 (11:54 +0100)] 
tests: display tests/test-suite.log on errors

4 years agobuild: provide a default.nix file
Vincent Bernat [Thu, 12 Mar 2020 08:29:13 +0000 (09:29 +0100)] 
build: provide a default.nix file

4 years agoosx: update recipe for HomeBrew
Vincent Bernat [Sun, 2 Feb 2020 22:09:26 +0000 (23:09 +0100)] 
osx: update recipe for HomeBrew

4 years agorelease: 1.0.5 fix/old-compat 1.0.5
Vincent Bernat [Sat, 1 Feb 2020 21:15:40 +0000 (22:15 +0100)] 
release: 1.0.5

4 years agoinclude: remove in6.h from linux/bridge.h
Vincent Bernat [Sun, 2 Feb 2020 13:16:27 +0000 (14:16 +0100)] 
include: remove in6.h from linux/bridge.h

Otherwise, we are redefining in6_addr on old distributions.

4 years agotests: provide a Dockerfile to build with wheezy
Vincent Bernat [Sun, 2 Feb 2020 13:11:44 +0000 (14:11 +0100)] 
tests: provide a Dockerfile to build with wheezy

This is for testing with a really old userland.

4 years agoinclude: don't use __kernel_sa_family_t
Vincent Bernat [Sat, 1 Feb 2020 22:45:29 +0000 (23:45 +0100)] 
include: don't use __kernel_sa_family_t

It's not compatible with older kernels.

4 years agoinclude: don't include linux/sysinfo.h
Vincent Bernat [Sat, 1 Feb 2020 22:39:27 +0000 (23:39 +0100)] 
include: don't include linux/sysinfo.h

Older kernels don't have it. It doesn't seem useful.

4 years agointerfaces: include "netinet/in.h" before kernel headers
Vincent Bernat [Sat, 1 Feb 2020 22:21:44 +0000 (23:21 +0100)] 
interfaces: include "netinet/in.h" before kernel headers

This should ensure definition of stuff like in6_addr are done by the
libc, not by the kernel headers. Recent kernel headers know how to
handle that when loaded second.

4 years agointerfaces: fix usage of inet_pton()
Vincent Bernat [Sat, 1 Feb 2020 22:14:29 +0000 (23:14 +0100)] 
interfaces: fix usage of inet_pton()

This would trigger a failure on RHEL 6.

4 years agotravis: remove ARM64
Vincent Bernat [Sat, 1 Feb 2020 18:36:55 +0000 (19:36 +0100)] 
travis: remove ARM64

This seems quite unreliable.