]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
13 years agolldpd: do not stay stuck in the receive loop 0.5.7
Vincent Bernat [Wed, 29 Feb 2012 22:14:41 +0000 (23:14 +0100)] 
lldpd: do not stay stuck in the receive loop

On some corner case conditions, we can stay stuck in the receive loop
because we did not send packets for more than 30 seconds. In this
case, we keep reset the timeout to 30 seconds and we cannot exit the
loop (since the first condition to exit the loop is to have reached
the timeout).

Therefore, we invert the condition. If we have stay too long in the
loop, just exit. We know for sure that we will hit lldpd_send_all()
soon and get back to a sane state.

Also, in receive only state, we are also stuck in the loop. This
forbids us to update data about local chassis and interfaces. We also
fix this.

13 years agoAdd previous change to changelog.
Vincent Bernat [Sun, 22 Jan 2012 11:20:02 +0000 (12:20 +0100)] 
Add previous change to changelog.

13 years agoconfigure: fix an issue with netsnmp_enable_subagent detection
Vincent Bernat [Sun, 22 Jan 2012 11:08:22 +0000 (12:08 +0100)] 
configure: fix an issue with netsnmp_enable_subagent detection

13 years agoNext release for this branch is 0.5.6. 0.5.6
Vincent Bernat [Mon, 16 Jan 2012 15:16:39 +0000 (16:16 +0100)] 
Next release for this branch is 0.5.6.

13 years agoContinuation of the previous patch.
Vincent Bernat [Fri, 13 Jan 2012 06:27:03 +0000 (07:27 +0100)] 
Continuation of the previous patch.

13 years agoframe.h uses very generic memeber names that resusts in conflicts with other defines
Shuah Khan [Thu, 12 Jan 2012 22:54:12 +0000 (15:54 -0700)] 
frame.h uses very generic memeber names that resusts in conflicts with other defines

13 years agosnmp: turn the "try next OID" code block into a macro to avoid errors
Vincent Bernat [Mon, 2 Jan 2012 08:06:48 +0000 (09:06 +0100)] 
snmp: turn the "try next OID" code block into a macro to avoid errors

13 years agocore: optimize BPF filter
Vincent Bernat [Mon, 2 Jan 2012 07:27:43 +0000 (08:27 +0100)] 
core: optimize BPF filter

When monitoring high trafic interfaces, the BPF filter can become
quite important. We optimize it a bit by first checking if the
ethernet address is a multicast one. If it is not, we only have to
check for EDP.

13 years agoconfigure: check more SNMP stuff.
Vincent Bernat [Sat, 31 Dec 2011 09:52:03 +0000 (10:52 +0100)] 
configure: check more SNMP stuff.

First, we check that netsnmp_enable_subagent() exists. Otherwise, this
means that Net-SNMP has been compiled without this feature.

Second, we check if <net-snmp/agent/util_funcs.h> header is
usable. There was incomplete installation of files required by this
header with NetSNMP 5.4 and situation got worse with NetSNMP 5.7. If
the header is not usable, we fallback to define the two functions that
we need.

13 years agoWhitelisted driver is not a very informative information. Remove it.
Vincent Bernat [Thu, 29 Dec 2011 06:37:16 +0000 (07:37 +0100)] 
Whitelisted driver is not a very informative information. Remove it.

13 years agoAdd a whitelist for some drivers (currently: dsa and veth)
Vincent Bernat [Wed, 28 Dec 2011 09:55:08 +0000 (10:55 +0100)] 
Add a whitelist for some drivers (currently: dsa and veth)

13 years agoDon't send MFS equal to 0.
Vincent Bernat [Tue, 27 Dec 2011 21:03:42 +0000 (22:03 +0100)] 
Don't send MFS equal to 0.

13 years agocdp: send native VLAN only with CDPv2
Vincent Bernat [Sat, 17 Dec 2011 16:14:42 +0000 (17:14 +0100)] 
cdp: send native VLAN only with CDPv2

13 years agocdp: send native VLAN TLV
Vincent Bernat [Sat, 17 Dec 2011 16:13:42 +0000 (17:13 +0100)] 
cdp: send native VLAN TLV

13 years agocdp: allow reception of native vlan
Vincent Bernat [Sat, 17 Dec 2011 16:09:43 +0000 (17:09 +0100)] 
cdp: allow reception of native vlan

13 years ago/trabmission/tranmission/
Christopher Johnston [Mon, 5 Dec 2011 15:19:33 +0000 (07:19 -0800)] 
/trabmission/tranmission/

13 years agoExport TZ=/etc/localtime to fix timestamps.
Vincent Bernat [Fri, 2 Dec 2011 06:35:02 +0000 (07:35 +0100)] 
Export TZ=/etc/localtime to fix timestamps.

While chrooted, syslog timestamps does not respect the configured
timezone despite the copy of /etc/localtime inside the chroot. Setting
TZ variable seems to fix this problem.

Closes: #13.
13 years agoSpelling corrections
Vincent Bernat [Wed, 16 Nov 2011 21:41:17 +0000 (22:41 +0100)] 
Spelling corrections

13 years agoFix a missing semi colon. 0.5.5
Vincent Bernat [Sun, 6 Nov 2011 09:24:28 +0000 (10:24 +0100)] 
Fix a missing semi colon.

13 years agoPrepare 0.5.5 release.
Vincent Bernat [Sun, 6 Nov 2011 09:21:31 +0000 (10:21 +0100)] 
Prepare 0.5.5 release.

13 years agoExtend whitelist with possibility to blacklist.
Vincent Bernat [Thu, 3 Nov 2011 21:44:54 +0000 (22:44 +0100)] 
Extend whitelist with possibility to blacklist.

It is possible to specify patterns like "*,!eth1" to blacklist "eth1"
or something like "eth*,wlan*,!wlan*master" to listen to all eth
interfaces and wlan interfaces with the exception of interfaces like
"wlan0master".

13 years agoFix a segfault when neither /etc/os-release not lsb_release is available.
Vincent Bernat [Wed, 2 Nov 2011 14:25:09 +0000 (15:25 +0100)] 
Fix a segfault when neither /etc/os-release not lsb_release is available.

Closes #11.

13 years agoDon't pack struct hmsg since we are not able to do unaligned access on some archs.
Vincent Bernat [Wed, 26 Oct 2011 13:56:07 +0000 (15:56 +0200)] 
Don't pack struct hmsg since we are not able to do unaligned access on some archs.

Packing was used because data was cast as a pointer and therefore,
header was padded excessively. Since we don't use it as a pointer, we
cast it as an incomplete array of chars. We don't need its size.

13 years agodmi: only enable DMI for x86 platforms
Vincent Bernat [Thu, 20 Oct 2011 06:26:35 +0000 (08:26 +0200)] 
dmi: only enable DMI for x86 platforms

13 years agolldpd: Only grab DMI information once.
Vincent Bernat [Wed, 19 Oct 2011 21:49:00 +0000 (23:49 +0200)] 
lldpd: Only grab DMI information once.

13 years agosnmp: use a 16-bit checksum, not a 15-bit one.
Vincent Bernat [Mon, 17 Oct 2011 05:48:17 +0000 (07:48 +0200)] 
snmp: use a 16-bit checksum, not a 15-bit one.

We could use a 31-bit checksum but we would have to write it. We
prefer to minimize the code.

13 years agosnmp: Dot1 PI support, contributed by Shuah Khan
Vincent Bernat [Mon, 17 Oct 2011 05:45:28 +0000 (07:45 +0200)] 
snmp: Dot1 PI support, contributed by Shuah Khan

13 years agoSNMP: Dot1 PPVID, PPVLAN and VLANID support, contributed by Shuah Khan
Vincent Bernat [Sun, 16 Oct 2011 08:17:57 +0000 (10:17 +0200)] 
SNMP: Dot1 PPVID, PPVLAN and VLANID support, contributed by Shuah Khan

13 years ago[check] Add length when encoding Dot1 PI TLV
Vincent Bernat [Thu, 22 Sep 2011 20:39:06 +0000 (22:39 +0200)] 
[check] Add length when encoding Dot1 PI TLV

13 years agoIEEE 802.1 2005 TLV Unit tests
Shuah Khan [Thu, 22 Sep 2011 18:09:11 +0000 (12:09 -0600)] 
IEEE 802.1 2005 TLV Unit tests

13 years agoAdd support of PPVID and PI in changelog
Vincent Bernat [Thu, 22 Sep 2011 20:19:15 +0000 (22:19 +0200)] 
Add support of PPVID and PI in changelog

13 years ago[lldpctl] Fix PVID value when displaying VLANs.
Vincent Bernat [Thu, 22 Sep 2011 20:17:16 +0000 (22:17 +0200)] 
[lldpctl] Fix PVID value when displaying VLANs.

Once the PVID of a port was found, subsequent VLAN were considered as PVID.

13 years agoSome fixes for PPVID and PI.
Vincent Bernat [Thu, 22 Sep 2011 20:13:38 +0000 (22:13 +0200)] 
Some fixes for PPVID and PI.

PI are bytes, not a string. Grab bytes when reading and display using
hexadecimal. Rework a bit how PPVID are displayed.

13 years ago[configure] Fix a typo in help message
Vincent Bernat [Thu, 22 Sep 2011 20:13:12 +0000 (22:13 +0200)] 
[configure] Fix a typo in help message

13 years agoIEEE 802.1 2005 TLV enhancement - PPVID and PI added
Shuah Khan [Wed, 21 Sep 2011 23:07:17 +0000 (17:07 -0600)] 
IEEE 802.1 2005 TLV enhancement - PPVID and PI added

13 years agoFix - lldpd netsnmp sub-agent segfaults when null write_method is passed in
Shuah Khan [Tue, 20 Sep 2011 19:20:11 +0000 (13:20 -0600)] 
Fix - lldpd netsnmp sub-agent segfaults when null write_method is passed in

13 years agoFix key/value output was incorrect when an interface name contains a dot.
Vincent Bernat [Wed, 7 Sep 2011 09:07:29 +0000 (11:07 +0200)] 
Fix key/value output was incorrect when an interface name contains a dot.

When a dot was present in an interface name, the output of `lldpctl -f
keyvalue` was incorrect with something like this:

    lldp.vif2.vif4.vif5.vif6.vif7.0.via=LLDP
    lldp.vif2.vif4.vif5.vif6.vif7.0.rid=2

We fix this by using `\1` as a separator instead of `.` when building
the key. `\1` is replaced by `.` before printing.

When parsing the output, the interface name should be determined from
the first time it is used in a line like `lldp.vif2.0.via=LLDP`.

13 years agocdp: Add CDP_CAP_HOST to outgoing CDP packets
Vincent Bernat [Wed, 17 Aug 2011 06:53:54 +0000 (08:53 +0200)] 
cdp: Add CDP_CAP_HOST to outgoing CDP packets

13 years agolldpd: update software version to match man page
Dean Hamstead [Wed, 17 Aug 2011 02:12:16 +0000 (12:12 +1000)] 
lldpd: update software version to match man page

13 years agolldp: ensure that boolean values are really boolean
Vincent Bernat [Sat, 13 Aug 2011 10:47:39 +0000 (12:47 +0200)] 
lldp: ensure that boolean values are really boolean

Some of p_macphy.autoneg_*, p_power.* should be 0 or 1, even if they
are mostly used in conditions.

13 years agoifaddrs: remove unused variable
Vincent Bernat [Sat, 13 Aug 2011 10:47:03 +0000 (12:47 +0200)] 
ifaddrs: remove unused variable

13 years agoRelease 0.5.4. 0.5.4
Vincent Bernat [Sat, 2 Jul 2011 18:09:58 +0000 (20:09 +0200)] 
Release 0.5.4.

13 years agoAdd a way to specify which interfaces lldpd should listen to.
Vincent Bernat [Sat, 2 Jul 2011 18:05:21 +0000 (20:05 +0200)] 
Add a way to specify which interfaces lldpd should listen to.

14 years agoREADME is now README.md. Update Makefile.am.
Vincent Bernat [Sat, 28 May 2011 14:54:36 +0000 (16:54 +0200)] 
README is now README.md. Update Makefile.am.

14 years agoRemove an unused variable.
Vincent Bernat [Sat, 28 May 2011 14:52:05 +0000 (16:52 +0200)] 
Remove an unused variable.

14 years agoAdd changelog entry for use of /etc/os-release
Vincent Bernat [Sat, 28 May 2011 14:46:47 +0000 (16:46 +0200)] 
Add changelog entry for use of /etc/os-release

14 years agoAdd support to read /etc/os-release for system information.
Michael Tremer [Sat, 28 May 2011 12:29:33 +0000 (14:29 +0200)] 
Add support to read /etc/os-release for system information.

/etc/os-release is introduced with systemd which will be in all the
major distributions, soon. For backwards-compatibility, the lsb_release
method is still there and will be used if no /etc/os-release is available.

14 years agoUpdate ISC license wording.
Vincent Bernat [Fri, 20 May 2011 15:18:24 +0000 (17:18 +0200)] 
Update ISC license wording.

See: http://en.wikipedia.org/wiki/ISC_license

14 years agoTranslate README into its markdown equivalent
Vincent Bernat [Sat, 30 Apr 2011 08:25:22 +0000 (10:25 +0200)] 
Translate README into its markdown equivalent

14 years agoSuppress a new warning from GCC 4.5 (unused value).
Vincent Bernat [Fri, 29 Apr 2011 16:59:59 +0000 (18:59 +0200)] 
Suppress a new warning from GCC 4.5 (unused value).

14 years agoMove 802.3af/802.3at changelog entry in the appropriate section.
Vincent Bernat [Wed, 27 Apr 2011 05:44:43 +0000 (07:44 +0200)] 
Move 802.3af/802.3at changelog entry in the appropriate section.

14 years agoAdd support for 802.3at.
Vincent Bernat [Sat, 5 Jun 2010 17:51:55 +0000 (19:51 +0200)] 
Add support for 802.3at.

This includes send and receive support as well as SNMP support.
802.3at seems to not define OID that should be used as well as the
mapping for bit values. Therefore, the implementation is a wild guess
of what is consistent with 802.1ab.

14 years agoAdd changelog entries about 802.3af/Dot3 POE-MDI support.
Vincent Bernat [Sat, 8 May 2010 17:53:37 +0000 (19:53 +0200)] 
Add changelog entries about 802.3af/Dot3 POE-MDI support.

14 years agoAllow to set Dot3 POE-MDI TLV from lldpctl.
Vincent Bernat [Sat, 8 May 2010 17:52:53 +0000 (19:52 +0200)] 
Allow to set Dot3 POE-MDI TLV from lldpctl.

Also add SNMP support for lldpXdot3LocPowerTable.

14 years agoAdd initial Dot3/802.3at support
Vincent Bernat [Sat, 8 May 2010 15:25:35 +0000 (17:25 +0200)] 
Add initial Dot3/802.3at support

This includes ability to receive  and store Dot3 MDI power TLV, to
display them with lldpctl and to export them through SNMP agent. There
is no support for 802.3af yet.

14 years agoMove Dot3 MAC/Phy stuff into a separate structure.
Vincent Bernat [Sat, 8 May 2010 14:59:06 +0000 (16:59 +0200)] 
Move Dot3 MAC/Phy stuff into a separate structure.

14 years agoAllow root to change configuration of lldpd when lldpctl has suid set
Vincent Bernat [Sat, 5 Mar 2011 06:32:24 +0000 (07:32 +0100)] 
Allow root to change configuration of lldpd when lldpctl has suid set

The previous check made lldpctl fails even when the user was root.

14 years agoPrepare for release (0.5.2). 0.5.2
Vincent Bernat [Sat, 9 Oct 2010 14:57:45 +0000 (16:57 +0200)] 
Prepare for release (0.5.2).

14 years agoAdd AM_MAINTAINER_MODE macro to configure.ac.
Vincent Bernat [Sun, 19 Sep 2010 13:18:03 +0000 (15:18 +0200)] 
Add AM_MAINTAINER_MODE macro to configure.ac.

14 years agoAdd autogen.sh from buildconf.
Vincent Bernat [Thu, 16 Sep 2010 14:46:40 +0000 (16:46 +0200)] 
Add autogen.sh from buildconf.

See http://buildconf.brlcad.org/

14 years agoAdd receive-only mode switch "-r" to usage()
Vincent Bernat [Thu, 26 Aug 2010 14:34:01 +0000 (16:34 +0200)] 
Add receive-only mode switch "-r" to usage()

14 years agoAdd a receive-only mode with "-r" switch.
Vincent Bernat [Thu, 26 Aug 2010 13:35:32 +0000 (15:35 +0200)] 
Add a receive-only mode with "-r" switch.

14 years agoHide unwanted remote ports just after receiving information about them.
Vincent Bernat [Tue, 24 Aug 2010 20:22:04 +0000 (22:22 +0200)] 
Hide unwanted remote ports just after receiving information about them.

14 years agoMore flexible smart mode and new default.
Vincent Bernat [Tue, 24 Aug 2010 17:39:06 +0000 (19:39 +0200)] 
More flexible smart mode and new default.

Allow any combination of filtering, one neighbor and one protocol,
both for incoming frames and outgoing frames.

14 years agoFix AX_CFLAGS_GCC_OPTION to make it work with autoconf 2.67.
Vincent Bernat [Tue, 24 Aug 2010 17:38:21 +0000 (19:38 +0200)] 
Fix AX_CFLAGS_GCC_OPTION to make it work with autoconf 2.67.

14 years agoPatch to keep wifi and bridge cap when updating chassis.
Vincent Bernat [Wed, 21 Jul 2010 06:38:38 +0000 (08:38 +0200)] 
Patch to keep wifi and bridge cap when updating chassis.

Thanks to Alex Unigovsky. This fixes #45.

14 years agoHarden lldpd with the use of RELRO and NOW linker options.
Vincent Bernat [Wed, 7 Jul 2010 13:34:17 +0000 (15:34 +0200)] 
Harden lldpd with the use of RELRO and NOW linker options.

See:
 http://www.gentoo.org/proj/en/hardened/hardened-toolchain.xml

14 years agoReenable SNMP support on Fedora 13.
Vincent Bernat [Tue, 22 Jun 2010 11:49:04 +0000 (13:49 +0200)] 
Reenable SNMP support on Fedora 13.

The Net-SNMP installation has been fixed in bug #603243:
 https://bugzilla.redhat.com/show_bug.cgi?id=603243

15 years ago[lldpctl] Fix a spelling error
Vincent Bernat [Fri, 18 Jun 2010 18:01:01 +0000 (20:01 +0200)] 
[lldpctl] Fix a spelling error

15 years agoSync Debian packaging with official packaging.
Vincent Bernat [Sat, 12 Jun 2010 09:34:25 +0000 (11:34 +0200)] 
Sync Debian packaging with official packaging.

The sync is not complete (we want to stay compatible with older
releases of Debian).

15 years agoProvide an initscript targetted at SuSE.
Vincent Bernat [Sat, 12 Jun 2010 07:29:20 +0000 (09:29 +0200)] 
Provide an initscript targetted at SuSE.

SysV init scripts are too different between SuSE and
Fedora/RHEL/CentOS to be the same.

Use built-in %_initrddir macro in lldpd.sec.

15 years agoAvoid linking lldpd to libxml2 and lldpctl to libnetsnmp.
Vincent Bernat [Sat, 12 Jun 2010 07:02:25 +0000 (09:02 +0200)] 
Avoid linking lldpd to libxml2 and lldpctl to libnetsnmp.

AC_CHECK_LIB default action is to add the check library to LIBS. We
don't want this.

15 years agonet-snmp/agent/utils_func.h header is useless in agent_priv.c
Vincent Bernat [Sat, 12 Jun 2010 01:14:26 +0000 (03:14 +0200)] 
net-snmp/agent/utils_func.h header is useless in agent_priv.c

15 years agoFix compilation with RHEL 5.
Vincent Bernat [Sat, 12 Jun 2010 00:50:04 +0000 (02:50 +0200)] 
Fix compilation with RHEL 5.

On RHEL 5, we need to link to libsensors...

15 years agoFix .spec for SuSE.
Vincent Bernat [Fri, 11 Jun 2010 22:56:06 +0000 (00:56 +0200)] 
Fix .spec for SuSE.

Packages can now be built on OpenSuSE and SLES. It has not been really
tested. Notably, maybe the init script is totally inappropriate...

15 years agoFix compilation on RHEL and Fedora 13.
Vincent Bernat [Fri, 11 Jun 2010 16:40:18 +0000 (18:40 +0200)] 
Fix compilation on RHEL and Fedora 13.

On those systems, we seem to have problems with Net-SNMP. We take an
easy path by disabling Net-SNMP support by default.

15 years agoBe compatible with RHEL4.
Vincent Bernat [Fri, 11 Jun 2010 15:49:59 +0000 (17:49 +0200)] 
Be compatible with RHEL4.

RHEL4 does not define bcond_without and with macros. Define them.

15 years agoPrepare for release. 0.5.1
Vincent Bernat [Thu, 10 Jun 2010 15:09:03 +0000 (17:09 +0200)] 
Prepare for release.

15 years agoAdd smart mode support.
Vincent Bernat [Wed, 9 Jun 2010 16:13:43 +0000 (18:13 +0200)] 
Add smart mode support.

This features was removed in previous versions to allow to have
several neighbors on one port. It now uses a different approach. Each
port can still have several neighbors but some of them will be hidden.

15 years agoRevert "configure: try to use -Wl,--as-needed if possible"
Vincent Bernat [Thu, 10 Jun 2010 07:37:51 +0000 (09:37 +0200)] 
Revert "configure: try to use -Wl,--as-needed if possible"

This reverts commit 01b911bccfa29435929665c7df827f70de36ccfa. On some
systems, netsnmpagent is not linked to all required libs.

undefined symbol: netsnmpUDPDomain(/usr/lib/libnetsnmpagent.so.9)
undefined symbol: vacm_parse_config_group(/usr/lib/libnetsnmpagent.so.9)
undefined symbol: netsnmp_TCPIPv6Domain(/usr/lib/libnetsnmpagent.so.9)
undefined symbol: snmp_errno(/usr/lib/libnetsnmpagent.so.9)
[...]

Therefore, we really need to really need to link to some libraries
present in net-snmp-config.

15 years agoAdd prototype for lldpd_get_lsb_release().
Vincent Bernat [Wed, 9 Jun 2010 14:17:20 +0000 (16:17 +0200)] 
Add prototype for lldpd_get_lsb_release().

15 years agoGroup together related configuration information.
Vincent Bernat [Wed, 9 Jun 2010 12:59:22 +0000 (14:59 +0200)] 
Group together related configuration information.

In "struct lldpd", system description configuration was scattered into
the structure.

15 years agoIf available, use the output of lsb_release for system description.
Vincent Bernat [Wed, 9 Jun 2010 11:18:17 +0000 (13:18 +0200)] 
If available, use the output of lsb_release for system description.

15 years agoDon't check CDP checksums.
Vincent Bernat [Tue, 8 Jun 2010 16:45:52 +0000 (18:45 +0200)] 
Don't check CDP checksums.

Some VLAN encapsulated CDP frames seem to have a checksum difficult to
verify. We give up on checking correctly CDP checksums. It is turned
into a dead code for future reference.

15 years agoListen on VLAN using an appropriate BPF filter and VLAN decapsulation.
Vincent Bernat [Tue, 8 Jun 2010 16:39:18 +0000 (18:39 +0200)] 
Listen on VLAN using an appropriate BPF filter and VLAN decapsulation.

Three cases may happen:
 - You have a non VLAN accelerated network card.
   The BPF filter will catch the frames in the VLAN and the frame will
   be decapsulated.
 - You have a VLAN accelerated network card and a kernel < 2.6.27.
   lldpd won't see any frame encapsulated into a VLAN.
 - You have a VLAN accelerated network card and a kernel >= 2.6.27.
   lldpd will see the frames encapsulated into a VLAN as untagged
   frames and won't need to decapsulate them.

15 years agoRemove "listen on VLAN" feature.
Vincent Bernat [Tue, 8 Jun 2010 15:49:33 +0000 (17:49 +0200)] 
Remove "listen on VLAN" feature.

This feature was intrusive and not very well tested. We will replace
it with less code using the fact that a recent kernel is able to
listen on all VLAN is asked to.

15 years agoconfigure: try to use -Wl,--as-needed if possible
Vincent Bernat [Thu, 20 May 2010 22:24:44 +0000 (00:24 +0200)] 
configure: try to use -Wl,--as-needed if possible

This may be useful if net-snmp-config pulls a lot of dependencies
which are not really needed (like libperl, libpthread, libcrypto).

15 years agolldpd.spec: requires openssl since it is required by net-snmp
Vincent Bernat [Thu, 20 May 2010 21:49:06 +0000 (23:49 +0200)] 
lldpd.spec: requires openssl since it is required by net-snmp

Thanks to Lamont Granquist for the fix.

15 years agoMake AM_SILENT_RULES optional.
Vincent Bernat [Thu, 20 May 2010 06:37:53 +0000 (08:37 +0200)] 
Make AM_SILENT_RULES optional.

15 years agoFix additional alignment issues for ARM platform.
Vincent Bernat [Wed, 12 May 2010 18:06:02 +0000 (20:06 +0200)] 
Fix additional alignment issues for ARM platform.

This solves the following GCC warnings:

interfaces.c: In function ‘iface_minimal_checks’:
interfaces.c:421: warning: cast increases required alignment of target type [-Wcast-align]
interfaces.c: In function ‘lldpd_ifh_eth’:
interfaces.c:732: warning: cast increases required alignment of target type [-Wcast-align]
interfaces.c: In function ‘lldpd_ifh_mgmt’:
interfaces.c:1127: warning: cast increases required alignment of target type [-Wcast-align]

15 years agoFix an unaligned access when chassis ID is an IP address.
Vincent Bernat [Wed, 12 May 2010 09:57:11 +0000 (11:57 +0200)] 
Fix an unaligned access when chassis ID is an IP address.

15 years agoFix AC_CHECK_DECLS macro in configure.ac
Vincent Bernat [Wed, 12 May 2010 09:42:20 +0000 (11:42 +0200)] 
Fix AC_CHECK_DECLS macro in configure.ac

This macro does not behave like AC_CHECK_FUNCS whose content is copied
in a shell for loop. Therefore, extra spaces may be turned into
underscores. We keep multiple lines but we remove backslashes and
extra spaces.

15 years agoDon't try to guess FD_SETSIZE correct value when cross-compiling.
Vincent Bernat [Tue, 11 May 2010 14:15:23 +0000 (16:15 +0200)] 
Don't try to guess FD_SETSIZE correct value when cross-compiling.

15 years agoRevert "Blacklist VMWare interfaces (as per ticket #40)."
Vincent Bernat [Mon, 3 May 2010 13:27:15 +0000 (15:27 +0200)] 
Revert "Blacklist VMWare interfaces (as per ticket #40)."

It seems that vnetX interfaces are also used by other virtualization
solutions. From now on, we rely only on the queue len of the interface
and not on the name.

This reverts commit 91eb6d5df80933d089bda9543b2dbf3d97d462e1.

15 years agoBlacklist VMWare interfaces (as per ticket #40).
Vincent Bernat [Sun, 25 Apr 2010 10:26:17 +0000 (12:26 +0200)] 
Blacklist VMWare interfaces (as per ticket #40).

15 years agoIgnore interfaces with no queue.
Vincent Bernat [Sun, 11 Apr 2010 12:53:32 +0000 (14:53 +0200)] 
Ignore interfaces with no queue.

This filters out vnet* interfaces and some others. It seems that
physical (real or virtual) interfaces always have a queue. We might
also check qdisc. If "noop", this means that the interface is a
blackhole and should be ignored. However, we wait for an actual
interface to exhibit a behaviour where such a detection is needed.

15 years agoTypo in usage string of lldpd
Vincent Bernat [Sun, 25 Apr 2010 09:46:59 +0000 (11:46 +0200)] 
Typo in usage string of lldpd

15 years agoAdd an entry to the manual page for -S option.
Vincent Bernat [Fri, 23 Apr 2010 22:01:01 +0000 (00:01 +0200)] 
Add an entry to the manual page for -S option.

15 years agoAdd -S <system_description> override.
Stig Thormodsrud [Fri, 23 Apr 2010 01:32:53 +0000 (18:32 -0700)] 
Add -S <system_description> override.

vyatta@vDUT:~$ show lldp neighbors detail
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface:    eth0, via: LLDP, RID: 14, Time: 0 day, 00:02:03
  Chassis:
    ChassisID:    mac 00:0c:29:8c:53:7c
    SysName:      R1
    SysDescr:     Vyatta 3500 series running on VSE6.0
    Capability:   Bridge, off
    Capability:   Router, on
    Capability:   Wlan, off
  Port:
    PortID:       ifname eth1
    PortDescr:    vmnet1
    PMD autoneg:  supported: yes, enabled: yes
      Adv:          10Base-T, HD: yes, FD: yes
      Adv:          100Base-T, HD: yes, FD: yes
      Adv:          1000Base-T, HD: no, FD: yes
      MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex
mode
  VLAN:         101 eth1.101

15 years agoAdd a new output for lldpctl: keyvalue.
Vincent Bernat [Sun, 11 Apr 2010 08:14:12 +0000 (10:14 +0200)] 
Add a new output for lldpctl: keyvalue.

This output allows is easily parseable through a shell script (sed,
grep, awk). There is still room for improvement on how to handle
attributes.