]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
7 years agodebian/redhat: prepare 0.9.3 0.9.3
Vincent Bernat [Sat, 21 May 2016 10:25:03 +0000 (12:25 +0200)] 
debian/redhat: prepare 0.9.3

7 years agotests: fix `lldpcli watch` XML test
Vincent Bernat [Fri, 20 May 2016 18:14:26 +0000 (20:14 +0200)] 
tests: fix `lldpcli watch` XML test

7 years agotests: add test of `lldpcli watch`
Vincent Bernat [Fri, 20 May 2016 18:13:07 +0000 (20:13 +0200)] 
tests: add test of `lldpcli watch`

7 years agoclient: add a way to limit the number of events received by "watch"
Vincent Bernat [Fri, 20 May 2016 09:10:55 +0000 (11:10 +0200)] 
client: add a way to limit the number of events received by "watch"

7 years agolib: remove unused variable
Vincent Bernat [Fri, 20 May 2016 09:04:02 +0000 (11:04 +0200)] 
lib: remove unused variable

7 years agocompat: use strtonum instead of atoi
Vincent Bernat [Fri, 20 May 2016 08:45:12 +0000 (10:45 +0200)] 
compat: use strtonum instead of atoi

When possible, use strtonum as it is more robust than atoi(). Also
replace some strtol() call when possible.

7 years agointerfaces/linux: make veth special
Vincent Bernat [Thu, 19 May 2016 21:36:24 +0000 (23:36 +0200)] 
interfaces/linux: make veth special

veth is always a physical interface. However, it may be hard to detect
because when they are created, lower interface for the first one is none
and lower interface for the second one is the first one. Hence, no loop
detected, hence the second one is not considered as a physical
interface.

This is madness, just whitelist "veth".

7 years agonetlink: don't complain of removal of inexistant IPv6 addresses
Vincent Bernat [Thu, 19 May 2016 21:22:17 +0000 (23:22 +0200)] 
netlink: don't complain of removal of inexistant IPv6 addresses

This happens with link-local addresses.

7 years agoclient: fix spurious warning in XML writer
Vincent Bernat [Thu, 19 May 2016 18:51:07 +0000 (20:51 +0200)] 
client: fix spurious warning in XML writer

It seems that libxml doesn't like generating an empty
document. Therefore, we initialize the writer only when we are sure we
will get content.

7 years agoclient: fix memory leak introduced n XML writer
Vincent Bernat [Thu, 19 May 2016 18:40:01 +0000 (20:40 +0200)] 
client: fix memory leak introduced n XML writer

7 years agoclient: remove memory leak introduced in JSON writers
Vincent Bernat [Thu, 19 May 2016 18:37:59 +0000 (20:37 +0200)] 
client: remove memory leak introduced in JSON writers

7 years agodoc: add an entry in NEWS for last two commits
Vincent Bernat [Thu, 19 May 2016 18:27:42 +0000 (20:27 +0200)] 
doc: add an entry in NEWS for last two commits

7 years agoclient: flush XML object once we have one
Vincent Bernat [Thu, 19 May 2016 18:26:37 +0000 (20:26 +0200)] 
client: flush XML object once we have one

See previous commit. This fixes `lldpcli -f xml watch`.

Fix: #179.

7 years agoclient: flush JSON object once it's done
Vincent Bernat [Thu, 19 May 2016 18:15:24 +0000 (20:15 +0200)] 
client: flush JSON object once it's done

This enables `lldpcli -f json watch` to work as expected. See #179.

7 years agotravis: test json-c support in lldpcli as well
Vincent Bernat [Thu, 19 May 2016 18:09:11 +0000 (20:09 +0200)] 
travis: test json-c support in lldpcli as well

7 years agotravis: no need for --with-{json,xml}
Vincent Bernat [Thu, 19 May 2016 18:06:21 +0000 (20:06 +0200)] 
travis: no need for --with-{json,xml}

It's automatically enabled.

7 years agolog: update manual page to reflect the situation
Vincent Bernat [Mon, 16 May 2016 07:09:37 +0000 (09:09 +0200)] 
log: update manual page to reflect the situation

7 years agolog: make a copy of va when logging to both stderr and syslog
Vincent Bernat [Mon, 16 May 2016 06:56:56 +0000 (08:56 +0200)] 
log: make a copy of va when logging to both stderr and syslog

On common platform, the copy is cheap. In case it isn't we note that the
copy doesn't happen if using a log handler and syslog cannot be enabled
with debug messages.

7 years agolog: don't fallback to stderr for out-of-memory situation
Vincent Bernat [Mon, 16 May 2016 06:55:34 +0000 (08:55 +0200)] 
log: don't fallback to stderr for out-of-memory situation

We don't know if "ap" is still valid. Just don't do anything.

7 years agolog: always log to stderr
Vincent Bernat [Mon, 16 May 2016 06:46:57 +0000 (08:46 +0200)] 
log: always log to stderr

Otherwise, error messages are not displayed on startup and this may
confuse users.

7 years agodaemon: tell user to create user/group when missing
Vincent Bernat [Mon, 16 May 2016 06:09:05 +0000 (08:09 +0200)] 
daemon: tell user to create user/group when missing

7 years agodaemon: give the name of the control socket
Vincent Bernat [Sun, 15 May 2016 19:14:13 +0000 (21:14 +0200)] 
daemon: give the name of the control socket

Otherwise, people have to enable debug to get the information.

7 years agointerfaces: ensure we don't break strict aliasing rule
Vincent Bernat [Sat, 14 May 2016 17:46:07 +0000 (19:46 +0200)] 
interfaces: ensure we don't break strict aliasing rule

Use an union to manipulate IPv4/IPv6 address. Other occurrences are
using memcpy (notably with "struct sockaddr_storage"). This is
preventive since gcc seems to rely more on this strict aliasing rule
since gcc-6.

7 years agoMerge pull request #177 from jonasj76/fix-apparmor-build
Vincent Bernat [Fri, 29 Apr 2016 09:37:35 +0000 (11:37 +0200)] 
Merge pull request #177 from jonasj76/fix-apparmor-build

Fix AppArmor "no" option in configure script

7 years agobuild: fix AppArmor "no" (default) option in configure script 177/head
Jonas Johansson [Fri, 29 Apr 2016 08:36:14 +0000 (10:36 +0200)] 
build: fix AppArmor "no" (default) option in configure script

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
8 years agotests: do not compile tests/decode unless running tests
Vincent Bernat [Fri, 22 Apr 2016 16:06:11 +0000 (18:06 +0200)] 
tests: do not compile tests/decode unless running tests

Fix #175

8 years agoMerge pull request #174 from jonasj76/fix_discard_uint32
Vincent Bernat [Thu, 21 Apr 2016 13:00:59 +0000 (15:00 +0200)] 
Merge pull request #174 from jonasj76/fix_discard_uint32

Fix size of PEEK_DISCARD_UINT32()

8 years agoFix size of PEEK_DISCARD_UINT32() 174/head
Jonas Johansson [Thu, 21 Apr 2016 09:50:06 +0000 (11:50 +0200)] 
Fix size of PEEK_DISCARD_UINT32()

Signed-off-by: Jonas Johansson <jonasj76@gmail.com>
8 years agodoc: mention Windows agent "WinLLDPService"
Vincent Bernat [Tue, 19 Apr 2016 13:26:32 +0000 (15:26 +0200)] 
doc: mention Windows agent "WinLLDPService"

8 years agolldpcli: remove bogus pasting error from manual page
Vincent Bernat [Fri, 15 Apr 2016 18:53:50 +0000 (20:53 +0200)] 
lldpcli: remove bogus pasting error from manual page

8 years agodebian: do not remove _lldpd user
Vincent Bernat [Fri, 15 Apr 2016 12:12:05 +0000 (14:12 +0200)] 
debian: do not remove _lldpd user

While not strictly enforced, it is now considered better to not remove a
user on purge. We have no guarantee that the user is not owning some
files we didn't remove and those files could be attributed to another
user if the current user is removed. Moreover, less code.

8 years agotravis: install libseccomp-dev as well
Vincent Bernat [Sun, 10 Apr 2016 13:29:18 +0000 (15:29 +0200)] 
travis: install libseccomp-dev as well

8 years agoseccomp: fix a compilation warning with respect to uninitialized seccomp
Vincent Bernat [Sun, 10 Apr 2016 12:45:36 +0000 (14:45 +0200)] 
seccomp: fix a compilation warning with respect to uninitialized seccomp

8 years agotravis: also test with seccomp enabled
Vincent Bernat [Sat, 9 Apr 2016 12:42:28 +0000 (14:42 +0200)] 
travis: also test with seccomp enabled

This functionality has been untested for far too long.

8 years agobuild: don't include merges into changelog
Vincent Bernat [Thu, 7 Apr 2016 05:38:22 +0000 (07:38 +0200)] 
build: don't include merges into changelog

8 years agotravis: check we can build static lldpcli
Vincent Bernat [Fri, 1 Apr 2016 07:29:56 +0000 (09:29 +0200)] 
travis: check we can build static lldpcli

8 years agobuild: silence libtool warning about using cru
Vincent Bernat [Sun, 27 Mar 2016 08:25:50 +0000 (10:25 +0200)] 
build: silence libtool warning about using cru

Use "cr" instead. Snippet stolen from freeciv.

8 years agolib: use C preprocessor to build list of init functions
Vincent Bernat [Wed, 23 Mar 2016 21:09:55 +0000 (22:09 +0100)] 
lib: use C preprocessor to build list of init functions

Because some features can be disabled, we cannot just parse the C file,
we need to run the C preprocessor on them. Hopefully, the GNU make stuff
(filter) should be portable enough.

8 years agolib: don't rely on atom-glue.h
Vincent Bernat [Wed, 23 Mar 2016 20:27:54 +0000 (21:27 +0100)] 
lib: don't rely on atom-glue.h

This file is useless. Just use atom-glue.c.

8 years agobuild: ensure atom-glue.h is built first
Vincent Bernat [Wed, 23 Mar 2016 19:48:35 +0000 (20:48 +0100)] 
build: ensure atom-glue.h is built first

Forcing direct dependencies is incompatible with VPATH. Use
BUILT_SOURCES instead.

8 years agolib: don't rely on constructors
Vincent Bernat [Wed, 23 Mar 2016 07:33:11 +0000 (08:33 +0100)] 
lib: don't rely on constructors

Constructors do not work when compiled as a static libraries. Moreover,
some dynamic linkers have still support for constructors optional (for
example, uclibc). Since this can be tested only at runtime, this is not
possible to detect that during configure when crosscompiling.

Emulate this with our own glue code.

8 years agolldpd: don't log error string for missing _lldpd user
Vincent Bernat [Tue, 22 Mar 2016 20:25:10 +0000 (21:25 +0100)] 
lldpd: don't log error string for missing _lldpd user

The additional error message (ENOENT) could just confuse the user.

8 years agotests/integration: only spawn a receive-only lldpd in first namespace
Vincent Bernat [Mon, 21 Mar 2016 13:26:15 +0000 (14:26 +0100)] 
tests/integration: only spawn a receive-only lldpd in first namespace

We don't need it to send anything.

8 years agoosx: update HomeBrew recipe for 0.9.2
Vincent Bernat [Sun, 20 Mar 2016 14:38:22 +0000 (15:38 +0100)] 
osx: update HomeBrew recipe for 0.9.2

8 years agotravis: remove coverity stuff
Vincent Bernat [Sat, 19 Mar 2016 19:08:34 +0000 (20:08 +0100)] 
travis: remove coverity stuff

It's broken. Maybe it would be better to use clang-analyzer instead.

8 years agotravis: message to explain why we don't continue w/ coverity stuff
Vincent Bernat [Sat, 19 Mar 2016 19:04:51 +0000 (20:04 +0100)] 
travis: message to explain why we don't continue w/ coverity stuff

8 years agodaemon: append a dot after process title coverity_scan
Vincent Bernat [Sat, 19 Mar 2016 18:30:10 +0000 (19:30 +0100)] 
daemon: append a dot after process title

It seems that systemd is eating one character. Add a dot for padding.

8 years agolib: more typo in strings
Vincent Bernat [Sat, 19 Mar 2016 18:18:09 +0000 (19:18 +0100)] 
lib: more typo in strings

8 years agoclient: more typo in log messages
Vincent Bernat [Sat, 19 Mar 2016 18:17:14 +0000 (19:17 +0100)] 
client: more typo in log messages

8 years agoclient: fix a typo in manual page
Vincent Bernat [Sat, 19 Mar 2016 18:13:03 +0000 (19:13 +0100)] 
client: fix a typo in manual page

8 years agodebian/redhat: prepare 0.9.2 0.9.2
Vincent Bernat [Sat, 19 Mar 2016 12:00:38 +0000 (13:00 +0100)] 
debian/redhat: prepare 0.9.2

8 years agoclient: fix memory leak when modifying port-related settings
Vincent Bernat [Fri, 18 Mar 2016 21:45:34 +0000 (22:45 +0100)] 
client: fix memory leak when modifying port-related settings

8 years agobuild: enable undefined sanitizer
Vincent Bernat [Fri, 18 Mar 2016 21:32:24 +0000 (22:32 +0100)] 
build: enable undefined sanitizer

All tests pass with this sanitizer. Let's enable it too.

8 years agotravis: only enable sanitizers on Linux
Vincent Bernat [Fri, 18 Mar 2016 21:18:45 +0000 (22:18 +0100)] 
travis: only enable sanitizers on Linux

clang on OSX is too old.

8 years agotests/integration: sleep a bit more feature/test-asan
Vincent Bernat [Fri, 18 Mar 2016 19:21:02 +0000 (20:21 +0100)] 
tests/integration: sleep a bit more

With address sanitizer, things are now slower.

8 years agotravis: retry non-parallel tests on failure
Vincent Bernat [Fri, 18 Mar 2016 19:18:30 +0000 (20:18 +0100)] 
travis: retry non-parallel tests on failure

On failure, reports are incomplete with parallel tests. In this case,
rerun failed tests with full verbosity.

8 years agobuild: let configure tell us if we have address sanitizer
Vincent Bernat [Fri, 18 Mar 2016 19:05:03 +0000 (20:05 +0100)] 
build: let configure tell us if we have address sanitizer

We cannot really rely on __has_feature or __ADDRESS_SANITIZER__ in code
since we are mostly interested in the leak sanitizer and there is
neither a feature nor a macro for that. Early version of GCC have the
address sanitizer, but not the leak sanitizer. We don't support this
configuration, but we need to build correctly either way. So, the user
is expected to enable address sanitizers only on configuration
supporting also the leak sanitizer.

8 years agotravis: use gcc-5 if possible
Vincent Bernat [Fri, 18 Mar 2016 18:46:08 +0000 (19:46 +0100)] 
travis: use gcc-5 if possible

Better support for address and leak sanitizer

8 years agoclient: fix a memory leak in kv writer
Vincent Bernat [Fri, 18 Mar 2016 18:27:47 +0000 (19:27 +0100)] 
client: fix a memory leak in kv writer

8 years agotests/integration: make use of libtool to execute lldpd/lldpcli
Vincent Bernat [Fri, 18 Mar 2016 16:31:31 +0000 (17:31 +0100)] 
tests/integration: make use of libtool to execute lldpd/lldpcli

8 years agotests/integration: mount /proc in namespaces
Vincent Bernat [Fri, 18 Mar 2016 15:52:40 +0000 (16:52 +0100)] 
tests/integration: mount /proc in namespaces

Because of the use of a PID namespace, we must mount /proc into the
appropriate namespace. We don't do that directly when creating
namespaces as clone() doesn't account for the namespace change with
setns() when we are still in the same process. We also fork a process to
do the mount as it seems mount() doesn't get that we are in a different
mount namespace either. Obviously, setns() has some drawbacks we need to
workaround.

We also mount /proc in the chroot. It's absolutely not safe to do so,
but that's only for address sanitizer to work as expected.

8 years agolldpcli: silence expected memory leaks
Vincent Bernat [Fri, 18 Mar 2016 14:05:40 +0000 (15:05 +0100)] 
lldpcli: silence expected memory leaks

The suppression file doesn't have the same syntax as valgrind. Instead,
use code annotations.

8 years agofixedpoint: fix buffer overflow in fixed point computations
Vincent Bernat [Fri, 18 Mar 2016 12:43:22 +0000 (13:43 +0100)] 
fixedpoint: fix buffer overflow in fixed point computations

This was detected by address sanitizer. This was harmless as we use
exclusively 5-byte buffers and we know the next byte is always unused
due to alignment.

8 years agotests: don't check for leaks in fixed point tests
Vincent Bernat [Fri, 18 Mar 2016 12:43:02 +0000 (13:43 +0100)] 
tests: don't check for leaks in fixed point tests

8 years agotests: correctly encode civic address for SNMP tests
Vincent Bernat [Fri, 18 Mar 2016 11:04:41 +0000 (12:04 +0100)] 
tests: correctly encode civic address for SNMP tests

For some reason "\x02F" was interpreted as "\x2f", not as "\x02"
"F". Use separate strings to ensure correctness.

8 years agotests: disable leak sanitizer for unittests
Vincent Bernat [Thu, 17 Mar 2016 23:46:37 +0000 (00:46 +0100)] 
tests: disable leak sanitizer for unittests

Unittests will leak because it's not easy to cleanup after them. We
still want other sanitizer checks.

8 years agotravis: enable address sanitizer
Vincent Bernat [Thu, 17 Mar 2016 08:59:38 +0000 (09:59 +0100)] 
travis: enable address sanitizer

8 years agobuild: add an option to enable sanitizers
Vincent Bernat [Thu, 17 Mar 2016 23:17:16 +0000 (00:17 +0100)] 
build: add an option to enable sanitizers

A user cannot just use CFLAGS=-fsanitize=address because autoconf is too
fragile in some of its test (notably AC_FUNC_MALLOC and
AC_FUNC_REALLOC).

8 years agobuild: display compiler version info after configure
Vincent Bernat [Thu, 17 Mar 2016 09:16:24 +0000 (10:16 +0100)] 
build: display compiler version info after configure

This is useful to get more insight on what is supported (notably Asan
support).

8 years agotests/integration: when several neighbors, be safe and sleep a lot
Vincent Bernat [Wed, 16 Mar 2016 22:51:09 +0000 (23:51 +0100)] 
tests/integration: when several neighbors, be safe and sleep a lot

8 years agotravis: use a separate test for oldies feature/pytest-on-travis
Vincent Bernat [Wed, 16 Mar 2016 22:24:29 +0000 (23:24 +0100)] 
travis: use a separate test for oldies

We want a complete coverage for this case.

8 years agotests/integration: down then up with vlan require dot1 support
Vincent Bernat [Wed, 16 Mar 2016 22:22:14 +0000 (23:22 +0100)] 
tests/integration: down then up with vlan require dot1 support

8 years agotravis: run integration tests on Linux
Vincent Bernat [Wed, 16 Mar 2016 19:37:29 +0000 (20:37 +0100)] 
travis: run integration tests on Linux

After some tweaks, they seem to work as expected.

8 years agotests/integration: sleep more after anything that create an interface
Vincent Bernat [Wed, 16 Mar 2016 21:06:56 +0000 (22:06 +0100)] 
tests/integration: sleep more after anything that create an interface

See previous commit for rationale.

8 years agotests/integration: wait more when down/up interface
Vincent Bernat [Wed, 16 Mar 2016 21:01:22 +0000 (22:01 +0100)] 
tests/integration: wait more when down/up interface

With IPv6, DAD may interfer and trigger more changes and lldpd will wait
those changes to settle.

8 years agotests/integration: reduce the number of emulated neighbor
Vincent Bernat [Wed, 16 Mar 2016 20:55:43 +0000 (21:55 +0100)] 
tests/integration: reduce the number of emulated neighbor

This is costly when we are running on low-memory containers.

8 years agotests/integration: fix _lldpd group creation
Vincent Bernat [Wed, 16 Mar 2016 20:51:02 +0000 (21:51 +0100)] 
tests/integration: fix _lldpd group creation

8 years agotests/integration: use ctypes for mount instead of util-linux
Vincent Bernat [Wed, 16 Mar 2016 20:32:53 +0000 (21:32 +0100)] 
tests/integration: use ctypes for mount instead of util-linux

Some versions of util-linux had a bug with respect to private/slave
mounts. The kernel doesn't expect the option to be passed during the
initial mount but only during subsequent calls (you mount the FS, you
make it private and slave). Directly use mount(2) to avoid the problem.

8 years agotravis: move install/run steps into tests/ci
Vincent Bernat [Tue, 15 Mar 2016 07:26:34 +0000 (08:26 +0100)] 
travis: move install/run steps into tests/ci

They are not specific to Travis.

8 years agotests: report complete Linux version as well
Vincent Bernat [Mon, 14 Mar 2016 07:44:05 +0000 (08:44 +0100)] 
tests: report complete Linux version as well

8 years agotests: replace integration test by py.test+namespace tests
Vincent Bernat [Tue, 1 Mar 2016 19:01:23 +0000 (20:01 +0100)] 
tests: replace integration test by py.test+namespace tests

Relying on namespaces enable us to quickly run isolated instances of
lldpd without the need of virtual machines. Since the startup time is
quite fast (despite having to wait for lldpd to be "ready"), we can use
a classic unittest framework like py.test to run tests and get
appropriate reports. Tests can be run in parallel to overcome the
slowness induced by all those `time.sleep(2)`.

8 years agobuild: ensure "make distcheck" work for any value of sysconfdir
Vincent Bernat [Sun, 13 Mar 2016 23:12:12 +0000 (00:12 +0100)] 
build: ensure "make distcheck" work for any value of sysconfdir

When using `--sysconfdir=/etc`, `make distcheck` was failing because it
did use `--prefix=...` to force a different installation path (and not
`DESTDIR`). During `make distcheck`, we force the use the original
value.

8 years agolldpcli: fix output with json-c to be the same as with jansson
Vincent Bernat [Sun, 13 Mar 2016 20:58:22 +0000 (21:58 +0100)] 
lldpcli: fix output with json-c to be the same as with jansson

8 years agolldpcli: acknowledge memory leak in another map conversion
Vincent Bernat [Sun, 13 Mar 2016 20:13:57 +0000 (21:13 +0100)] 
lldpcli: acknowledge memory leak in another map conversion

8 years agodoc: document last commit in NEWS
Vincent Bernat [Sun, 13 Mar 2016 17:20:02 +0000 (18:20 +0100)] 
doc: document last commit in NEWS

8 years agointerfaces: handle correctly operation conversation of a port
Vincent Bernat [Sun, 13 Mar 2016 16:54:07 +0000 (17:54 +0100)] 
interfaces: handle correctly operation conversation of a port

When a port was regular and become an enslaved member of a bond, we
created a different port. Since we now keep the old ports around, the
old port may still attract a lot of things, like specific configuration
or VLAN. Therefore, we handle the conversion of a port from one kind to
another.

Another idea would be to not do special handling for bonds. Only old
kernels need that. We could remove that later.

8 years agointerfaces: replace "bonded" by "enslaved"
Vincent Bernat [Sun, 13 Mar 2016 13:37:36 +0000 (14:37 +0100)] 
interfaces: replace "bonded" by "enslaved"

It is more in par with the appropriate terminology for bonds in Linux.

8 years agonetlink: ensure lower link doesn't change for an interface
Vincent Bernat [Sun, 13 Mar 2016 11:26:44 +0000 (12:26 +0100)] 
netlink: ensure lower link doesn't change for an interface

The lower link of an interface is defined at its creation. It's not
possible for it to change. This is important to not try to change it
because the kernel won't send IFLA_LINK_NETNSID each time it sends
IFLA_LINK.

8 years agointerfaces: issue a warning if we get a loop
Vincent Bernat [Sun, 13 Mar 2016 11:11:35 +0000 (12:11 +0100)] 
interfaces: issue a warning if we get a loop

We really want to correct that.

8 years agointerfaces: limit the maximum search depth when applying a VLAN
Vincent Bernat [Sun, 13 Mar 2016 11:04:06 +0000 (12:04 +0100)] 
interfaces: limit the maximum search depth when applying a VLAN

It's now quite easy to hit a bug where we loop over interfaces when
trying to find the physical interface associated to a VLAN. Put a
maximum depth of 5.

8 years agocustom: fix a capitalization error in man page
Vincent Bernat [Sat, 12 Mar 2016 19:56:30 +0000 (20:56 +0100)] 
custom: fix a capitalization error in man page

Also correct some indentation.

8 years agoinclude: fix definition of IFLA_RTA to please clang
Vincent Bernat [Sat, 12 Mar 2016 17:20:51 +0000 (18:20 +0100)] 
include: fix definition of IFLA_RTA to please clang

In `linux/if_link.h`, clang assume we have an alignment problem while we
know this is not the case. Add a cast to void* to avoid this warning.

8 years agonetlink: don't consider a lower interface when in another namespace
Vincent Bernat [Sat, 12 Mar 2016 16:39:02 +0000 (17:39 +0100)] 
netlink: don't consider a lower interface when in another namespace

The index of an interface is specific to a namespace, don't try to
interpret anything about interfaces belonging to another namespace. This
change unbreak some scenario, like in an appropriate loop detection
because an interface from another namespace is detected (vlan100 ->
veth1 -> veth0 with same index as vlan100). However, it is not possible
to exactly detect a physical interface anymore since we don't really
know what can be on the other side of the interface (in the other
namespace). However, bridged, bonded and VLAN interfaces should be safe.

8 years agolldpcli: with key/value display, remove any newline
Vincent Bernat [Sat, 12 Mar 2016 13:03:54 +0000 (14:03 +0100)] 
lldpcli: with key/value display, remove any newline

They make hard to parse the result. Just remove them. This happens for
example with CDP.

8 years agolldpcli: fix display of LLDP-MED POE TLV
Vincent Bernat [Fri, 11 Mar 2016 23:58:34 +0000 (00:58 +0100)] 
lldpcli: fix display of LLDP-MED POE TLV

8 years agolldpcli: display LLDP-MED caps like LLDP caps
Vincent Bernat [Fri, 11 Mar 2016 21:47:10 +0000 (22:47 +0100)] 
lldpcli: display LLDP-MED caps like LLDP caps

While LLDP caps can be available and/or enabled, LLDP-MED caps are only
available. However, the way they were declared made them invisible in
some formats, like the key/value pair. Try to fix that. Warn about the
change in NEWS file.

8 years agosolaris: remove unused headers
Vincent Bernat [Wed, 9 Mar 2016 19:12:23 +0000 (20:12 +0100)] 
solaris: remove unused headers

8 years agoversion: display configuration directory as well
Vincent Bernat [Tue, 8 Mar 2016 22:55:31 +0000 (23:55 +0100)] 
version: display configuration directory as well

8 years agoversion: display more build information when using "-vv"
Vincent Bernat [Fri, 4 Mar 2016 21:03:38 +0000 (22:03 +0100)] 
version: display more build information when using "-vv"

Display supported features as well as compilation flags used. This will
be useful to let integration tests autodetect compiled features.

8 years agodoc: document PR #163 in NEWS
Vincent Bernat [Tue, 1 Mar 2016 18:48:28 +0000 (19:48 +0100)] 
doc: document PR #163 in NEWS