]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
15 years agoPrepare 0.4.2 release branch-0.4 0.4.2
Vincent Bernat [Wed, 10 Mar 2010 21:29:37 +0000 (22:29 +0100)] 
Prepare 0.4.2 release

15 years agoUse chassis ID when sending EDP packets.
Vincent Bernat [Sun, 24 May 2009 19:05:04 +0000 (21:05 +0200)] 
Use chassis ID when sending EDP packets.

15 years agoBridge ioctls cannot be used with a 32bit userland on a 64bit kernel.
Vincent Bernat [Wed, 2 Sep 2009 12:20:56 +0000 (14:20 +0200)] 
Bridge ioctls cannot be used with a 32bit userland on a 64bit kernel.

Don't output any warning when ioctl fails.

15 years agoEnsure that umask is set at a sensible value before building the chroot.
Vincent [Sat, 27 Feb 2010 08:57:48 +0000 (09:57 +0100)] 
Ensure that umask is set at a sensible value before building the chroot.

Since the unprivileged process needs to be able to read /etc/localtime
in the chroot, we ensure that the umask is set correctly for this.

15 years agoFor Redhat, adapt init.d script to initialize the chroot.
Vincent Bernat [Wed, 10 Mar 2010 21:20:48 +0000 (22:20 +0100)] 
For Redhat, adapt init.d script to initialize the chroot.

The chroot is an empty directory containing a copy of /etc/localtime
to enable the use of the correct timestamp when logging for the
process trapped in the chroot.

15 years agoFor Debian init.d, build the chroot before starting the daemon.
Vincent Bernat [Sat, 27 Feb 2010 08:48:10 +0000 (09:48 +0100)] 
For Debian init.d, build the chroot before starting the daemon.

The chroot is an empty directory with a copy of /etc/localtime. This
file ensures that we are able to write logs using the correct time.

15 years agoUpdate changelog for future 0.4.2 version.
Vincent Bernat [Wed, 18 Nov 2009 06:27:13 +0000 (07:27 +0100)] 
Update changelog for future 0.4.2 version.

15 years agoDon't free statically allocated port.
Vincent Bernat [Wed, 18 Nov 2009 06:20:35 +0000 (07:20 +0100)] 
Don't free statically allocated port.

This is a backport of [4e624dc2f10a821221a4497f564371d12b229aa2]. This
fixes ticket #26 in 0.4.x.

15 years agoAlso ship CHANGELOG file 0.4.1
Vincent Bernat [Wed, 30 Sep 2009 12:30:30 +0000 (14:30 +0200)] 
Also ship CHANGELOG file

15 years agoUpdate changelog for 0.4.1.
Vincent Bernat [Wed, 30 Sep 2009 12:24:22 +0000 (14:24 +0200)] 
Update changelog for 0.4.1.

15 years agoPrepare 0.4.1 release.
Vincent Bernat [Wed, 30 Sep 2009 12:19:15 +0000 (14:19 +0200)] 
Prepare 0.4.1 release.

15 years agoInclude manual pages into distribution.
Vincent Bernat [Thu, 24 Sep 2009 09:28:24 +0000 (11:28 +0200)] 
Include manual pages into distribution.

By default, manual pages are not included in "make dist". We add them
by adding them in EXTRA_DIST. See:
 http://gnu.huihoo.org/automake-1.4/html_node/automake_50.html

15 years agoAdd missing argument in some call to LLOG_INFO in lldp.c.
Vincent Bernat [Mon, 17 Aug 2009 17:46:28 +0000 (19:46 +0200)] 
Add missing argument in some call to LLOG_INFO in lldp.c.

This fixes #17. Also add __attribute__ to log_* functions to let gcc
automatically check for this.

15 years agoFix bug in CDP packet generation: CDP version was always 1.
Vincent Bernat [Tue, 7 Jul 2009 09:42:35 +0000 (11:42 +0200)] 
Fix bug in CDP packet generation: CDP version was always 1.

"(a && b) || c" gives 0 or 1, not b or c. Replace with a?b:c.

15 years agoFix EDP vlan handling when there is no VLAN
Vincent Bernat [Sun, 24 May 2009 18:37:30 +0000 (20:37 +0200)] 
Fix EDP vlan handling when there is no VLAN

15 years agoFix the case where last change < start time.
Vincent Bernat [Thu, 21 May 2009 08:50:40 +0000 (10:50 +0200)] 
Fix the case where last change < start time.
This case can happen if the master agent is restarted: lldpd last
change will be before the start of the master agent.

16 years agoUpdate version in configure.ac 0.4.0
Vincent Bernat [Tue, 19 May 2009 12:42:45 +0000 (14:42 +0200)] 
Update version in configure.ac

16 years agoIf net-snmp/agent/struct.h does not exist, provide an empty one.
Vincent Bernat [Tue, 19 May 2009 12:32:28 +0000 (14:32 +0200)] 
If net-snmp/agent/struct.h does not exist, provide an empty one.

16 years agoAdd init script for RPM
Vincent Bernat [Tue, 19 May 2009 11:03:55 +0000 (13:03 +0200)] 
Add init script for RPM

16 years agoEnhance .spec.
Vincent Bernat [Tue, 19 May 2009 10:06:58 +0000 (12:06 +0200)] 
Enhance .spec.
Enable SNMP support when building RPM.
Create lldpd user/group.

16 years agoFix URL and description to match Debian package.
Vincent Bernat [Mon, 18 May 2009 16:12:41 +0000 (18:12 +0200)] 
Fix URL and description to match Debian package.

16 years agolldpd.spec for RPM package, contributed by Dean Hamstead.
Vincent Bernat [Mon, 18 May 2009 16:12:13 +0000 (18:12 +0200)] 
lldpd.spec for RPM package, contributed by Dean Hamstead.

16 years agoAlso check for VLAN on bridges.
Vincent Bernat [Thu, 14 May 2009 15:56:59 +0000 (17:56 +0200)] 
Also check for VLAN on bridges.

16 years agoSome virtual ethernet interfaces do not have IFF_MULTICAST flag. We
Vincent Bernat [Tue, 17 Mar 2009 14:01:40 +0000 (15:01 +0100)] 
Some virtual ethernet interfaces do not have IFF_MULTICAST flag. We
use them if they have at least the IFF_BROADCAST flag. This is useful
for Xen Dom0 to get LLDP information from DomU.

16 years agoFix a parsing error for link aggregation TLV in LLDP
Vincent Bernat [Tue, 10 Mar 2009 18:57:18 +0000 (19:57 +0100)] 
Fix a parsing error for link aggregation TLV in LLDP

16 years agoAdd missing frame.c
Vincent Bernat [Mon, 9 Mar 2009 09:33:50 +0000 (10:33 +0100)] 
Add missing frame.c

16 years agoWhen cleaning up a port in the context of refreshing gathered
Vincent Bernat [Sun, 8 Mar 2009 15:47:17 +0000 (16:47 +0100)] 
When cleaning up a port in the context of refreshing gathered
information, don't clean LLDP-MED location information. However, when
cleaning up a port for removal, clean them.

This fixes a regression introduced when fixing a memory leak. The
regression was introduced in:
 63f4b177e9b98ee2531e24a584fb7eaa754d0a14

16 years agoFix LLDP-MED class type sending: it is 1 byte large, not 2.
Vincent Bernat [Sun, 8 Mar 2009 15:13:06 +0000 (16:13 +0100)] 
Fix LLDP-MED class type sending: it is 1 byte large, not 2.

16 years agoFix alignment issue that may appear when reading 64bit integers.
Vincent Bernat [Sun, 8 Mar 2009 15:11:13 +0000 (16:11 +0100)] 
Fix alignment issue that may appear when reading 64bit integers.

16 years agoMajor rewrite for packet builder and parser.
Vincent Bernat [Sun, 8 Mar 2009 15:01:22 +0000 (16:01 +0100)] 
Major rewrite for packet builder and parser.

Packet builder now uses POKE_* macro that push bytes one by one using
memcpy to avoid any alignment issue that may appear on architectures
like ARM. The use of those macros instead of IOV renders the code
usually smaller except for very simple protocols.

Packet parser does not use structure casting any more. This is not
safe on architectures that do not handle unaligned read. We now read
packets sequentially using memcpy when reading more than one byte.
This makes the parser harder to read and somewhat longer.

16 years agoFix unaligned memory access in ctl.c using memcpy instead of pointer
Vincent Bernat [Sat, 7 Mar 2009 09:37:29 +0000 (10:37 +0100)] 
Fix unaligned memory access in ctl.c using memcpy instead of pointer
magic. This needs to be done on encoding/decoding too.

16 years agoCall res_init in case of failure to resolv names
Vincent Bernat [Fri, 6 Mar 2009 10:55:30 +0000 (11:55 +0100)] 
Call res_init in case of failure to resolv names

16 years agoFix lldpctl when LLDP-MED is enabled. 0.3.2
Vincent Bernat [Mon, 2 Mar 2009 15:07:06 +0000 (16:07 +0100)] 
Fix lldpctl when LLDP-MED is enabled.
Prepare new release.

16 years agoFix warning when compiling without LLDP-MED
Vincent Bernat [Mon, 2 Mar 2009 15:06:54 +0000 (16:06 +0100)] 
Fix warning when compiling without LLDP-MED

16 years agoPrepare version 0.3.1 0.3.1
Vincent Bernat [Fri, 27 Feb 2009 20:57:20 +0000 (21:57 +0100)] 
Prepare version 0.3.1

16 years agoUse memcpy instead of strlcpy when copying interface names to static
Vincent Bernat [Fri, 27 Feb 2009 13:23:19 +0000 (14:23 +0100)] 
Use memcpy instead of strlcpy when copying interface names to static
buffers.

16 years agoWhen refreshing port information, clean up existing information!
Vincent Bernat [Fri, 27 Feb 2009 13:16:19 +0000 (14:16 +0100)] 
When refreshing port information, clean up existing information!

16 years agoDon't try to reset the interface when removing it
Vincent Bernat [Fri, 27 Feb 2009 13:11:48 +0000 (14:11 +0100)] 
Don't try to reset the interface when removing it

16 years agoFix double free for local ports
Vincent Bernat [Fri, 27 Feb 2009 13:11:19 +0000 (14:11 +0100)] 
Fix double free for local ports

16 years agoFix a memory leak that can happen when a port is removed or renamed
Vincent Bernat [Fri, 27 Feb 2009 12:46:02 +0000 (13:46 +0100)] 
Fix a memory leak that can happen when a port is removed or renamed

16 years agoDon't free c_med_sw for local chassis. It is allocated and freed
Vincent Bernat [Fri, 27 Feb 2009 10:21:05 +0000 (11:21 +0100)] 
Don't free c_med_sw for local chassis. It is allocated and freed
elsewhere.

16 years agoFix an error when reading LLDP-MED packet
Vincent Bernat [Fri, 27 Feb 2009 10:09:20 +0000 (11:09 +0100)] 
Fix an error when reading LLDP-MED packet

16 years agoFix a memory leak when using LLDP-MED
Vincent Bernat [Fri, 27 Feb 2009 10:08:54 +0000 (11:08 +0100)] 
Fix a memory leak when using LLDP-MED

16 years agoLower log level for problem when getting bridge info
Vincent Bernat [Sat, 21 Feb 2009 08:34:56 +0000 (09:34 +0100)] 
Lower log level for problem when getting bridge info

16 years agoAlso check if the interface is RUNNING before considering it active.
Vincent Bernat [Wed, 21 Jan 2009 02:35:48 +0000 (03:35 +0100)] 
Also check if the interface is RUNNING before considering it active.

16 years agoMerge branch 'master' of ssh://ace.luffy.cx/srv/git/lldpd
Vincent Bernat [Fri, 9 Jan 2009 16:03:43 +0000 (17:03 +0100)] 
Merge branch 'master' of ssh://ace.luffy.cx/srv/git/lldpd

16 years agoFix compilation when SONMP and EDP are disabled
Vincent Bernat [Fri, 9 Jan 2009 16:02:32 +0000 (17:02 +0100)] 
Fix compilation when SONMP and EDP are disabled

16 years agoDon't output any warning when bridge support is not enabled at all.
Vincent Bernat [Tue, 30 Dec 2008 16:04:35 +0000 (17:04 +0100)] 
Don't output any warning when bridge support is not enabled at all.

16 years agoFDP seems to use a non-flawed checksum
Vincent Bernat [Fri, 26 Dec 2008 16:41:02 +0000 (17:41 +0100)] 
FDP seems to use a non-flawed checksum

16 years agoDon't compile FDP stuff if not needed.
Vincent Bernat [Fri, 26 Dec 2008 16:18:38 +0000 (17:18 +0100)] 
Don't compile FDP stuff if not needed.

16 years agoFix lldpctl to display capability bit "Router"
Vincent Bernat [Fri, 26 Dec 2008 16:09:29 +0000 (17:09 +0100)] 
Fix lldpctl to display capability bit "Router"

16 years agoHandle FDP capabilities
Vincent Bernat [Fri, 26 Dec 2008 16:06:59 +0000 (17:06 +0100)] 
Handle FDP capabilities

16 years agoUse static for all not to be exported symbols
Vincent Bernat [Fri, 26 Dec 2008 11:12:04 +0000 (12:12 +0100)] 
Use static for all not to be exported symbols

16 years agoMove LLDP-MED location/policy to port instead of chassis.
Vincent Bernat [Tue, 23 Dec 2008 15:16:36 +0000 (16:16 +0100)] 
Move LLDP-MED location/policy to port instead of chassis.
Handle setting of location in lldpctl instead of lldpd.

16 years agoAdding missing values for MAU type, thanks to James Lingard.
Vincent Bernat [Fri, 19 Dec 2008 07:48:14 +0000 (08:48 +0100)] 
Adding missing values for MAU type, thanks to James Lingard.

16 years agoFix compilation without EDP
Vincent Bernat [Thu, 18 Dec 2008 18:44:16 +0000 (19:44 +0100)] 
Fix compilation without EDP

16 years agoHandle reception and display of PVID
Vincent Bernat [Tue, 16 Dec 2008 16:34:02 +0000 (17:34 +0100)] 
Handle reception and display of PVID

16 years agoThis is maximum frame size, not MTU
Vincent Bernat [Tue, 16 Dec 2008 16:09:26 +0000 (17:09 +0100)] 
This is maximum frame size, not MTU

16 years agoAdd Maximum Frame Size support. For Linux, we just use MTU as MFS.
Vincent Bernat [Tue, 16 Dec 2008 10:23:43 +0000 (11:23 +0100)] 
Add Maximum Frame Size support. For Linux, we just use MTU as MFS.

16 years agoFix manual page (missing .El) 0.3
Vincent Bernat [Sun, 14 Dec 2008 11:06:33 +0000 (12:06 +0100)] 
Fix manual page (missing .El)

16 years agoPrepare new 0.3 version
Vincent Bernat [Sun, 14 Dec 2008 10:56:56 +0000 (11:56 +0100)] 
Prepare new 0.3 version

16 years agoAdd a note about the fact that location option could be moved to
Vincent Bernat [Sun, 14 Dec 2008 09:51:25 +0000 (10:51 +0100)] 
Add a note about the fact that location option could be moved to
lldpctl. This will be done when we can keep persistent data.

16 years agoDo not try to set media type network policy since its usefulness is
Vincent Bernat [Sat, 13 Dec 2008 18:34:05 +0000 (19:34 +0100)] 
Do not try to set media type network policy since its usefulness is
near zero when not being able to set it differently on each port.
Those kind of information should be set through SNMP.

16 years agoAllow to send LLDP-MED location.
Vincent Bernat [Sat, 13 Dec 2008 17:14:22 +0000 (18:14 +0100)] 
Allow to send LLDP-MED location.

16 years agoAccept too large TLV for LLDP
Vincent Bernat [Sat, 13 Dec 2008 08:53:25 +0000 (09:53 +0100)] 
Accept too large TLV for LLDP

16 years agoAllow to specify interfaces to display on lldpctl command line
Vincent Bernat [Fri, 12 Dec 2008 21:32:55 +0000 (22:32 +0100)] 
Allow to specify interfaces to display on lldpctl command line

16 years agoDon't display management IP if there is none
Vincent Bernat [Fri, 12 Dec 2008 21:12:34 +0000 (22:12 +0100)] 
Don't display management IP if there is none

16 years agoAdd SLIST support for libc not shipping it (like Sarge)
Vincent Bernat [Fri, 12 Dec 2008 09:55:42 +0000 (10:55 +0100)] 
Add SLIST support for libc not shipping it (like Sarge)

16 years agoFix parsing of LLDP-MED location, including display of altitude and
Vincent Bernat [Fri, 12 Dec 2008 09:41:16 +0000 (10:41 +0100)] 
Fix parsing of LLDP-MED location, including display of altitude and
datum.

16 years agoExport PSE/PD LLDP-MED stuff to SNMP
Vincent Bernat [Fri, 12 Dec 2008 06:56:12 +0000 (07:56 +0100)] 
Export PSE/PD LLDP-MED stuff to SNMP

16 years agoSNMP support for LLDP-MED location and network policy
Vincent Bernat [Thu, 11 Dec 2008 22:29:26 +0000 (23:29 +0100)] 
SNMP support for LLDP-MED location and network policy

16 years agoMerge branch 'master' into lldpmed
Vincent Bernat [Thu, 11 Dec 2008 19:42:09 +0000 (20:42 +0100)] 
Merge branch 'master' into lldpmed

16 years agoPadding and alignment is really the same thing.
Vincent Bernat [Thu, 11 Dec 2008 19:40:36 +0000 (20:40 +0100)] 
Padding and alignment is really the same thing.

16 years agoFix alignment problems.
Vincent Bernat [Thu, 11 Dec 2008 19:38:44 +0000 (20:38 +0100)] 
Fix alignment problems.

16 years agoFix compilation on 32bits arch by using long long int constants.
Vincent Bernat [Thu, 11 Dec 2008 19:04:22 +0000 (20:04 +0100)] 
Fix compilation on 32bits arch by using long long int constants.

16 years agoRewrite structure packing to handle substructures correctly. There are
Vincent Bernat [Wed, 10 Dec 2008 10:02:20 +0000 (11:02 +0100)] 
Rewrite structure packing to handle substructures correctly. There are
still some problems...

16 years agoDo not display autoneg stuff when we have nothing
Vincent Bernat [Wed, 10 Dec 2008 10:15:40 +0000 (11:15 +0100)] 
Do not display autoneg stuff when we have nothing

16 years agoHandle more gracefully DNS problems by keeping nodename
Vincent Bernat [Wed, 10 Dec 2008 10:13:05 +0000 (11:13 +0100)] 
Handle more gracefully DNS problems by keeping nodename

16 years agoUse 0:0:0:0:0:0 MAC address when sending on inactive slaves
Vincent Bernat [Tue, 9 Dec 2008 19:18:54 +0000 (20:18 +0100)] 
Use 0:0:0:0:0:0 MAC address when sending on inactive slaves

16 years agoSimplify MAC address generation for enslaved inactive devices
Vincent Bernat [Tue, 9 Dec 2008 18:37:24 +0000 (19:37 +0100)] 
Simplify MAC address generation for enslaved inactive devices

16 years agoFor enslaved devices, get the real MAC address from /proc/net/bonding
Vincent Bernat [Tue, 9 Dec 2008 18:25:57 +0000 (19:25 +0100)] 
For enslaved devices, get the real MAC address from /proc/net/bonding

16 years agoFactorize out cleanup of lldpd_hardware structure
Vincent Bernat [Tue, 9 Dec 2008 17:28:24 +0000 (18:28 +0100)] 
Factorize out cleanup of lldpd_hardware structure

16 years agoDo not share port id with interface MAC address (port id can be freed,
Vincent Bernat [Tue, 9 Dec 2008 17:16:49 +0000 (18:16 +0100)] 
Do not share port id with interface MAC address (port id can be freed,
while interface MAC address is staticaly allocated)

16 years agoWhen sending on inactive slaves, use a random MAC address
Vincent Bernat [Tue, 9 Dec 2008 17:00:39 +0000 (18:00 +0100)] 
When sending on inactive slaves, use a random MAC address

16 years agoDisplay available capabilities instead of enabled capabilities (they
Vincent Bernat [Mon, 8 Dec 2008 19:14:48 +0000 (20:14 +0100)] 
Display available capabilities instead of enabled capabilities (they
are listed below)

16 years agoHandle correctly MDI/PSE or PD capabilities
Vincent Bernat [Mon, 8 Dec 2008 19:14:15 +0000 (20:14 +0100)] 
Handle correctly MDI/PSE or PD capabilities

16 years agoParse LLDP-MED MDI when receiving frames
Vincent Bernat [Mon, 8 Dec 2008 19:11:00 +0000 (20:11 +0100)] 
Parse LLDP-MED MDI when receiving frames

16 years agoParse location for LLDP-MED.
Vincent Bernat [Mon, 8 Dec 2008 16:31:53 +0000 (17:31 +0100)] 
Parse location for LLDP-MED.

16 years agoAccept to receive several location and several network policy for
Vincent Bernat [Mon, 8 Dec 2008 13:45:00 +0000 (14:45 +0100)] 
Accept to receive several location and several network policy for
LLDP-MED

16 years agoDon't send anything on inactive slaves (this confuses most switches)
Vincent Bernat [Mon, 8 Dec 2008 10:08:09 +0000 (11:08 +0100)] 
Don't send anything on inactive slaves (this confuses most switches)

16 years agoDump less information for LLDP-MED location data
Vincent Bernat [Mon, 8 Dec 2008 09:40:06 +0000 (10:40 +0100)] 
Dump less information for LLDP-MED location data

16 years agoDon't output too many new lines when displaying LLDP-MED information
Vincent Bernat [Sun, 7 Dec 2008 15:50:10 +0000 (16:50 +0100)] 
Don't output too many new lines when displaying LLDP-MED information

16 years agoEncode location data as data+len to enable use of 0 characters.
Vincent Bernat [Sun, 7 Dec 2008 15:47:23 +0000 (16:47 +0100)] 
Encode location data as data+len to enable use of 0 characters.

16 years agoMerge branch 'master' into lldpmed
Vincent Bernat [Sun, 7 Dec 2008 15:30:18 +0000 (16:30 +0100)] 
Merge branch 'master' into lldpmed

16 years agoDo not close control socket when there is an ethtool ioctl problem: we
Vincent Bernat [Sun, 7 Dec 2008 15:29:43 +0000 (16:29 +0100)] 
Do not close control socket when there is an ethtool ioctl problem: we
want to use it for future ioctl...

16 years agoCompute and handle correctly LLDP-MED capabilities (available and
Vincent Bernat [Sun, 7 Dec 2008 15:20:32 +0000 (16:20 +0100)] 
Compute and handle correctly LLDP-MED capabilities (available and
enabled)

16 years agoMore LLDP-MED support, thanks to Michael Hanig.
Vincent Bernat [Fri, 5 Dec 2008 21:43:08 +0000 (22:43 +0100)] 
More LLDP-MED support, thanks to Michael Hanig.

16 years agoSome equipments send empty TLV for optional TLV
Vincent Bernat [Fri, 5 Dec 2008 11:17:39 +0000 (12:17 +0100)] 
Some equipments send empty TLV for optional TLV

16 years agoComplete changelog with recent changes
Vincent Bernat [Mon, 1 Dec 2008 17:47:56 +0000 (18:47 +0100)] 
Complete changelog with recent changes

16 years agoAdd configuration switch to disable LLDP-MED inventory sending
Vincent Bernat [Fri, 28 Nov 2008 17:13:37 +0000 (18:13 +0100)] 
Add configuration switch to disable LLDP-MED inventory sending