]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
8 years agorelease: 0.7.19 released 0.7.19
Vincent Bernat [Sat, 17 Oct 2015 17:15:03 +0000 (19:15 +0200)] 
release: 0.7.19 released

8 years agoosx: update HomeBrew recipe
Vincent Bernat [Thu, 15 Oct 2015 08:04:32 +0000 (10:04 +0200)] 
osx: update HomeBrew recipe

8 years agoprotocols: don't use assert on paths that can be reached
Vincent Bernat [Sun, 4 Oct 2015 00:24:29 +0000 (02:24 +0200)] 
protocols: don't use assert on paths that can be reached

Malformed packets should not make lldpd crash. Ensure we can handle them
by not using assert() in this part.

8 years agoNEWS: add entry for last commit
Vincent Bernat [Sun, 4 Oct 2015 00:03:57 +0000 (02:03 +0200)] 
NEWS: add entry for last commit

8 years agolldp: fix a buffer overflow when handling management address TLV
Vincent Bernat [Sat, 3 Oct 2015 23:50:38 +0000 (01:50 +0200)] 
lldp: fix a buffer overflow when handling management address TLV

When a remote device was advertising a too large management address
while still respecting TLV boundaries, lldpd would crash due to a buffer
overflow. However, the buffer being a static one, this buffer overflow
is not exploitable if hardening was not disabled. This bug exists since
version 0.5.6.

8 years agorelease: 0.7.18 released 0.7.18
Vincent Bernat [Fri, 25 Sep 2015 09:21:38 +0000 (11:21 +0200)] 
release: 0.7.18 released

8 years agointerfaces: restore bridge and bond detection without netlink
Vincent Bernat [Fri, 25 Sep 2015 09:20:56 +0000 (11:20 +0200)] 
interfaces: restore bridge and bond detection without netlink

With 2.6.32, it's not possible to use netlink for that.

8 years agointerfaces: remove old bridge code
Vincent Bernat [Fri, 25 Sep 2015 09:04:02 +0000 (11:04 +0200)] 
interfaces: remove old bridge code

It has been ages since sysfs contains the interface for querying a
bridge (2.6.7). And nowadays, sysfs is always enabled.

8 years agobuild: fool autoreconf to do a recursive reconfiguration
Vincent Bernat [Wed, 16 Sep 2015 20:15:25 +0000 (22:15 +0200)] 
build: fool autoreconf to do a recursive reconfiguration

We just redefine AC_CONFIG_SUBDIRS to our own empty version. autoreconf
will see this during the tracing step and will automatically reconfigure
libevent and libnl as well. This may unbreak people relying on tool
trying to regen configure without using the "autogen.sh" script.

Fix #133 (with a bit of luck)

8 years agorelease: 0.7.17 released
Vincent Bernat [Wed, 9 Sep 2015 15:15:51 +0000 (17:15 +0200)] 
release: 0.7.17 released

8 years agobuild: .git may be a file 0.7.17
Vincent Bernat [Wed, 9 Sep 2015 15:06:34 +0000 (17:06 +0200)] 
build: .git may be a file

It happens when using a worktree.

8 years agoNEWS: add some entries for 0.7.17
Vincent Bernat [Wed, 19 Aug 2015 16:40:18 +0000 (18:40 +0200)] 
NEWS: add some entries for 0.7.17

8 years agolldpcli: display a warning when a configuration file is not found
Vincent Bernat [Wed, 19 Aug 2015 15:11:26 +0000 (17:11 +0200)] 
lldpcli: display a warning when a configuration file is not found

Otherwise, the output of lldpcli would look pretty empty.

8 years agonetlink: workaround veth being peered together through IFLA_LINK
Vincent Bernat [Mon, 17 Aug 2015 06:51:46 +0000 (08:51 +0200)] 
netlink: workaround veth being peered together through IFLA_LINK

This is a change introduced in Linux 4.1. It's easy to detect, so,
workaround it. See:

    commit a45253bf32bf49cdb2807bad212b84f5ab51ac26
    Author: Nicolas Dichtel <nicolas.dichtel@6wind.com>
    Date:   Thu Apr 2 17:07:11 2015 +0200

        veth: set iflink to the peer veth

        Now that the peer netns is advertised in rtnl messages, we can set this property
        so that IFLA_LINK will advertise the peer ifindex. It allows the userland to get
        the full veth configuration.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
8 years agobuild: add a marker at the end of third-party configure
Vincent Bernat [Sun, 16 Aug 2015 13:12:50 +0000 (15:12 +0200)] 
build: add a marker at the end of third-party configure

8 years agobuild: make --with-embedded-libevent a tri-state switch
Vincent Bernat [Sun, 16 Aug 2015 13:02:36 +0000 (15:02 +0200)] 
build: make --with-embedded-libevent a tri-state switch

It defaults to auto (same as before) but not embedding libevent can be
enforced with `--without-embedded-libevent`.

8 years agobuild: don't let autoreconf rely on AC_CONFIG_SUBDIRS macro
Vincent Bernat [Sun, 16 Aug 2015 12:07:44 +0000 (14:07 +0200)] 
build: don't let autoreconf rely on AC_CONFIG_SUBDIRS macro

We don't use it anymore.

8 years agobuild: automatically reuse regular configure args for distcheck
Vincent Bernat [Sun, 16 Aug 2015 11:57:00 +0000 (13:57 +0200)] 
build: automatically reuse regular configure args for distcheck

8 years agobuild: run ./configure for libevent even when not needed
Vincent Bernat [Sun, 16 Aug 2015 10:31:45 +0000 (12:31 +0200)] 
build: run ./configure for libevent even when not needed

We need it for "make dist"...

8 years agobuild: only enable silent rules if they are not disabled
Vincent Bernat [Sun, 16 Aug 2015 10:05:03 +0000 (12:05 +0200)] 
build: only enable silent rules if they are not disabled

8 years agobuild: replace AC_CONFIG_SUBDIRS with custom version
Vincent Bernat [Sun, 16 Aug 2015 09:49:07 +0000 (11:49 +0200)] 
build: replace AC_CONFIG_SUBDIRS with custom version

Modifying `$ac_configure_args` breaks maintainer mode. Moreover,
./configure is run even when not needed. We use a custom version
allowing to pass custom parameters and not delaying ./configure
invocation.

8 years agocdp: compute default platform when updating the chassis
Vincent Bernat [Wed, 12 Aug 2015 15:01:46 +0000 (17:01 +0200)] 
cdp: compute default platform when updating the chassis

Like for other data, collect the default platform name for CDP in
`lldpd_update_localchassis()`. Code in `cdp.c` should be independant of
the environment. Also, fix the unittests.

8 years agocdp: make the default platform name really the kernel name
Baptiste Daroussin [Wed, 12 Aug 2015 12:40:45 +0000 (14:40 +0200)] 
cdp: make the default platform name really the kernel name

Instead of hardcoding 'Linux" directly query the kernel name of the user
is not overwriting it.

8 years agobuild: propagate appropriate build flags in src/compat
Vincent Bernat [Tue, 11 Aug 2015 09:40:10 +0000 (11:40 +0200)] 
build: propagate appropriate build flags in src/compat

8 years agoosx: remove unneeded patch for launchd
Vincent Bernat [Sat, 8 Aug 2015 19:24:06 +0000 (21:24 +0200)] 
osx: remove unneeded patch for launchd

It is not needed since 0.7.6.

8 years agoosx: fix configure command line in Homebrew
Vincent Bernat [Sat, 8 Aug 2015 19:16:52 +0000 (21:16 +0200)] 
osx: fix configure command line in Homebrew

The array concat operator has an higher precedence than the ternary
operator in Ruby.

8 years agoosx: restore use of _lldpd/_lldpd user/group in Homebrew
Vincent Bernat [Sat, 8 Aug 2015 18:16:39 +0000 (20:16 +0200)] 
osx: restore use of _lldpd/_lldpd user/group in Homebrew

This has been wrongly removed in a previous commit. Homebrew don't want
to do that, but I feel this is better to keep that here.

8 years agoosx: synchronize a bit with official HomeBrew formula
Vincent Bernat [Sat, 8 Aug 2015 18:14:57 +0000 (20:14 +0200)] 
osx: synchronize a bit with official HomeBrew formula

8 years agoREADME: incorrect instructions for OS X
Vincent Bernat [Sat, 8 Aug 2015 17:56:16 +0000 (19:56 +0200)] 
README: incorrect instructions for OS X

A backslash was missing.

8 years agodebian: update symbol versioning
Vincent Bernat [Sat, 8 Aug 2015 17:02:59 +0000 (19:02 +0200)] 
debian: update symbol versioning

Since all the work is now done in the `.map` file, we don't need to say
more here. As the symbols were previously unversioned, we have to start
both generations at 0.7.16.

8 years agoclient: parse options only once
Vincent Bernat [Sat, 8 Aug 2015 17:01:17 +0000 (19:01 +0200)] 
client: parse options only once

getopt() will parse them in order. If a user specifies `-d` after `-c`,
they will be ignored but this seems like a corner case.

8 years agoclient: make lldpctl also accepts `-u` flag
Vincent Bernat [Sat, 8 Aug 2015 16:24:40 +0000 (18:24 +0200)] 
client: make lldpctl also accepts `-u` flag

Close: #129

8 years agoMerge pull request #128 from baloo/patch-1
Vincent Bernat [Sat, 8 Aug 2015 09:53:01 +0000 (11:53 +0200)] 
Merge pull request #128 from baloo/patch-1

Typo in README.md

8 years agoTypo in README.md 128/head
Arthur Gautier [Sat, 8 Aug 2015 08:10:06 +0000 (08:10 +0000)] 
Typo in README.md

8 years agodebian: don't complain about too recent Standards-Version
Vincent Bernat [Fri, 7 Aug 2015 09:51:41 +0000 (11:51 +0200)] 
debian: don't complain about too recent Standards-Version

8 years agodebian: add a lintian override for debian-revision-should-not-be-zero
Vincent Bernat [Fri, 7 Aug 2015 09:35:37 +0000 (11:35 +0200)] 
debian: add a lintian override for debian-revision-should-not-be-zero

This is expected.

8 years agoredhat: on RHEL 5, use --enable-oldies
Vincent Bernat [Fri, 7 Aug 2015 09:22:38 +0000 (11:22 +0200)] 
redhat: on RHEL 5, use --enable-oldies

Kernel is too old to support everything we need (2.6.18).

8 years agotravis: also test when oldies are enabled
Vincent Bernat [Fri, 7 Aug 2015 09:19:25 +0000 (11:19 +0200)] 
travis: also test when oldies are enabled

8 years agotravis: don't add too many alternatives in configure
Vincent Bernat [Fri, 7 Aug 2015 09:19:00 +0000 (11:19 +0200)] 
travis: don't add too many alternatives in configure

8 years agorelease: prepare 0.7.16 0.7.16
Vincent Bernat [Fri, 7 Aug 2015 09:13:19 +0000 (11:13 +0200)] 
release: prepare 0.7.16

8 years agolib: accept "language" as a valid MED location type
Vincent Bernat [Fri, 7 Aug 2015 09:02:09 +0000 (11:02 +0200)] 
lib: accept "language" as a valid MED location type

Closes #127

8 years agolldpd: add version string to "starting" log entry
Vincent Bernat [Mon, 27 Jul 2015 06:55:39 +0000 (08:55 +0200)] 
lldpd: add version string to "starting" log entry

8 years agoMerge pull request #126 from idryzhov/master
Vincent Bernat [Wed, 5 Aug 2015 16:59:52 +0000 (18:59 +0200)] 
Merge pull request #126 from idryzhov/master

daemon: fix missing parenthesis

8 years agodaemon: fix missing parenthesis 126/head
Igor Ryzhov [Wed, 5 Aug 2015 15:28:38 +0000 (18:28 +0300)] 
daemon: fix missing parenthesis

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
8 years agoMerge pull request #124 from commodo/rename-unconfig-custom-tlvs-cmd
Vincent Bernat [Thu, 30 Jul 2015 12:52:36 +0000 (14:52 +0200)] 
Merge pull request #124 from commodo/rename-unconfig-custom-tlvs-cmd

lldpcli: rename "unconfigure lldp custom-tlvs" to "unconfigure lldp custom-tlv"

8 years agolldpcli: rename "unconfigure lldp custom-tlvs" to "unconfigure lldp custom-tlv" 124/head
Alexandru Ardelean [Thu, 30 Jul 2015 11:26:13 +0000 (14:26 +0300)] 
lldpcli: rename "unconfigure lldp custom-tlvs" to "unconfigure lldp custom-tlv"

There was a bit of confusion regarding this command.
It's documented as 'unconfigure lldp custom-tlv', when in fact it's
'unconfigure lldp custom-tlvs' (plural).

That's also my fault, since I did not update much (or take care about)
documentation.
It seems simpler to rename the command as is in the doc than change
the doc.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
8 years agolldpcli: remove spurious space before port aggregation
Vincent Bernat [Sat, 25 Jul 2015 15:27:56 +0000 (17:27 +0200)] 
lldpcli: remove spurious space before port aggregation

8 years agonetlink: use netlink to retrieve bridge/bond/vlan information
Vincent Bernat [Sat, 25 Jul 2015 15:23:01 +0000 (17:23 +0200)] 
netlink: use netlink to retrieve bridge/bond/vlan information

On Linux, Netlink is more efficient to get this kind of information. Use
it all the time, unless we are configured to run on old kernels. In this
case, fallback to the previous functions.

An old kernel is now < 2.6.32 (RHEL 6, Ubuntu Lucid, Debian Squeeze).

8 years agobuild: add a note to remember why setproctitle may not work
Vincent Bernat [Fri, 24 Jul 2015 16:35:50 +0000 (18:35 +0200)] 
build: add a note to remember why setproctitle may not work

On libbsd < 0.5, this is only a stub function. So, it is expected to do
nothing on OS like Ubuntu Precise.

8 years agodoc: fix latest NEWS update
Vincent Bernat [Sat, 11 Jul 2015 21:12:01 +0000 (23:12 +0200)] 
doc: fix latest NEWS update

0.7.16 was not released yet.

8 years agolib: fix memory leak when handling MED location data
Vincent Bernat [Sat, 11 Jul 2015 21:10:04 +0000 (23:10 +0200)] 
lib: fix memory leak when handling MED location data

When formatting fixed precision data, the result was copied into the
atom but the original wasn't freed.

8 years agodoc: add a NEWS entry for the chassis-related stuff
Vincent Bernat [Sat, 11 Jul 2015 21:03:11 +0000 (23:03 +0200)] 
doc: add a NEWS entry for the chassis-related stuff

8 years agolldpcli: add "show chassis" command
Vincent Bernat [Sat, 11 Jul 2015 20:59:23 +0000 (22:59 +0200)] 
lldpcli: add "show chassis" command

This demonstrates the use of `lldpctl_get_local_chassis()` function.

8 years agolldpcli: get chassis atom to query chassis-related information
Vincent Bernat [Sat, 11 Jul 2015 20:39:13 +0000 (22:39 +0200)] 
lldpcli: get chassis atom to query chassis-related information

Don't rely on the previously introduced compatibility layer. There is no
plan to deprecate this layer, but as an example, we prefer to show how
stuff should be done.

8 years agoRevert "lib: bump ABI"
Vincent Bernat [Sat, 11 Jul 2015 20:30:40 +0000 (22:30 +0200)] 
Revert "lib: bump ABI"

This reverts commit 8ee9bc2cec66b080746372e0a7b5f3ec1363b694. Thanks to
the compatibility layer, we can only do a minor ABI bump.

8 years agolib: add compatibility layer with chassis-related information
Vincent Bernat [Sat, 11 Jul 2015 20:29:12 +0000 (22:29 +0200)] 
lib: add compatibility layer with chassis-related information

When querying a port, if we don't find the requested information,
check if the chassis has the information as well.

8 years agolib: bump ABI
Vincent Bernat [Sat, 11 Jul 2015 18:41:44 +0000 (20:41 +0200)] 
lib: bump ABI

Due to the absence of compatibility layer, all atom-related functions
are considered incompatible since they don't work on ports like they
used too. This is not strictly an ABI incompatibility, but we consider
the change important enough to do like it was.

This commit will be reverted once the compatibility layer is here.

8 years agolib: ability to get and query local chassis
Vincent Bernat [Sat, 11 Jul 2015 18:04:12 +0000 (20:04 +0200)] 
lib: ability to get and query local chassis

Up until now, to get information about the local chassis, we had to get
one interface and query the associated local port, then get chassis
information out of it.

With this change, a dedicated `lldpctl_get_local_chassis()` function is
provided and returns a chassis atom. All the chassis-related properties
are moved to this kind of atom. We also add a `lldpctl_k_port_chassis`
key to get the chassis associated to a port.

Left for next commits:
 - lldpcli hasn't been updated
 - compatibility layer to query chassis-related properties from port

8 years agobuild: fix URL to library versioning documentation
Vincent Bernat [Sat, 11 Jul 2015 16:19:27 +0000 (18:19 +0200)] 
build: fix URL to library versioning documentation

8 years agolldpcli: move "conf sys bond-slave-src-mac-type" in man page
Vincent Bernat [Mon, 6 Jul 2015 15:44:49 +0000 (17:44 +0200)] 
lldpcli: move "conf sys bond-slave-src-mac-type" in man page

8 years agoMerge pull request #119 from kcgthb/master
Vincent Bernat [Thu, 25 Jun 2015 05:08:51 +0000 (07:08 +0200)] 
Merge pull request #119 from kcgthb/master

redhat: fix minor issues in .spec file

8 years agoredhat: fix minor issues in .spec file 119/head
Kilian Cavalotti [Tue, 23 Jun 2015 01:20:36 +0000 (18:20 -0700)] 
redhat: fix minor issues in .spec file

- fix BuildRequires package name (pkgconfig instead of pkg-config)

8 years agobuild: fix help string for --enable-hardening for consistency
Vincent Bernat [Thu, 18 Jun 2015 07:38:52 +0000 (09:38 +0200)] 
build: fix help string for --enable-hardening for consistency

Closes #118.

8 years agobuild: ship lldpctl.map in tarball
Vincent Bernat [Tue, 16 Jun 2015 15:50:58 +0000 (17:50 +0200)] 
build: ship lldpctl.map in tarball

8 years agobuild: use symbol versioning for liblldpctl
Vincent Bernat [Tue, 16 Jun 2015 15:02:07 +0000 (17:02 +0200)] 
build: use symbol versioning for liblldpctl

8 years agoMerge pull request #115 from alagoutte/travis_container
Vincent Bernat [Thu, 28 May 2015 18:44:01 +0000 (20:44 +0200)] 
Merge pull request #115 from alagoutte/travis_container

Don't use container-based Travis CI

8 years agoMerge pull request #114 from alagoutte/clang
Vincent Bernat [Thu, 28 May 2015 15:06:46 +0000 (17:06 +0200)] 
Merge pull request #114 from alagoutte/clang

Add -Wdocumentation (Clang CFLAG) and fix warning

8 years agoDon't use container-based Travis CI 115/head
Alexis La Goutte [Thu, 21 May 2015 14:04:09 +0000 (16:04 +0200)] 
Don't use container-based Travis CI

8 years agoAdd -Wheader-guard and -Wdocumentation to CFLAG (Use by Clang) 114/head
Alexis La Goutte [Thu, 21 May 2015 11:28:33 +0000 (13:28 +0200)] 
Add -Wheader-guard and -Wdocumentation to CFLAG (Use by Clang)

8 years agoDisable -Wdocumentation for some include using pragma
Alexis La Goutte [Thu, 21 May 2015 14:00:30 +0000 (16:00 +0200)] 
Disable -Wdocumentation for some include using pragma

8 years agoosx: tell the build fix will be here in 0.7.16.
Vincent Bernat [Mon, 25 May 2015 18:06:10 +0000 (20:06 +0200)] 
osx: tell the build fix will be here in 0.7.16.

8 years agoosx/homebrew: use --without-json and --without-snmp to avoid autodetection
Vincent Bernat [Mon, 25 May 2015 18:03:56 +0000 (20:03 +0200)] 
osx/homebrew: use --without-json and --without-snmp to avoid autodetection

8 years agobuild: create parent directory before editing files
Vincent Bernat [Mon, 25 May 2015 17:48:15 +0000 (19:48 +0200)] 
build: create parent directory before editing files

8 years agoosx: add appropriate dependency on pre/postinstall scripts
Vincent Bernat [Mon, 25 May 2015 17:46:25 +0000 (19:46 +0200)] 
osx: add appropriate dependency on pre/postinstall scripts

8 years agoosx: ensure pre/postinstall scripts are created correctly
Vincent Bernat [Mon, 25 May 2015 17:36:34 +0000 (19:36 +0200)] 
osx: ensure pre/postinstall scripts are created correctly

Because we declare the scripts/*install target in `edit.am` and in
`Makefile.am`, only one of them is used. With automake, it doesn't seem
possible to easily extend a target. Instead, do the chmod just before we
need it.

8 years agoosx: in README.md, add `--without-json`
Vincent Bernat [Mon, 25 May 2015 17:33:32 +0000 (19:33 +0200)] 
osx: in README.md, add `--without-json`

Otherwise, we may try to link to a library present through homebrew and
the package won't be portable.

8 years agoosx: ship *.in files with tarball
Vincent Bernat [Mon, 25 May 2015 17:25:48 +0000 (19:25 +0200)] 
osx: ship *.in files with tarball

Due to commit 95493844623c46e803d31302ac7758ce01580be7, we didn't ship
the templates with the tarball anymore. Fix that.

8 years agoclient: change location of bash completion
Vincent Bernat [Thu, 21 May 2015 19:53:02 +0000 (21:53 +0200)] 
client: change location of bash completion

8 years agofix parameter 'details/hidden' not found in the function declaration [-Wdocumentation]
Alexis La Goutte [Thu, 21 May 2015 11:27:47 +0000 (13:27 +0200)] 
fix parameter 'details/hidden' not found in the function declaration [-Wdocumentation]

8 years agofix parameter 'lldpctl' not found in the function declaration [-Wdocumentation]
Alexis La Goutte [Thu, 21 May 2015 11:25:38 +0000 (13:25 +0200)] 
fix parameter 'lldpctl' not found in the function declaration [-Wdocumentation]

8 years agolib: don't use priority with constructor 0.7.15
Vincent Bernat [Thu, 21 May 2015 06:45:55 +0000 (08:45 +0200)] 
lib: don't use priority with constructor

It is not supported on older versions of gcc. Like the one in RHEL 5. It
should not matter for our case as atoms and builders can be added in any
order. Cc @commodo for confirmation.

8 years agoredhat: don't build with JSON by default
Vincent Bernat [Thu, 21 May 2015 06:33:15 +0000 (08:33 +0200)] 
redhat: don't build with JSON by default

json-c-devel is available in CentOS 7, but not RHEL 7. It's available in
Fedora. Just disable it everywhere, not an essential feature.

8 years agobuild: only uses -pie when linking programs
Vincent Bernat [Thu, 21 May 2015 06:05:57 +0000 (08:05 +0200)] 
build: only uses -pie when linking programs

We can't rely on libtool to remove the flag on libraries.

8 years agobuild: when checking for additional flags, be fatal on errors
Vincent Bernat [Thu, 21 May 2015 05:49:19 +0000 (07:49 +0200)] 
build: when checking for additional flags, be fatal on errors

8 years agolldp: do appropriate cleanup when unable to allocate memory
Vincent Bernat [Thu, 21 May 2015 05:20:13 +0000 (07:20 +0200)] 
lldp: do appropriate cleanup when unable to allocate memory

8 years agotravis: don't install libtool/autoconf/automake
Vincent Bernat [Thu, 21 May 2015 05:13:50 +0000 (07:13 +0200)] 
travis: don't install libtool/autoconf/automake

They are altready installed through homebrew.

8 years agotests: document the suppression file for valgrind
Vincent Bernat [Wed, 20 May 2015 22:29:23 +0000 (00:29 +0200)] 
tests: document the suppression file for valgrind

8 years agobuild: don't use -Wl,-pie
Vincent Bernat [Wed, 20 May 2015 21:44:21 +0000 (23:44 +0200)] 
build: don't use -Wl,-pie

This flag seems to work when running on i386 on Linux but isn't handled
correctly by libtool and liblldpctl.so ends being without any
symbol. Use -pie only and try an up-to-date libtoolize on OSX to see if
it performs better.

8 years agoredhat: fix dates in .spec
Vincent Bernat [Wed, 20 May 2015 20:43:46 +0000 (22:43 +0200)] 
redhat: fix dates in .spec

8 years agobuild: require json-c >= 0.10
Vincent Bernat [Wed, 20 May 2015 20:35:20 +0000 (22:35 +0200)] 
build: require json-c >= 0.10

`json_object_object_get_ex` is only available from this version. json-c
name has been introduced from 0.11, so we can safely assume that with
this name, we have the right version. Do the checks only on old names.

8 years agoredhat: fix a typo in conditional JSON support
Vincent Bernat [Wed, 20 May 2015 20:29:53 +0000 (22:29 +0200)] 
redhat: fix a typo in conditional JSON support

8 years agoredhat: provide a simpler buildroot
Vincent Bernat [Wed, 20 May 2015 20:28:35 +0000 (22:28 +0200)] 
redhat: provide a simpler buildroot

It seems that %() may not be expanded as expected.

8 years agorelease: prepare new version
Vincent Bernat [Wed, 20 May 2015 20:04:09 +0000 (22:04 +0200)] 
release: prepare new version

8 years agolldpcli: fix another memory leak when querying statistics
Vincent Bernat [Wed, 20 May 2015 18:34:27 +0000 (20:34 +0200)] 
lldpcli: fix another memory leak when querying statistics

8 years agolldpcli: fix a memory leak when querying custom TLVs
Vincent Bernat [Wed, 20 May 2015 18:32:40 +0000 (20:32 +0200)] 
lldpcli: fix a memory leak when querying custom TLVs

8 years agobuild: rename valgrind suppression file to match the right tool
Vincent Bernat [Wed, 20 May 2015 18:30:14 +0000 (20:30 +0200)] 
build: rename valgrind suppression file to match the right tool

8 years agoctl: don't use C99 designated initializer for structs to travel on a socket
Vincent Bernat [Wed, 20 May 2015 18:25:32 +0000 (20:25 +0200)] 
ctl: don't use C99 designated initializer for structs to travel on a socket

While this is harmless, we prefer to know that each byte is correctly
initialized to avoid Valgrind warnings.

8 years agotests: provide a complete test file for lldpcli
Vincent Bernat [Wed, 20 May 2015 18:07:06 +0000 (20:07 +0200)] 
tests: provide a complete test file for lldpcli

Unfortunately, to be fully automated, we should be able to run lldpd as
root and run the test as root as well.

8 years agolib: use ssize_t to store result from write()
Vincent Bernat [Wed, 20 May 2015 18:06:27 +0000 (20:06 +0200)] 
lib: use ssize_t to store result from write()

8 years agodoc: fix example of "configure dot3 power" command
Vincent Bernat [Wed, 20 May 2015 18:03:19 +0000 (20:03 +0200)] 
doc: fix example of "configure dot3 power" command