]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
7 years agorelease: prepare 0.9.6 0.9.6
Vincent Bernat [Sat, 21 Jan 2017 12:01:32 +0000 (13:01 +0100)] 
release: prepare 0.9.6

7 years agoredhat: add support for JSON in CentOS >= 6
Vincent Bernat [Sat, 21 Jan 2017 11:59:09 +0000 (12:59 +0100)] 
redhat: add support for JSON in CentOS >= 6

This seems supported in RHEL now, but doesn't work on OSC:
 https://rhn.redhat.com/errata/RHEA-2014-1530.html

Fix #220

7 years agonetlink: clear IFF_SLAVE when no information on upper interface
Vincent Bernat [Sat, 21 Jan 2017 11:40:51 +0000 (12:40 +0100)] 
netlink: clear IFF_SLAVE when no information on upper interface

This means that we have just been enslaved, but don't know the
master. On Linux, enslaved device are handled differently of regular
device. When we are half-enslaved (no upper interface yet), we are still
a regular interface. When we are fully enslaved, we may do nothing
because there is no local change (since flags are the same). Therefore,
clear the flag to avoid this issue.

7 years agoMerge pull request #218 from vincentbernat/feature/netlink-autoadapt
Vincent Bernat [Sat, 21 Jan 2017 11:34:36 +0000 (12:34 +0100)] 
Merge pull request #218 from vincentbernat/feature/netlink-autoadapt

Auto-adapt Netlink socket size

7 years agoMerge pull request #216 from vincentbernat/fix/epollerrr
Vincent Bernat [Sat, 21 Jan 2017 11:32:30 +0000 (12:32 +0100)] 
Merge pull request #216 from vincentbernat/fix/epollerrr

interfaces: on Linux, clear socket error queue on error

7 years agoclient: fix typo in manual page
Vincent Bernat [Fri, 20 Jan 2017 06:55:49 +0000 (07:55 +0100)] 
client: fix typo in manual page

7 years agoMerge pull request #219 from alagoutte/fix
Vincent Bernat [Mon, 16 Jan 2017 07:23:28 +0000 (08:23 +0100)] 
Merge pull request #219 from alagoutte/fix

Fix Expression '!iface' is always true

7 years agoFix Expression '!iface' is always true 219/head
Alexis La Goutte [Sun, 15 Jan 2017 21:14:27 +0000 (22:14 +0100)] 
Fix Expression '!iface' is always true

7 years agonetlink: minimize code duplication when handling buffer sizes feature/netlink-autoadapt 218/head
Vincent Bernat [Sun, 15 Jan 2017 19:44:09 +0000 (20:44 +0100)] 
netlink: minimize code duplication when handling buffer sizes

7 years agonetlink: by default, don't change netlink buffer size
Vincent Bernat [Sat, 14 Jan 2017 10:51:58 +0000 (11:51 +0100)] 
netlink: by default, don't change netlink buffer size

We can't really guess what the current maximum is. On my system, the
default max is quite low (~200k). We don't want everybody to get a
warning. Also, only warn people if we got a smaller size that we
requested.

7 years agonetlink: automatically increase netlink receive buffer on errors
Vincent Bernat [Sat, 14 Jan 2017 10:46:28 +0000 (11:46 +0100)] 
netlink: automatically increase netlink receive buffer on errors

7 years agonetlink: set size to the correct value for getsockopt()
Vincent Bernat [Sat, 14 Jan 2017 10:30:52 +0000 (11:30 +0100)] 
netlink: set size to the correct value for getsockopt()

Also, don't check if the returned size is correct. This is not done in
other parts of the code and it seems a bit useless to do it here.

7 years agonetlink: make change of buffer size optional
Vincent Bernat [Sat, 14 Jan 2017 10:12:45 +0000 (11:12 +0100)] 
netlink: make change of buffer size optional

We don't really need to change the send buffer size. Put it to 0 by
default.

7 years agonetlink: make the values for buffer size configurable through ./configure
Vincent Bernat [Sat, 14 Jan 2017 10:11:58 +0000 (11:11 +0100)] 
netlink: make the values for buffer size configurable through ./configure

7 years agodoc: fix name of new ethtool command
Vincent Bernat [Sun, 1 Jan 2017 12:43:04 +0000 (13:43 +0100)] 
doc: fix name of new ethtool command

7 years agodaemon: config netlink socket buf sizes at build time
Alexandru Ardelean [Thu, 12 Jan 2017 12:46:05 +0000 (14:46 +0200)] 
daemon: config netlink socket buf sizes at build time

I admit it would be nicer to have this configurable at run-time
or better yet, introduce a mechanism for recovering from
overrun situations via polling.

We're starting to see in certain situations that on devices
with many ports (i.e. switches with around ~50 ports) lldpd
info is not always consistent.

I'm not entirely sure that the issue is with netlink
sock buffer sizes.

But we've also recentl addressed some issues for the mstpd
daemon with netlink sock buffer sizes.
So, I'm tempted to think that it's the same issue.

We [especially I] prefer to bump sock buffer sizes where needed
and not via sysctl `net.core.rmem_default` & `net.core.wmem_default`.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
7 years agotests: avoid race condition when linking two namespaces
Vincent Bernat [Sun, 1 Jan 2017 12:26:08 +0000 (13:26 +0100)] 
tests: avoid race condition when linking two namespaces

When creating a link between two namespaces, one lldpd will see the link
and send a LLDPDU before the other one. There is a slight delay for
lldpd to wait before sending the LLDPDU, but when the load is heavy, it
can be expected that the other side didn't configure the interface when
the LLDPDU is received. To solve this, just wait a bit before putting up
the second interface.

7 years agobuild: use @mkdir_p@ instead of @MKDIR_P@
Vincent Bernat [Sun, 1 Jan 2017 07:52:38 +0000 (08:52 +0100)] 
build: use @mkdir_p@ instead of @MKDIR_P@

Uppercase "variables" are otherwise only used for lldpd-specific stuff.

7 years agodaemon: suggests additional sandboxing with systemd
Vincent Bernat [Sun, 1 Jan 2017 07:24:38 +0000 (08:24 +0100)] 
daemon: suggests additional sandboxing with systemd

This is only suggested because they are not supported by all systemd
versions (and may therefore emit warnings).

See:
 - https://lwn.net/Articles/709764/
 - https://lwn.net/Articles/709350/

7 years agointerfaces: on Linux, clear socket error queue on error fix/epollerrr 216/head
Vincent Bernat [Fri, 30 Dec 2016 22:03:34 +0000 (23:03 +0100)] 
interfaces: on Linux, clear socket error queue on error

With AF_PACKET, it is possible to get an error in the error queue even
when we didn't ask to receive them (in contrast with AF_INET where we
have to set IP_RECVERR socket option). Currently, the only error we can
receive is SOL_PACKET/PACKET_TX_TIMESTAMP, but we just want to clear any
error in the socket queue to be able to read packets (otherwise, poll()
will always return POLLERR).

Fix #215.

7 years agointerfaces: refactor generic ethernet/bond reception for Linux
Vincent Bernat [Fri, 30 Dec 2016 21:14:41 +0000 (22:14 +0100)] 
interfaces: refactor generic ethernet/bond reception for Linux

7 years agoRevert "tests: mark tests spawning a new port as flaky"
Vincent Bernat [Mon, 26 Dec 2016 09:55:52 +0000 (10:55 +0100)] 
Revert "tests: mark tests spawning a new port as flaky"

This reverts commit 0efde559064fc3b842d06b56bafa1c457b1a8fb4. This
isn't compatible with xdist...

7 years agotests: mark tests spawning a new port as flaky
Vincent Bernat [Mon, 26 Dec 2016 09:52:57 +0000 (10:52 +0100)] 
tests: mark tests spawning a new port as flaky

They will be retried once.

7 years agotests: fix when Dot3 is not enabled
Vincent Bernat [Mon, 26 Dec 2016 09:38:29 +0000 (10:38 +0100)] 
tests: fix when Dot3 is not enabled

7 years agoclient: display current MAU type even when autoneg is disabled
Vincent Bernat [Mon, 26 Dec 2016 09:16:37 +0000 (10:16 +0100)] 
client: display current MAU type even when autoneg is disabled

7 years agolldpd: don't make lldpcli complain on missing conf files
Vincent Bernat [Mon, 26 Dec 2016 09:03:48 +0000 (10:03 +0100)] 
lldpd: don't make lldpcli complain on missing conf files

Only complain if the user has directly provided additional configuration
files. This is done through an hidden option (-C) for lldpcli.

7 years agotests: minimize file descriptor leaks
Vincent Bernat [Mon, 26 Dec 2016 08:56:06 +0000 (09:56 +0100)] 
tests: minimize file descriptor leaks

This is not perfect as we still rely on garbage collection to do its job
and it seems it is not running often enough.

7 years agolib: include MAU type map only when Dot3 support is enabled
Vincent Bernat [Mon, 26 Dec 2016 08:23:13 +0000 (09:23 +0100)] 
lib: include MAU type map only when Dot3 support is enabled

7 years agoMerge pull request #212 from vincentbernat/feature/ethtool-linksettings
Vincent Bernat [Mon, 26 Dec 2016 08:17:25 +0000 (09:17 +0100)] 
Merge pull request #212 from vincentbernat/feature/ethtool-linksettings

linux: add support for ethtool GLINKSETTINGS

7 years agotests: wait even more when spawning a new interface while lldpd is running
Vincent Bernat [Sun, 25 Dec 2016 21:21:06 +0000 (22:21 +0100)] 
tests: wait even more when spawning a new interface while lldpd is running

7 years agolinux: make ethtool stuff run as root again feature/ethtool-linksettings 212/head
Vincent Bernat [Sun, 25 Dec 2016 07:46:56 +0000 (08:46 +0100)] 
linux: make ethtool stuff run as root again

This is needed for ETHTOOL_GLINKSETTINGS.

7 years agolib: add more MAU types
Vincent Bernat [Wed, 30 Nov 2016 20:56:20 +0000 (21:56 +0100)] 
lib: add more MAU types

7 years agolinux: add support for ethtool GLINKSETTINGS
Vincent Bernat [Wed, 30 Nov 2016 20:37:36 +0000 (21:37 +0100)] 
linux: add support for ethtool GLINKSETTINGS

With a recent enough kernel, one can use GLINKSETTINGS instead of
GSET. This is needed to overcome the limitation on the number of
supported/advertising modes supported by GSET (which is a fixed-length
bitset). We use the same kind of compatibility structure than for
ethtool.

Also, update the list of supported MAU types to support higher speed
interfaces. Unfortunately, while Linux reports the exact
advertised/supported modes, the operational mode of the interface is
only reported with its speed and its kind (copper, fiber, ...). When
this is fiber, we don't know if this is MMF or SMF or the supported
distance. Therefore, we use our best guess (this was already the case,
nothing new here).

7 years agoseccomp: add more syscall (sendmmsg and recvfrom)
Vincent Bernat [Wed, 7 Dec 2016 19:55:18 +0000 (20:55 +0100)] 
seccomp: add more syscall (sendmmsg and recvfrom)

7 years agoMerge pull request #213 from chutz/add-mprotect-to-seccomp-whitelist
Vincent Bernat [Sat, 3 Dec 2016 07:25:07 +0000 (08:25 +0100)] 
Merge pull request #213 from chutz/add-mprotect-to-seccomp-whitelist

seccomp: add mprotect to seccomp whitelist

7 years agoseccomp: add mprotect to seccomp whitelist 213/head
Patrick McLean [Sat, 3 Dec 2016 00:16:42 +0000 (16:16 -0800)] 
seccomp: add mprotect to seccomp whitelist

7 years agotests: more fix for pcap test
Vincent Bernat [Fri, 25 Nov 2016 23:21:52 +0000 (00:21 +0100)] 
tests: more fix for pcap test

7 years agotests: fix previous commit by making LLDP-MED part optional
Vincent Bernat [Fri, 25 Nov 2016 22:44:06 +0000 (23:44 +0100)] 
tests: fix previous commit by making LLDP-MED part optional

7 years agotests: use a PCAP file to do some integration tests
Vincent Bernat [Fri, 25 Nov 2016 20:09:15 +0000 (21:09 +0100)] 
tests: use a PCAP file to do some integration tests

7 years agomed: fix parsing of LLDP-MED LCI when TLV size exceeds addr size
Vincent Bernat [Fri, 25 Nov 2016 19:17:58 +0000 (20:17 +0100)] 
med: fix parsing of LLDP-MED LCI when TLV size exceeds addr size

Some equipments are sending an address whose size is less than the
declared TLV size. The TLV is padded with 0. We rejected this because of
a size mismatch.

Fix #210.

7 years agolinux: comment out part of ethtool.h
Vincent Bernat [Thu, 24 Nov 2016 16:54:51 +0000 (17:54 +0100)] 
linux: comment out part of ethtool.h

It relies too much on kernel.h.

7 years agogithub: shows a tcpdump output
Vincent Bernat [Thu, 24 Nov 2016 15:48:23 +0000 (16:48 +0100)] 
github: shows a tcpdump output

7 years agolinux: pull up-to-date ethtool.h
Vincent Bernat [Sun, 20 Nov 2016 18:32:32 +0000 (19:32 +0100)] 
linux: pull up-to-date ethtool.h

7 years agoclient: fix extra warning about misleading identation
Vincent Bernat [Sun, 20 Nov 2016 18:31:59 +0000 (19:31 +0100)] 
client: fix extra warning about misleading identation

Use a code block instead.

7 years agogithub: provide an issue template
Vincent Bernat [Thu, 10 Nov 2016 10:08:30 +0000 (11:08 +0100)] 
github: provide an issue template

7 years agoclient: add an option to use pre-0.9.2 json-c format
Vincent Bernat [Thu, 6 Oct 2016 06:38:10 +0000 (08:38 +0200)] 
client: add an option to use pre-0.9.2 json-c format

The format has been changed in c8b8b858bbba to match the JSON format
used when compiled with Jansson. Some users may want to revert this
change. Add `--enable-json0` option for that.

7 years agotravis: enable gold linker when NOT on OSX
Vincent Bernat [Thu, 6 Oct 2016 08:56:12 +0000 (10:56 +0200)] 
travis: enable gold linker when NOT on OSX

7 years agotravis: disable gold linker with OSX
Vincent Bernat [Thu, 6 Oct 2016 08:15:37 +0000 (10:15 +0200)] 
travis: disable gold linker with OSX

It seems it is not compiled anymore. See:
 https://travis-ci.org/vincentbernat/lldpd/jobs/165445935

7 years agotravis: display config.log when configure fails
Vincent Bernat [Thu, 6 Oct 2016 07:18:14 +0000 (09:18 +0200)] 
travis: display config.log when configure fails

7 years agorelease: prepare 0.9.5 for OSX
Vincent Bernat [Fri, 30 Sep 2016 18:30:06 +0000 (20:30 +0200)] 
release: prepare 0.9.5 for OSX

7 years agoredhat: add LICENSE file to manifest
Vincent Bernat [Fri, 30 Sep 2016 18:28:11 +0000 (20:28 +0200)] 
redhat: add LICENSE file to manifest

7 years agorelease: prepare 0.9.5 release 0.9.5
Vincent Bernat [Fri, 30 Sep 2016 18:17:08 +0000 (20:17 +0200)] 
release: prepare 0.9.5 release

7 years agoevent: correctly free event base
Vincent Bernat [Fri, 30 Sep 2016 18:00:02 +0000 (20:00 +0200)] 
event: correctly free event base

This removes a bunch a false positive in valgrind memcheck where some
allocations where done on the base and not freed when only the
associated events where freed. Related to #192.

7 years agodaemon: don't invoke lldpcli after dropping privileges
Vincent Bernat [Thu, 29 Sep 2016 05:12:33 +0000 (07:12 +0200)] 
daemon: don't invoke lldpcli after dropping privileges

Otherwise, we don't have access to the Unix socket anymore...

7 years agovalgrind: more suppressions for lldpd
Vincent Bernat [Wed, 28 Sep 2016 21:27:46 +0000 (23:27 +0200)] 
valgrind: more suppressions for lldpd

7 years agodaemon: make the message about going into background more apparent
Vincent Bernat [Wed, 28 Sep 2016 21:02:12 +0000 (23:02 +0200)] 
daemon: make the message about going into background more apparent

Otherwise, people may think that lldpd just crashed.

7 years agodaemon: better drop privileges earlier
Vincent Bernat [Wed, 28 Sep 2016 20:59:34 +0000 (22:59 +0200)] 
daemon: better drop privileges earlier

Commit 06d83d0fb35c delayed privilege dropping because we delayed
daemonization. This may made sense to be able to display errors to user
when attached to the console, but this makes little sense from a
security perspective. So, put everything back to the earlier possible
location (just after setting up the socket).

7 years agodaemon: invoke lldpcli after dropping privileges
Vincent Bernat [Wed, 28 Sep 2016 20:43:48 +0000 (22:43 +0200)] 
daemon: invoke lldpcli after dropping privileges

We don't need to run it as root. Moreover, it will happen after
daemonization and won't clutter the screen in case lldpd dies too
early. On the other hand, if we fail to spawn it, the error message may
be hidden in the logs. Though choice.

7 years agodaemon: wait a bit later to daemonize
Vincent Bernat [Wed, 28 Sep 2016 20:29:49 +0000 (22:29 +0200)] 
daemon: wait a bit later to daemonize

This way, some additional errors may be advertised in a better way.

7 years agotests: add an __init__.py file to turn fixtures into a proper module
Vincent Bernat [Sat, 24 Sep 2016 14:08:46 +0000 (16:08 +0200)] 
tests: add an __init__.py file to turn fixtures into a proper module

Dunno why this was not needed before.

7 years agoevent: remove some one-time memory leaks
Vincent Bernat [Sat, 24 Sep 2016 14:03:03 +0000 (16:03 +0200)] 
event: remove some one-time memory leaks

Also provide a suppression file for valgrind for memory leaks that are
too difficult to remove.

7 years agodoc: add a license file
Vincent Bernat [Tue, 13 Sep 2016 08:23:45 +0000 (10:23 +0200)] 
doc: add a license file

This help audit software to automatically detect the license.

7 years agotravis: try to workaround "unrecognized option '--push-state'"
Vincent Bernat [Tue, 13 Sep 2016 06:10:47 +0000 (08:10 +0200)] 
travis: try to workaround "unrecognized option '--push-state'"

See: https://travis-ci.org/vincentbernat/lldpd/jobs/159419045

7 years agolldp: only enable LLDP-MED capibility TLV if we have that capability
Vincent Bernat [Mon, 12 Sep 2016 20:28:50 +0000 (22:28 +0200)] 
lldp: only enable LLDP-MED capibility TLV if we have that capability

In fact, we are not quite coherent. With LLDP-MED disabled (lldpd with
"-M" option), we can still set some TLV. We should either disallow that
or at least not send the capability TLV since we cannot build a complete
one (we miss the device type). We chose the later.

7 years agoMerge pull request #198 from The-42/fix-segfaults
Vincent Bernat [Tue, 30 Aug 2016 15:08:43 +0000 (17:08 +0200)] 
Merge pull request #198 from The-42/fix-segfaults

lib/atoms/port: fix segfaults with minimal information

7 years agolib/atoms/port: fix segfaults with minimal information 198/head
Bert van Hall [Tue, 30 Aug 2016 13:39:48 +0000 (15:39 +0200)] 
lib/atoms/port: fix segfaults with minimal information

When no packet has yet been received, querying LLDP information leads to
segfaults. Fix those by adding a couple pointer checks.

Signed-off-by: Bert van Hall <bert.vanhall@avionic-design.de>
7 years agolldpd: fix kernel version check
Vincent Bernat [Sat, 27 Aug 2016 22:46:04 +0000 (00:46 +0200)] 
lldpd: fix kernel version check

An erronous warning was displayed about kernel being too old while this
wasn't the case.

7 years agolldpcli: specify that custom TLV bytes are in hex format
Vincent Bernat [Thu, 25 Aug 2016 08:19:46 +0000 (10:19 +0200)] 
lldpcli: specify that custom TLV bytes are in hex format

7 years agobuild: test if libbsd is really usable
Vincent Bernat [Sat, 13 Aug 2016 22:21:00 +0000 (00:21 +0200)] 
build: test if libbsd is really usable

It is possible for libbsd to not be usable due to the use of
"-isystem". See for example:
 http://autobuild.buildroot.net/results/c8a/c8a6001f437701ecc75f6c9252935645bda8a8c8/lldpd-0.9.4/config.log

In this case, just don't use it.

7 years agodoc: document the change about ethtool info grabbed without the monitor
Vincent Bernat [Wed, 10 Aug 2016 07:51:00 +0000 (09:51 +0200)] 
doc: document the change about ethtool info grabbed without the monitor

7 years agobuild: ensure clang won't complain about documentation of linux headers
Vincent Bernat [Sun, 7 Aug 2016 10:23:28 +0000 (12:23 +0200)] 
build: ensure clang won't complain about documentation of linux headers

7 years agopriv: don't use monitor for ethtool except for old kernels
Vincent Bernat [Sun, 7 Aug 2016 09:47:03 +0000 (11:47 +0200)] 
priv: don't use monitor for ethtool except for old kernels

Since 2.6.37, we don't need any privilege for ethtool GSET. Not using
the monitor will increase performance.

7 years agointerface: use 10GBASE-CX4 for copper
Vincent Bernat [Sun, 7 Aug 2016 08:22:27 +0000 (10:22 +0200)] 
interface: use 10GBASE-CX4 for copper

That's the best approximation available in RFC4836.

7 years agointerface: more media for *BSD
Vincent Bernat [Sun, 7 Aug 2016 08:19:14 +0000 (10:19 +0200)] 
interface: more media for *BSD

OpenBSD and FreeBSD didn't agree on symbol names. Use #ifdef everywhere.

7 years agolldp: update RFC3636 to RFC4836
Vincent Bernat [Sun, 7 Aug 2016 06:14:43 +0000 (08:14 +0200)] 
lldp: update RFC3636 to RFC4836

Unfortunately, RFC4836 still lags behind. For example, no more than 10G
for speeds, no 10GBASE-T. For advertised modes, we try to be more
future-proof by using "other" for any unknown mode. Moreover, document
the fact that we advertise 10GBASE_T as 10GBASE-R and on Linux, we have
to guess when the port is fiber (and we guesss 10GBASE-X).

7 years agoinclude: update linux/ethtool.h to 4.7
Vincent Bernat [Sat, 6 Aug 2016 22:03:16 +0000 (00:03 +0200)] 
include: update linux/ethtool.h to 4.7

This is needed to support ETHTOOL_GLINKSETTINGS.

7 years agopriv: don't use ethtool to get real MAC
Vincent Bernat [Sat, 6 Aug 2016 21:55:32 +0000 (23:55 +0200)] 
priv: don't use ethtool to get real MAC

It was used if /proc/net/bonding was not available but:

 1. it shouldn't happen
 2. some drivers don't have a permanent MAC
 3. we may override a user setting
 4. more code to maintaing

7 years agopriv: document functions that should not use the monitor process
Vincent Bernat [Sat, 6 Aug 2016 21:46:06 +0000 (23:46 +0200)] 
priv: document functions that should not use the monitor process

We should use them only if "oldies" are enabled.

7 years agoNEWS: add an entry for 106aa50d
Vincent Bernat [Wed, 3 Aug 2016 05:05:23 +0000 (07:05 +0200)] 
NEWS: add an entry for 106aa50d

7 years agoRevert "lldp: skip empty LLDP-MED inventory TLV instead"
Vincent Bernat [Fri, 29 Jul 2016 20:31:02 +0000 (22:31 +0200)] 
Revert "lldp: skip empty LLDP-MED inventory TLV instead"

This reverts commit aa357d2b6b54c966353bcee4d7f14640540a8cf2. The
previous behaviour was equivalent. Let's stick to that for now.

7 years agolldp: skip empty LLDP-MED inventory TLV instead
Vincent Bernat [Fri, 29 Jul 2016 20:10:21 +0000 (22:10 +0200)] 
lldp: skip empty LLDP-MED inventory TLV instead

7 years agotravis: fix issue with Travis and libtool
Vincent Bernat [Fri, 29 Jul 2016 05:08:30 +0000 (07:08 +0200)] 
travis: fix issue with Travis and libtool

7 years agobuild: provide a better date format when using SOURCE_DATE_EPOCH
Vincent Bernat [Fri, 15 Jul 2016 22:42:10 +0000 (00:42 +0200)] 
build: provide a better date format when using SOURCE_DATE_EPOCH

And define the appropriate date at configure time.

7 years agoclient: flush output after each block
Vincent Bernat [Wed, 22 Jun 2016 16:06:08 +0000 (18:06 +0200)] 
client: flush output after each block

This enables to get realtime output from "lldpcli watch".

See #187.

7 years agobuild: ensure typeof is correctly defined
Vincent Bernat [Sun, 19 Jun 2016 06:43:06 +0000 (08:43 +0200)] 
build: ensure typeof is correctly defined

This could be typeof/__typeof/__typeof__.

Fix #186.

7 years agobuild: make generation of atom-glue compatible with older gcc versions
Vincent Bernat [Sat, 18 Jun 2016 20:18:41 +0000 (22:18 +0200)] 
build: make generation of atom-glue compatible with older gcc versions

With old versions, cpp doesn't accept several files as input. See #186.

7 years agorelease: prepare 0.9.4 for OSX
Vincent Bernat [Fri, 17 Jun 2016 17:22:50 +0000 (19:22 +0200)] 
release: prepare 0.9.4 for OSX

7 years agorelease: prepare 0.9.4 release 0.9.4
Vincent Bernat [Fri, 17 Jun 2016 17:19:18 +0000 (19:19 +0200)] 
release: prepare 0.9.4 release

7 years agoosx: update lldpd to 0.9.3
Vincent Bernat [Fri, 17 Jun 2016 17:19:10 +0000 (19:19 +0200)] 
osx: update lldpd to 0.9.3

7 years agodoc: document latest commit
Vincent Bernat [Tue, 14 Jun 2016 19:48:02 +0000 (21:48 +0200)] 
doc: document latest commit

7 years agolldp: add ability to control propagation of LLDPDU
Vincent Bernat [Tue, 14 Jun 2016 19:44:42 +0000 (21:44 +0200)] 
lldp: add ability to control propagation of LLDPDU

In 802.1AB-2009, two additional target addresses were added to allow an
LLDPDU to not be stopped by some equipments. Expose this ability as a
configure command.

Fix #171

7 years agolldpcli: fix watch return code
Vincent Bernat [Tue, 14 Jun 2016 10:12:25 +0000 (12:12 +0200)] 
lldpcli: fix watch return code

When watch terminates normally (after hitting a limit), ensure lldpcli
exits with status code 0.

7 years agolldpcli: fix memory leak with use of readline
Vincent Bernat [Tue, 14 Jun 2016 09:58:21 +0000 (11:58 +0200)] 
lldpcli: fix memory leak with use of readline

The lines returned by readline() should be freed.

7 years agointerfaces: blacklist cdc_mbim
Vincent Bernat [Tue, 14 Jun 2016 09:47:36 +0000 (11:47 +0200)] 
interfaces: blacklist cdc_mbim

This exposes a weird interface.

7 years agolldpcli: add a test for return code
Vincent Bernat [Tue, 14 Jun 2016 09:45:02 +0000 (11:45 +0200)] 
lldpcli: add a test for return code

7 years agolldpcli: ensure we exit with an error on incorrect commands
Vincent Bernat [Tue, 14 Jun 2016 09:41:57 +0000 (11:41 +0200)] 
lldpcli: ensure we exit with an error on incorrect commands

7 years agolldpcli: fix manual page for port status
Vincent Bernat [Tue, 14 Jun 2016 09:19:26 +0000 (11:19 +0200)] 
lldpcli: fix manual page for port status

Use rx-only, tx-only, rx-and-tx instead of rxOnly, txOnly, rxAndTx. Also
add some tests.

7 years agotests: remove useless variable
Vincent Bernat [Tue, 14 Jun 2016 09:07:19 +0000 (11:07 +0200)] 
tests: remove useless variable

7 years agobuild: fix build issue introduced in previous commit
Vincent Bernat [Mon, 13 Jun 2016 07:54:57 +0000 (09:54 +0200)] 
build: fix build issue introduced in previous commit

$^ was used for a reason: automake would fix the paths used in
dependencies using VPATH or something similar. For some reason, this
even break with GNU make when not using OOT build. Long story short, we
use a pattern substitution to ensure that the atom files are looked up
in the correct directory.

This use of substitutions is mandated by POSIX (the 2013 version I
think). See:
 http://austingroupbugs.net/view.php?id=519

It is however believed that most make implementation had support for
this since a long time.

7 years agobuild: don't rely on GNU make $^ automatic variable
Vincent Bernat [Mon, 13 Jun 2016 06:46:57 +0000 (08:46 +0200)] 
build: don't rely on GNU make $^ automatic variable

Not supported by BSD make. And not really needed either.

Fix #185.