]>
git.ipfire.org Git - thirdparty/lldpd.git/log
Vincent Bernat [Sat, 28 Nov 2015 13:49:45 +0000 (14:49 +0100)]
log: rework the way -d work
Now:
- `-d` means to stay in foreground, log to syslog
- `-dd` means to stay in foreground, log warnings to console
- `-ddd` means to stay in foreground, log warnings and info to console
- `-dddd` means to stay in foreground, log all to console
Fix #146
Vincent Bernat [Fri, 27 Nov 2015 06:58:37 +0000 (07:58 +0100)]
osx: also use /sbin/nologin as default shell
Vincent Bernat [Fri, 27 Nov 2015 06:57:14 +0000 (07:57 +0100)]
redhat: use /sbin/nologin as a shell for lldpd
Fix #147
Vincent Bernat [Mon, 23 Nov 2015 07:42:04 +0000 (08:42 +0100)]
debian: don't try to support older distributions
They are not supported due to the dependency on libnl3. Either we fix
the dependency to be optional or we don't need that stuff in
debian/rules.
Vincent Bernat [Mon, 23 Nov 2015 07:35:33 +0000 (08:35 +0100)]
debian: express minimal version needed for libnl3
Wheezy comes with a too old version.
Vincent Bernat [Mon, 23 Nov 2015 07:33:05 +0000 (08:33 +0100)]
redhat: use system libnl3 when possible
Vincent Bernat [Mon, 23 Nov 2015 07:31:35 +0000 (08:31 +0100)]
redhat: use embedded libevent on older distributions
Vincent Bernat [Mon, 23 Nov 2015 07:24:45 +0000 (08:24 +0100)]
redhat: correctly handle SLES too
Vincent Bernat [Sun, 22 Nov 2015 17:53:40 +0000 (18:53 +0100)]
debian/redhat: update packaging
We prepare for release of 0.8.0. libnl3 will be embedded but we now use
libevent from the system.
Vincent Bernat [Sat, 14 Nov 2015 16:30:29 +0000 (17:30 +0100)]
debian: also requires libnl-route-3-dev as a dependency
Vincent Bernat [Sat, 14 Nov 2015 06:50:36 +0000 (07:50 +0100)]
build: allow an embedded subdir to be absent
This will break some stuff, but it was already the case when we were
using AC_CONFIG_SUBDIR.
Vincent Bernat [Tue, 20 Oct 2015 16:38:05 +0000 (18:38 +0200)]
event: check if timer is present before trying to activate it
A timer should always be present, but some previous error conditions may
make it absent. Don't just crash in this condition. See #135.
Vincent Bernat [Sat, 17 Oct 2015 17:30:39 +0000 (19:30 +0200)]
build: ignore untracked files in submodule for version
We can't update the .gitignore of a submodule and we don't want the
version to be "dirty" just for that.
Vincent Bernat [Wed, 7 Oct 2015 18:54:24 +0000 (20:54 +0200)]
Merge pull request #142 from matsimon/master
Tiny typo in lldpd's manpage
Mathieu Simon [Wed, 7 Oct 2015 16:23:20 +0000 (18:23 +0200)]
Tiny typo in lldpd's manpage
Vincent Bernat [Tue, 6 Oct 2015 05:55:46 +0000 (07:55 +0200)]
build: check runtime support of constructor/destructor
With some libc, we may have a compile-time support (through GCC), but
not a runtime support. For example, with uclibc, support for
constructors/destructors is optional. They can be enabled with
`CFLAGS=--uclibc-ctors` on some versions. On some others, they need to
be builtin by compiling uclibc with UCLIBC_CTOR_DTOR.
Unfortunately, cannot be tested when cross-compilation is in effect.
Vincent Bernat [Mon, 5 Oct 2015 13:47:59 +0000 (15:47 +0200)]
build: check for support for constructor/destructor function attributes
Vincent Bernat [Sun, 4 Oct 2015 06:58:53 +0000 (08:58 +0200)]
README: add a word about `--enable-oldies`
Vincent Bernat [Sun, 4 Oct 2015 06:52:12 +0000 (08:52 +0200)]
tests: add missing include for `read()`
Vincent Bernat [Sun, 4 Oct 2015 00:32:19 +0000 (02:32 +0200)]
tests: fix SNMP tests
Restore the `tohex()` function in `check_snmp.c`. Use a simpler version
in `decode.c`.
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.
Vincent Bernat [Sun, 4 Oct 2015 00:11:24 +0000 (02:11 +0200)]
lldp: fix small indentation issue
Vincent Bernat [Sun, 4 Oct 2015 00:03:57 +0000 (02:03 +0200)]
NEWS: add entry for last commit
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.
Vincent Bernat [Sat, 3 Oct 2015 23:28:30 +0000 (01:28 +0200)]
tests: add instructions on how to use afl for fuzzing
Vincent Bernat [Sat, 3 Oct 2015 23:21:45 +0000 (01:21 +0200)]
tests: add a simple program to test frame decoding
Vincent Bernat [Sat, 3 Oct 2015 23:11:03 +0000 (01:11 +0200)]
lldpd: remove outdated comment about custom TLV
Vincent Bernat [Fri, 25 Sep 2015 11:52:36 +0000 (13:52 +0200)]
debian: only enable systemd unit file on system recent enough
Vincent Bernat [Fri, 25 Sep 2015 09:38:52 +0000 (11:38 +0200)]
interfaces: remove spurious #ifdef directive
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.
Vincent Bernat [Thu, 24 Sep 2015 13:54:07 +0000 (15:54 +0200)]
Merge pull request #138 from commodo/copy-paste-fix
client: fix copy+paste for some vars
Alexandru Ardelean [Thu, 24 Sep 2015 13:40:40 +0000 (16:40 +0300)]
client: fix copy+paste for some vars
Only affects logging.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Vincent Bernat [Wed, 23 Sep 2015 21:24:05 +0000 (23:24 +0200)]
debian: on old Debian releases, enable "oldies"
Vincent Bernat [Wed, 23 Sep 2015 18:08:22 +0000 (20:08 +0200)]
doc: add a NEWS entry for latest commit
Vincent Bernat [Wed, 23 Sep 2015 18:07:08 +0000 (20:07 +0200)]
lldpd: add a warning if the kernel seems to be too old
Vincent Bernat [Wed, 23 Sep 2015 16:25:34 +0000 (18:25 +0200)]
redhat: on RHEL 6, enable oldies support
Vincent Bernat [Wed, 23 Sep 2015 16:05:07 +0000 (18:05 +0200)]
build: declare kernels before 2.6.39 "too old"
Unfortunately, netlink support for bond devices has been introduced in
2.6.33 (commit
88ead977109da926a03068e277869ea8fedd170d ). For bridge
devices, this is an addition of Linux 2.6.39 (commit
bb900b27a2f49b37bc38c08e656ea13048fee13b ).
Vincent Bernat [Wed, 23 Sep 2015 08:25:02 +0000 (10:25 +0200)]
cdp: fix log message spelling
Vincent Bernat [Sat, 19 Sep 2015 19:30:30 +0000 (21:30 +0200)]
redhat: for RHEL 7 and CentOS 7, install systemd unit file
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)
Vincent Bernat [Wed, 9 Sep 2015 15:15:51 +0000 (17:15 +0200)]
release: 0.7.17 released
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.
Vincent Bernat [Wed, 9 Sep 2015 14:58:26 +0000 (16:58 +0200)]
build: tell seccomp is experimental
I don't think many people are using it and the risk for lldpd to not
work is therefore increased.
Vincent Bernat [Sun, 30 Aug 2015 15:11:54 +0000 (17:11 +0200)]
apparmor: fix profile so that it works on Ubuntu 15.04
Vincent Bernat [Sun, 30 Aug 2015 14:41:27 +0000 (16:41 +0200)]
apparmor: provide an apparmor profile
Currently, lldpd has to be installed in /usr/sbin/lldpd. Will change
that later.
Vincent Bernat [Tue, 25 Aug 2015 12:20:39 +0000 (14:20 +0200)]
priv: no need to access bridge files unless "oldies"
However, bonding stuff is still needed because we get the permanence MAC
address this way.
Vincent Bernat [Sun, 23 Aug 2015 15:08:23 +0000 (17:08 +0200)]
lib: map_reverse_lookup needs to be always available
Vincent Bernat [Sun, 23 Aug 2015 14:01:48 +0000 (16:01 +0200)]
Ability to enable/disable RX/TX individually on each port
Vincent Bernat [Sun, 23 Aug 2015 13:28:58 +0000 (15:28 +0200)]
lldpcli: fix per-port occurrences of "conf lldp"
Some commands were documented as not accepting a per-port setting while
they accepted it (without any effect). On the other hand, some other
commands were accepting and used per-port setting while not
documented. Fix all that.
Vincent Bernat [Sat, 22 Aug 2015 21:27:14 +0000 (23:27 +0200)]
lldpd: ensure retransmit is triggered when a port goes up
Vincent Bernat [Sat, 22 Aug 2015 21:13:54 +0000 (23:13 +0200)]
lldpd: fix a memory leak in the way interfaces were cloned
Vincent Bernat [Sat, 22 Aug 2015 21:09:42 +0000 (23:09 +0200)]
interfaces: clean neighbors if an interface goes down
As we don't delete down interfaces anymore, we must at least clear
neighbors correctly.
Vincent Bernat [Sat, 22 Aug 2015 21:03:27 +0000 (23:03 +0200)]
interfaces: don't discard down interfaces
This is an easy way to keep the configuration associated to those
interfaces. However, we still need to discard any neighbors in this
case.
Vincent Bernat [Sat, 22 Aug 2015 14:39:13 +0000 (16:39 +0200)]
lib/atom: only allow custom TLV modification for local ports
Vincent Bernat [Sat, 22 Aug 2015 14:34:24 +0000 (16:34 +0200)]
Add a default local port as a template for any future local port.
This default local port can be modified through the library and any
future ports will use it as a template.
Vincent Bernat [Sat, 22 Aug 2015 08:45:46 +0000 (10:45 +0200)]
client: factor port modification in a dedicated function
Vincent Bernat [Sat, 22 Aug 2015 07:58:48 +0000 (09:58 +0200)]
marshal: add a macro to repair TQ lists
Vincent Bernat [Wed, 19 Aug 2015 16:40:18 +0000 (18:40 +0200)]
NEWS: add some entries for 0.7.17
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.
Vincent Bernat [Tue, 18 Aug 2015 08:58:15 +0000 (10:58 +0200)]
netlink: make error message more explicit
But there is some other reason behind it. This needs to be investigated
at some point.
Vincent Bernat [Tue, 18 Aug 2015 08:34:04 +0000 (10:34 +0200)]
snmp: make use of newer snmp_select_info2() function
When available, it allows to not hit the 1024 FD limit of
snmp_select_info().
Vincent Bernat [Mon, 17 Aug 2015 12:22:06 +0000 (14:22 +0200)]
interfaces: fix incomplete declaration of interfaces_cleanup
For BSD and Solaris, the declaration was incomplete.
Vincent Bernat [Mon, 17 Aug 2015 12:15:21 +0000 (14:15 +0200)]
build: ignore libnl documentation errors
Vincent Bernat [Mon, 17 Aug 2015 12:07:34 +0000 (14:07 +0200)]
build: fix test building with libnl dependency
Vincent Bernat [Mon, 17 Aug 2015 12:05:43 +0000 (14:05 +0200)]
build: better find system libnl3
Vincent Bernat [Mon, 17 Aug 2015 12:00:19 +0000 (14:00 +0200)]
build: don't limit dist tarball files to 99 characters
Otherwise, some files from libnl will be missing.
Vincent Bernat [Mon, 17 Aug 2015 11:44:16 +0000 (13:44 +0200)]
build: don't forget to ship libnl directory too
At least, on Linux. Therefore, dist tarballs should now be released on
Linux (otherwise, libnl won't be shipped).
Vincent Bernat [Mon, 17 Aug 2015 11:43:44 +0000 (13:43 +0200)]
build: ensure we can build libnl with -Wall -Werror
We need to silence out unused variables, in this case.
Vincent Bernat [Mon, 17 Aug 2015 10:42:07 +0000 (12:42 +0200)]
build: only test for libnl on Linux
Vincent Bernat [Mon, 17 Aug 2015 10:31:58 +0000 (12:31 +0200)]
travis: install libnl-3-dev
Even if it will not be used due to being too old.
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>
Vincent Bernat [Sun, 16 Aug 2015 23:19:52 +0000 (01:19 +0200)]
netlink: use libnl3 instead of custom netlink code
The main goal of this change is to implement a caching system for
netlink and avoiding the full scan done when a change was
triggered. Implementing a netlink cache is not as funny as it seems and
therefore, it seems just better to use libnl3.
Licensing issues are explained in README. People concerned with that
should just use dynamic linking. An embedded copy of libnl3 is also
provided, just like libevent.
Vincent Bernat [Sun, 16 Aug 2015 13:12:50 +0000 (15:12 +0200)]
build: add a marker at the end of third-party configure
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`.
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.
Vincent Bernat [Sun, 16 Aug 2015 11:57:00 +0000 (13:57 +0200)]
build: automatically reuse regular configure args for distcheck
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"...
Vincent Bernat [Sun, 16 Aug 2015 10:05:03 +0000 (12:05 +0200)]
build: only enable silent rules if they are not disabled
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.
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.
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.
Vincent Bernat [Tue, 11 Aug 2015 09:40:10 +0000 (11:40 +0200)]
build: propagate appropriate build flags in src/compat
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.
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.
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.
Vincent Bernat [Sat, 8 Aug 2015 18:14:57 +0000 (20:14 +0200)]
osx: synchronize a bit with official HomeBrew formula
Vincent Bernat [Sat, 8 Aug 2015 17:56:16 +0000 (19:56 +0200)]
README: incorrect instructions for OS X
A backslash was missing.
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.
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.
Vincent Bernat [Sat, 8 Aug 2015 16:24:40 +0000 (18:24 +0200)]
client: make lldpctl also accepts `-u` flag
Close: #129
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
Arthur Gautier [Sat, 8 Aug 2015 08:10:06 +0000 (08:10 +0000)]
Typo in README.md
Vincent Bernat [Fri, 7 Aug 2015 09:51:41 +0000 (11:51 +0200)]
debian: don't complain about too recent Standards-Version
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.
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).
Vincent Bernat [Fri, 7 Aug 2015 09:19:25 +0000 (11:19 +0200)]
travis: also test when oldies are enabled
Vincent Bernat [Fri, 7 Aug 2015 09:19:00 +0000 (11:19 +0200)]
travis: don't add too many alternatives in configure
Vincent Bernat [Fri, 7 Aug 2015 09:13:19 +0000 (11:13 +0200)]
release: prepare 0.7.16
Vincent Bernat [Fri, 7 Aug 2015 09:02:09 +0000 (11:02 +0200)]
lib: accept "language" as a valid MED location type
Closes #127
Vincent Bernat [Mon, 27 Jul 2015 06:55:39 +0000 (08:55 +0200)]
lldpd: add version string to "starting" log entry