]>
git.ipfire.org Git - thirdparty/lldpd.git/log
Vincent Bernat [Mon, 6 Jul 2009 13:35:58 +0000 (15:35 +0200)]
Add LLDP receive tests
Vincent Bernat [Mon, 6 Jul 2009 09:42:31 +0000 (11:42 +0200)]
Add LLDP send tests.
Vincent Bernat [Sun, 5 Jul 2009 18:02:17 +0000 (20:02 +0200)]
Add unit tests for lists packing/unpacking.
Vincent Bernat [Sun, 5 Jul 2009 17:30:56 +0000 (19:30 +0200)]
Unit tests for packing/unpacking.
We build a static library liblldpd.la to ease linking to tests.
liblldpd.la is equal to lldpd except:
- no main (but lldpd_main instead)
- no link to netsnmp (because libtool try to link many many more
things)
Vincent Bernat [Tue, 7 Jul 2009 13:23:07 +0000 (15:23 +0200)]
Update signature of transport string function for SNMP.
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.
Vincent Bernat [Tue, 7 Jul 2009 07:38:53 +0000 (09:38 +0200)]
Fix compilation issues when DOT1 or DOT3 are not enabled.
Vincent Bernat [Wed, 10 Jun 2009 13:39:49 +0000 (15:39 +0200)]
Fix comment of iface_port_name_desc()
Vincent Bernat [Wed, 10 Jun 2009 13:22:29 +0000 (15:22 +0200)]
Use ifAlias from newer Linux kernels if available.
From 2.6.28, Linux allows to attach a description to an interface. We
grab this description from /sys/class/net/$IFACE/ifalias if it exists
and is not empty and use it as port description. In this case,
interface name is used as port ID.
PortID: veth0 (ifName)
PortDescr: Test interface
This closes ticket #10.
Vincent Bernat [Tue, 9 Jun 2009 05:42:32 +0000 (07:42 +0200)]
Set h_ifindex correctly.
We also use this index as a way to define an interface. The following
comment has been added to lldpd.h:
An interface is uniquely identified by h_ifindex, h_ifname and h_ops.
This means if an interface becomes enslaved, it will be considered as
a new interface. The same applies for renaming and we include the
index in case of renaming to an existing interface.
Vincent Bernat [Sun, 7 Jun 2009 12:17:45 +0000 (14:17 +0200)]
Add a callback mechanism to watch for incoming data on sockets.
This callback mechanism is used to handle socket control. It could
also be used when we will need to monitor sockets outside of a port
context.
Vincent Bernat [Sat, 6 Jun 2009 21:06:38 +0000 (23:06 +0200)]
Add a note about EDP in changelog.
Vincent Bernat [Sat, 6 Jun 2009 21:04:35 +0000 (23:04 +0200)]
Update changelog.
Vincent Bernat [Thu, 4 Jun 2009 21:26:25 +0000 (23:26 +0200)]
Make "listen on vlan" feature optional at compile-time.
The code to handle this feature is a bit kludgy and it seems safer to
compile out this feature by default.
Vincent Bernat [Thu, 4 Jun 2009 21:16:36 +0000 (23:16 +0200)]
There are duplicate in the list of address we give to handler
functions. We need to acknowledge this correctly.
For bonds and regular interfaces, just check that h_flags is 0 before
trying to get information one more time.
For VLAN, check if the VLAN is already present in the list.
Vincent Bernat [Thu, 4 Jun 2009 21:12:40 +0000 (23:12 +0200)]
Add back "listen on VLAN" feature.
Vincent Bernat [Thu, 4 Jun 2009 19:44:40 +0000 (21:44 +0200)]
One VLAN can be associated to multiple interfaces through bridge or
bond. Handle those cases appropriately.
Vincent Bernat [Wed, 3 Jun 2009 19:35:31 +0000 (21:35 +0200)]
Add back support for bonding using the new architecture.
Vincent Bernat [Tue, 2 Jun 2009 08:57:15 +0000 (10:57 +0200)]
Don't free statically allocated port.
Vincent Bernat [Tue, 2 Jun 2009 07:56:25 +0000 (09:56 +0200)]
Change the way interface information are collected.
Move interface related stuff into interfaces.c.
A set of handlers are called sequentially to handle interfaces.
Vincent Bernat [Sun, 31 May 2009 08:35:11 +0000 (10:35 +0200)]
Move chassis update to a function.
Later, the function could be replaced with something less hackish if
needed.
Vincent Bernat [Sun, 24 May 2009 18:23:59 +0000 (20:23 +0200)]
Fix SNMP support to handle multiple systems on the same port.
Vincent Bernat [Sun, 24 May 2009 17:33:28 +0000 (19:33 +0200)]
Fix support for EDP with respect to multisystem support.
EDP VLAN are transmitted in another VLAN and therefore need to be
attached to the right existing system.
Vincent Bernat [Sun, 24 May 2009 17:16:01 +0000 (19:16 +0200)]
Add some debug output to track know remote systems/ports.
Vincent Bernat [Sun, 24 May 2009 12:29:15 +0000 (14:29 +0200)]
Adapt lldpctl to display received systems for each port.
Vincent Bernat [Sat, 23 May 2009 17:28:39 +0000 (19:28 +0200)]
Handle reception of several different systems on each port.
Vincent Bernat [Sat, 23 May 2009 14:59:25 +0000 (16:59 +0200)]
Update lldpd.h to support a list of remote systems.
Vincent Bernat [Sat, 23 May 2009 13:04:22 +0000 (15:04 +0200)]
Simplify multiprotocols handling.
Remove probing. This is not very usable for now but this will be
enhanced when we will support multiple systems on the same port.
Vincent Bernat [Mon, 18 May 2009 17:04:57 +0000 (19:04 +0200)]
Suppress bond handling.
This will be done in another way later.
Vincent Bernat [Thu, 14 May 2009 14:08:05 +0000 (16:08 +0200)]
Suppress "listen on vlan" feature.
This will be reimplemented later in a more generic way.
Vincent Bernat [Sun, 24 May 2009 19:20:42 +0000 (21:20 +0200)]
When LLDP-MED is not enabled, do not send inventory.
Vincent Bernat [Sun, 24 May 2009 18:45:47 +0000 (20:45 +0200)]
Keep gcc happy with 'const' keyword.
With optimization -O0, gcc seems to handle more carefully 'const'
keyword.
Vincent Bernat [Sun, 24 May 2009 19:05:04 +0000 (21:05 +0200)]
Use chassis ID when sending EDP packets.
Vincent Bernat [Sun, 24 May 2009 18:37:30 +0000 (20:37 +0200)]
Fix EDP vlan handling when there is no VLAN
Vincent Bernat [Fri, 22 May 2009 18:39:00 +0000 (20:39 +0200)]
Remove misc/ directory.
This directory is old junk code.
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.
Vincent Bernat [Wed, 20 May 2009 17:50:51 +0000 (19:50 +0200)]
Adapt .spec file to work with actual tar.gz.
lldpd.init and lldpd.sysconfig should be shipped into src.rpm package.
Vincent Bernat [Tue, 19 May 2009 12:42:45 +0000 (14:42 +0200)]
Update version in configure.ac
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.
Vincent Bernat [Tue, 19 May 2009 11:03:55 +0000 (13:03 +0200)]
Add init script for RPM
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.
Vincent Bernat [Mon, 18 May 2009 16:12:41 +0000 (18:12 +0200)]
Fix URL and description to match Debian package.
Vincent Bernat [Mon, 18 May 2009 16:12:13 +0000 (18:12 +0200)]
lldpd.spec for RPM package, contributed by Dean Hamstead.
Vincent Bernat [Thu, 14 May 2009 15:56:59 +0000 (17:56 +0200)]
Also check for VLAN on bridges.
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.
Vincent Bernat [Tue, 10 Mar 2009 18:57:18 +0000 (19:57 +0100)]
Fix a parsing error for link aggregation TLV in LLDP
Vincent Bernat [Mon, 9 Mar 2009 09:33:50 +0000 (10:33 +0100)]
Add missing frame.c
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
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.
Vincent Bernat [Sun, 8 Mar 2009 15:11:13 +0000 (16:11 +0100)]
Fix alignment issue that may appear when reading 64bit integers.
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.
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.
Vincent Bernat [Fri, 6 Mar 2009 10:55:30 +0000 (11:55 +0100)]
Call res_init in case of failure to resolv names
Vincent Bernat [Mon, 2 Mar 2009 15:07:06 +0000 (16:07 +0100)]
Fix lldpctl when LLDP-MED is enabled.
Prepare new release.
Vincent Bernat [Mon, 2 Mar 2009 15:06:54 +0000 (16:06 +0100)]
Fix warning when compiling without LLDP-MED
Vincent Bernat [Fri, 27 Feb 2009 20:57:20 +0000 (21:57 +0100)]
Prepare version 0.3.1
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.
Vincent Bernat [Fri, 27 Feb 2009 13:16:19 +0000 (14:16 +0100)]
When refreshing port information, clean up existing information!
Vincent Bernat [Fri, 27 Feb 2009 13:11:48 +0000 (14:11 +0100)]
Don't try to reset the interface when removing it
Vincent Bernat [Fri, 27 Feb 2009 13:11:19 +0000 (14:11 +0100)]
Fix double free for local ports
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
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.
Vincent Bernat [Fri, 27 Feb 2009 10:09:20 +0000 (11:09 +0100)]
Fix an error when reading LLDP-MED packet
Vincent Bernat [Fri, 27 Feb 2009 10:08:54 +0000 (11:08 +0100)]
Fix a memory leak when using LLDP-MED
Vincent Bernat [Sat, 21 Feb 2009 08:34:56 +0000 (09:34 +0100)]
Lower log level for problem when getting bridge info
Vincent Bernat [Wed, 21 Jan 2009 02:35:48 +0000 (03:35 +0100)]
Also check if the interface is RUNNING before considering it active.
Vincent Bernat [Fri, 9 Jan 2009 16:03:43 +0000 (17:03 +0100)]
Merge branch 'master' of ssh://ace.luffy.cx/srv/git/lldpd
Vincent Bernat [Fri, 9 Jan 2009 16:02:32 +0000 (17:02 +0100)]
Fix compilation when SONMP and EDP are disabled
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.
Vincent Bernat [Fri, 26 Dec 2008 16:41:02 +0000 (17:41 +0100)]
FDP seems to use a non-flawed checksum
Vincent Bernat [Fri, 26 Dec 2008 16:18:38 +0000 (17:18 +0100)]
Don't compile FDP stuff if not needed.
Vincent Bernat [Fri, 26 Dec 2008 16:09:29 +0000 (17:09 +0100)]
Fix lldpctl to display capability bit "Router"
Vincent Bernat [Fri, 26 Dec 2008 16:06:59 +0000 (17:06 +0100)]
Handle FDP capabilities
Vincent Bernat [Fri, 26 Dec 2008 11:12:04 +0000 (12:12 +0100)]
Use static for all not to be exported symbols
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.
Vincent Bernat [Fri, 19 Dec 2008 07:48:14 +0000 (08:48 +0100)]
Adding missing values for MAU type, thanks to James Lingard.
Vincent Bernat [Thu, 18 Dec 2008 18:44:16 +0000 (19:44 +0100)]
Fix compilation without EDP
Vincent Bernat [Tue, 16 Dec 2008 16:34:02 +0000 (17:34 +0100)]
Handle reception and display of PVID
Vincent Bernat [Tue, 16 Dec 2008 16:09:26 +0000 (17:09 +0100)]
This is maximum frame size, not MTU
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.
Vincent Bernat [Sun, 14 Dec 2008 11:06:33 +0000 (12:06 +0100)]
Fix manual page (missing .El)
Vincent Bernat [Sun, 14 Dec 2008 10:56:56 +0000 (11:56 +0100)]
Prepare new 0.3 version
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.
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.
Vincent Bernat [Sat, 13 Dec 2008 17:14:22 +0000 (18:14 +0100)]
Allow to send LLDP-MED location.
Vincent Bernat [Sat, 13 Dec 2008 08:53:25 +0000 (09:53 +0100)]
Accept too large TLV for LLDP
Vincent Bernat [Fri, 12 Dec 2008 21:32:55 +0000 (22:32 +0100)]
Allow to specify interfaces to display on lldpctl command line
Vincent Bernat [Fri, 12 Dec 2008 21:12:34 +0000 (22:12 +0100)]
Don't display management IP if there is none
Vincent Bernat [Fri, 12 Dec 2008 09:55:42 +0000 (10:55 +0100)]
Add SLIST support for libc not shipping it (like Sarge)
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.
Vincent Bernat [Fri, 12 Dec 2008 06:56:12 +0000 (07:56 +0100)]
Export PSE/PD LLDP-MED stuff to SNMP
Vincent Bernat [Thu, 11 Dec 2008 22:29:26 +0000 (23:29 +0100)]
SNMP support for LLDP-MED location and network policy
Vincent Bernat [Thu, 11 Dec 2008 19:42:09 +0000 (20:42 +0100)]
Merge branch 'master' into lldpmed
Vincent Bernat [Thu, 11 Dec 2008 19:40:36 +0000 (20:40 +0100)]
Padding and alignment is really the same thing.
Vincent Bernat [Thu, 11 Dec 2008 19:38:44 +0000 (20:38 +0100)]
Fix alignment problems.
Vincent Bernat [Thu, 11 Dec 2008 19:04:22 +0000 (20:04 +0100)]
Fix compilation on 32bits arch by using long long int constants.
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...
Vincent Bernat [Wed, 10 Dec 2008 10:15:40 +0000 (11:15 +0100)]
Do not display autoneg stuff when we have nothing
Vincent Bernat [Wed, 10 Dec 2008 10:13:05 +0000 (11:13 +0100)]
Handle more gracefully DNS problems by keeping nodename
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