]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
12 years agoautomake: libevent.la is not a convenience library 0.6.0
Vincent Bernat [Fri, 4 May 2012 20:22:56 +0000 (22:22 +0200)] 
automake: libevent.la is not a convenience library

Since libevent.la is not a convenience library, we cannot merge it
into liblldpd.la. Therefore, we link it to lldpd directly (and don't
try to build a convenience library from it).

12 years agoclient: fix unused variable when LLDPMED support is not compiled
Vincent Bernat [Fri, 4 May 2012 16:35:32 +0000 (18:35 +0200)] 
client: fix unused variable when LLDPMED support is not compiled

12 years agomarshal: use zero-sized array instead of flexible arrays
Vincent Bernat [Fri, 4 May 2012 09:48:40 +0000 (11:48 +0200)] 
marshal: use zero-sized array instead of flexible arrays

With gcc 2.96, flexible arrays are not supported, even with
-std=gnu99. And with gcc 3.x, zero-sized arrays cannot be statically
initialized (with more than one element).

12 years agoDon't mix declarations and statements.
Vincent Bernat [Fri, 4 May 2012 06:11:36 +0000 (08:11 +0200)] 
Don't mix declarations and statements.

Also enable warnings when we try to. Compatibility with gcc 2.96 requires that.

12 years agoconfigure: don't check for SLIST_* stuff: we don't use them
Vincent Bernat [Fri, 4 May 2012 05:33:10 +0000 (07:33 +0200)] 
configure: don't check for SLIST_* stuff: we don't use them

12 years agosnmp: only call run_alarms() on SNMP timeouts
Vincent Bernat [Thu, 3 May 2012 08:59:42 +0000 (10:59 +0200)] 
snmp: only call run_alarms() on SNMP timeouts

See snmp_alarm(3snmp) manual page for the
rationale. `NETSNMP_DS_LIB_ALARM_DONT_USE_SIG` is set by
`init_agent()`.

12 years agoconfigure: make ./autogen.sh non recursive
Vincent Bernat [Wed, 2 May 2012 17:57:51 +0000 (19:57 +0200)] 
configure: make ./autogen.sh non recursive

12 years agoconfigure: use AC_PROG_CXX macro
Vincent Bernat [Wed, 2 May 2012 17:55:05 +0000 (19:55 +0200)] 
configure: use AC_PROG_CXX macro

12 years agoconfigure: always configure libevent to make "make dist" work
Vincent Bernat [Wed, 2 May 2012 17:05:13 +0000 (19:05 +0200)] 
configure: always configure libevent to make "make dist" work

12 years agoctl: no need to keep a list of active clients
Vincent Bernat [Wed, 2 May 2012 14:16:41 +0000 (16:16 +0200)] 
ctl: no need to keep a list of active clients

12 years agoReally ship libevent.
Vincent Bernat [Wed, 2 May 2012 13:52:53 +0000 (15:52 +0200)] 
Really ship libevent.

12 years agoShip an embedded copy of libevent.
Vincent Bernat [Wed, 2 May 2012 10:50:09 +0000 (12:50 +0200)] 
Ship an embedded copy of libevent.

This embedded copy will only be used if no system libevent is
available.

12 years agoconfigure: don't test for XML2 linking, useless
Vincent Bernat [Wed, 2 May 2012 06:12:03 +0000 (08:12 +0200)] 
configure: don't test for XML2 linking, useless

Just check for its presence with pkg-config and xml2-config.

12 years agoconfigure: remove old unwanted cruft
Vincent Bernat [Wed, 2 May 2012 06:03:22 +0000 (08:03 +0200)] 
configure: remove old unwanted cruft

It seems easier to fail on compilation if we cannot provide a
workaround in configure.

12 years agoconfigure: drop dependency with libtool
Vincent Bernat [Tue, 1 May 2012 14:02:09 +0000 (16:02 +0200)] 
configure: drop dependency with libtool

12 years agoconfigure: enable compilation of a libevent archive
Vincent Bernat [Tue, 1 May 2012 13:28:41 +0000 (15:28 +0200)] 
configure: enable compilation of a libevent archive

README.md has been updated for those instructions. We still rely on
libtool to make this work. Unfortunately, the generated libtool comes
too late: we can't use it...

12 years agoUpdate changelog, travis and packaging for libevent
Vincent Bernat [Tue, 1 May 2012 09:29:22 +0000 (11:29 +0200)] 
Update changelog, travis and packaging for libevent

12 years agolldpd: switch to libevent loop
Vincent Bernat [Mon, 30 Apr 2012 23:33:42 +0000 (01:33 +0200)] 
lldpd: switch to libevent loop

This is a major change. Instead of a custom loop, we switch to
libevent. Only `levent.c` is aware of the event loop. Other parts do
not manipulate events. Currently, we still have a loop triggered every
30 seconds. This could change to be a per port handling.

12 years agoconfigure: upgrade to libevent 2.x
Vincent Bernat [Fri, 27 Jan 2012 11:30:41 +0000 (12:30 +0100)] 
configure: upgrade to libevent 2.x

Also, when linking with a static version of libevent, we enforce the
use of libtool ".la" file instead of ".a" to get appropriate
dependencies automatically and avoid a warning when linking inside a
".la".

12 years agoIntegration of libevent into the build system.
Vincent Bernat [Thu, 1 Jul 2010 09:29:48 +0000 (11:29 +0200)] 
Integration of libevent into the build system.

"configure" will check that libevent is present. It is possible to use
--with-libevent option to tell where libevent lives. We include the
possibility to use a static copy of libevent but with the absence of a
.pc file, we are not sure to handle all the dependencies correctly.

README file is updated with instructions about libevent, including
steps to build libevent inside lldpd.

12 years agolldpd: on exit, remove remote ports before removing local ones
Vincent Bernat [Tue, 1 May 2012 09:09:15 +0000 (11:09 +0200)] 
lldpd: on exit, remove remote ports before removing local ones

12 years agolldpd: fix chassis copy
Vincent Bernat [Tue, 1 May 2012 08:54:05 +0000 (10:54 +0200)] 
lldpd: fix chassis copy

When a chassis is already known, we copy the new one over the old one
and keep the old one. With the addition of management addresses as a
list, the copy was incorrect. We fix it. This is kludgy. A better way
would be to use marshaling but marshaling is not able to do inplace
copy and it is not able to restore full list (previous pointer is not
restored).

12 years agovalgrind: initialize some buffers to make valgrind happy
Vincent Bernat [Tue, 1 May 2012 08:16:10 +0000 (10:16 +0200)] 
valgrind: initialize some buffers to make valgrind happy

Valgrind does not understand some ioctl and thinks we are using
unitialized buffers while the ioctl will initialize them. We get rid
of those warnings by initializing them ourselves.

12 years agoWhen running on valgrind, don't chroot or drop privileges
Vincent Bernat [Mon, 30 Apr 2012 23:50:03 +0000 (01:50 +0200)] 
When running on valgrind, don't chroot or drop privileges

Valgrind documentation says:

  You are encouraged to copy the valgrind/*.h headers into your
  project's include directory, so your program doesn't have a
  compile-time dependency on Valgrind being installed. The Valgrind
  headers, unlike most of the rest of the code, are under a BSD-style
  license so you may include them without worrying about license
  incompatibility.

I don't like copying headers around. Therefore, there is an autoconf
check for valgrind headers.

12 years agotravis: add Travis CI link to README
Vincent Bernat [Tue, 3 Apr 2012 13:25:35 +0000 (15:25 +0200)] 
travis: add Travis CI link to README

12 years agotests: when Dot3 feature is disabled, MFS is not transmitted
Vincent Bernat [Tue, 3 Apr 2012 11:37:49 +0000 (13:37 +0200)] 
tests: when Dot3 feature is disabled, MFS is not transmitted

12 years agoAllow compilation without Dot1.
Vincent Bernat [Tue, 3 Apr 2012 11:29:47 +0000 (13:29 +0200)] 
Allow compilation without Dot1.

12 years agotravis: use apt-get instead of aptitude
Vincent Bernat [Tue, 3 Apr 2012 11:21:00 +0000 (13:21 +0200)] 
travis: use apt-get instead of aptitude

aptitude will try to remove unused packages. We don't need this. Also,
enable XML output.

12 years agotravis: use provided configure argument
Vincent Bernat [Tue, 3 Apr 2012 11:10:45 +0000 (13:10 +0200)] 
travis: use provided configure argument

Also install "check" package to enable unittests.

12 years agoIntegration with Travis CI
Vincent Bernat [Tue, 3 Apr 2012 11:03:25 +0000 (13:03 +0200)] 
Integration with Travis CI

12 years agomgmt: allow one to provide a pattern to specify management addresses
Vincent Bernat [Thu, 15 Mar 2012 22:28:55 +0000 (23:28 +0100)] 
mgmt: allow one to provide a pattern to specify management addresses

12 years agoUpdate CHANGELOG with entry about management addresses.
Vincent Bernat [Thu, 15 Mar 2012 21:56:01 +0000 (22:56 +0100)] 
Update CHANGELOG with entry about management addresses.

12 years agosnmp: add support for IPv6 management addresses
Vincent Bernat [Thu, 15 Mar 2012 21:51:48 +0000 (22:51 +0100)] 
snmp: add support for IPv6 management addresses

12 years agosnmp: fix SNMP support for management addresses
Vincent Bernat [Thu, 15 Mar 2012 21:29:01 +0000 (22:29 +0100)] 
snmp: fix SNMP support for management addresses

12 years agoedp: ensure we don't add the same address over and over
Vincent Bernat [Thu, 15 Mar 2012 21:02:48 +0000 (22:02 +0100)] 
edp: ensure we don't add the same address over and over

We still need to discards address that are not advertised
anymore. However, that's not easy.

12 years agomgmt: free management addresses when freeing the chassis
Vincent Bernat [Thu, 15 Mar 2012 20:57:03 +0000 (21:57 +0100)] 
mgmt: free management addresses when freeing the chassis

12 years agoedp: steal IP addresses from the received chassis instead of copying them
Vincent Bernat [Thu, 15 Mar 2012 20:52:08 +0000 (21:52 +0100)] 
edp: steal IP addresses from the received chassis instead of copying them

The received chassis information will be discarded, there is no need
to copy them. We behave like for VLAN.

12 years agocdp: allow to send several IP addresses
Vincent Bernat [Thu, 15 Mar 2012 20:32:30 +0000 (21:32 +0100)] 
cdp: allow to send several IP addresses

12 years agoSupport for multiple IPv4/IPv6 management addresses.
João Valverde [Tue, 6 Mar 2012 14:08:59 +0000 (14:08 +0000)] 
Support for multiple IPv4/IPv6 management addresses.

This patch introduces a new 'struct lldpd_mgmt' to store IPv4/IPv6
management addresses. These addresses are stored in a tail queue.
For the local chassis we currently only use one IPv4 and one IPv6 address.

Options for IPv6 addresses are the same as IPv4 (use -6).

TODO: Fix SNMP agent.

12 years agotests: fix location of .h files (they are in top_srcdir, not in top_builddir)
Vincent Bernat [Sun, 4 Mar 2012 14:33:35 +0000 (15:33 +0100)] 
tests: fix location of .h files (they are in top_srcdir, not in top_builddir)

12 years agolldpd: add a better error message when we cannot create the unix socket
Vincent Bernat [Fri, 2 Mar 2012 14:22:04 +0000 (15:22 +0100)] 
lldpd: add a better error message when we cannot create the unix socket

12 years agoconfigure: automatically compute version from git
Vincent Bernat [Thu, 1 Mar 2012 07:04:55 +0000 (08:04 +0100)] 
configure: automatically compute version from git

Also, output this version in usage().

12 years agolldpd: add interface to message about unguessable frame type
Vincent Bernat [Wed, 29 Feb 2012 23:16:16 +0000 (00:16 +0100)] 
lldpd: add interface to message about unguessable frame type

12 years agolldpd: do not stay stuck in the receive loop
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.

12 years agosnmp: better integration of SNMP logging subsystem
Vincent Bernat [Sun, 26 Feb 2012 12:23:49 +0000 (13:23 +0100)] 
snmp: better integration of SNMP logging subsystem

12 years agocdp: allow to override value of platform TLV (Linux by default)
Vincent Bernat [Sat, 25 Feb 2012 10:37:43 +0000 (11:37 +0100)] 
cdp: allow to override value of platform TLV (Linux by default)

12 years agoredhat: make the init script compatible with RHEL < 5
Vincent Bernat [Sat, 25 Feb 2012 08:06:31 +0000 (09:06 +0100)] 
redhat: make the init script compatible with RHEL < 5

On RHEL < 5, killproc, daemon and status does not allow to take a
pidfile as argument. We detect this and omit it to provide such an
argument if needed.

12 years agomarshal: circumvent cast alignment problems using memcpy
Vincent Bernat [Thu, 26 Jan 2012 22:52:13 +0000 (23:52 +0100)] 
marshal: circumvent cast alignment problems using memcpy

gcc was issuing warnings like this:
 marshal.c:290:5: warning: cast increases required alignment of target type [-Wcast-align]

They are harmless because for one of them, the target has been
malloced (and therefore is safely aligned to 8 bytes) and for the
other because we know that the target location is the location of a
pointer. For those later cases, assignment is replaced by memcpy().

12 years agotests: when comparing port ID and chassis ID, uses strncmp
Vincent Bernat [Thu, 26 Jan 2012 22:24:40 +0000 (23:24 +0100)] 
tests: when comparing port ID and chassis ID, uses strncmp

Even when Port ID and Chassis ID are known to be strings, they may not
be null-terminated.

12 years agoUse %zu for printf() when argument is of kind size_t.
Vincent Bernat [Thu, 26 Jan 2012 22:14:28 +0000 (23:14 +0100)] 
Use %zu for printf() when argument is of kind size_t.

%zu is valid in C99 and is supported by GNU LibC. We'll see if there
exists a portability issue. In this case, %lu and a cast to unsigned
long should be used instead.

12 years agoAdd a flag to specify which interfaces to use for chassis ID.
Vincent Bernat [Mon, 5 Dec 2011 18:03:30 +0000 (19:03 +0100)] 
Add a flag to specify which interfaces to use for chassis ID.

lldpd will use the first interface matching the pattern for chassis
ID. This will enable for example to always use "eth0". This closes #12.

12 years agoChange the way Chassis ID is assigned.
Vincent Bernat [Tue, 24 Jan 2012 09:59:39 +0000 (10:59 +0100)] 
Change the way Chassis ID is assigned.

By default, chassis ID is assigned the chassis name. Once an
appropriate interface is discovered, the chassis ID is changed to the
MAC address of this interface. In most configurations, the chassis ID
is always set to the MAC address of the first interface, like this was
before this patch.

12 years agolldpd: remove unneeded forward declarations
Vincent Bernat [Tue, 24 Jan 2012 09:37:38 +0000 (10:37 +0100)] 
lldpd: remove unneeded forward declarations

12 years agointerfaces: remove unneeded forward declarations
Vincent Bernat [Tue, 24 Jan 2012 09:29:21 +0000 (10:29 +0100)] 
interfaces: remove unneeded forward declarations

12 years agolldpctl: add a flag to display hidden ports
Vincent Bernat [Tue, 24 Jan 2012 09:20:49 +0000 (10:20 +0100)] 
lldpctl: add a flag to display hidden ports

12 years agoUpdate CHANGELOG with actual changes from 0.5.6.
Vincent Bernat [Tue, 24 Jan 2012 09:14:31 +0000 (10:14 +0100)] 
Update CHANGELOG with actual changes from 0.5.6.

12 years agoProvide a .gitignore.
Vincent Bernat [Tue, 24 Jan 2012 07:20:23 +0000 (08:20 +0100)] 
Provide a .gitignore.

Sources are expected to be built in build directory:

     $ ./autogen.sh
     $ mkdir build
     $ cd build
     $ ../configure --with-snmp
     $ make && make check

12 years agoAdd missing lldpctl.h header file
Vincent Bernat [Tue, 24 Jan 2012 07:12:41 +0000 (08:12 +0100)] 
Add missing lldpctl.h header file

12 years agoUse LIBADD instead of LDADD when appropriate.
Vincent Bernat [Tue, 24 Jan 2012 06:45:44 +0000 (07:45 +0100)] 
Use LIBADD instead of LDADD when appropriate.

12 years agoCompilation fixes when disabling some part of lldpd
Vincent Bernat [Mon, 23 Jan 2012 21:56:17 +0000 (22:56 +0100)] 
Compilation fixes when disabling some part of lldpd

12 years agoMajor rewrite: rewrite lldpd/lldpctl communication mechanism
Vincent Bernat [Mon, 23 Jan 2012 21:24:00 +0000 (22:24 +0100)] 
Major rewrite: rewrite lldpd/lldpctl communication mechanism

The new marshalling stuff is used instead of the previous packing
mechanism. Less code. Better code.

12 years agomarshal: fix list marshalling and various other changes
Vincent Bernat [Mon, 23 Jan 2012 18:55:49 +0000 (19:55 +0100)] 
marshal: fix list marshalling and various other changes

Since last element and previous element are a pointer to a pointer, we
should handle this case differently. Unit tests are not failing
because the original memory space is still available on the stack. We
just ignore last and previous. This still allows to use the list for
the most useful operations: TAILQ_EMPTY, TAILQ_FOREACH and
TAILQ_REMOVE. We can't use TAILQ_INSERT_TAIL!

Another important change is that by default, macros will declare an
external structure. MARSHAL_EXPORT variable should be defined only for
one module. Otherwise, marshal structures will be defined several
times.

We also rename `_marshal_*` to `marshal_*_`. This enables more
graceful logging messages.

12 years agocore: SMART_HIDDEN macro does not really need the configuration
Vincent Bernat [Mon, 23 Jan 2012 17:05:13 +0000 (18:05 +0100)] 
core: SMART_HIDDEN macro does not really need the configuration

12 years agoPoint to appropriate LLDP page on Wikipedia instead of disambiguation page.
Vincent Bernat [Mon, 23 Jan 2012 07:31:04 +0000 (08:31 +0100)] 
Point to appropriate LLDP page on Wikipedia instead of disambiguation page.

12 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

12 years agomarshal: add a way to ignore a pointer (setting it to NULL)
Vincent Bernat [Sat, 21 Jan 2012 22:21:07 +0000 (23:21 +0100)] 
marshal: add a way to ignore a pointer (setting it to NULL)

12 years agomarshal: handle fixed-size strings
Vincent Bernat [Sat, 21 Jan 2012 21:42:44 +0000 (22:42 +0100)] 
marshal: handle fixed-size strings

12 years agomarshal: allow to specify null-terminated strings
Vincent Bernat [Sat, 21 Jan 2012 20:56:20 +0000 (21:56 +0100)] 
marshal: allow to specify null-terminated strings

12 years agomarshal: use shorter macro names
Vincent Bernat [Sat, 21 Jan 2012 20:31:52 +0000 (21:31 +0100)] 
marshal: use shorter macro names

12 years agoAdd a new serialization engine.
Vincent Bernat [Sat, 21 Jan 2012 13:42:42 +0000 (14:42 +0100)] 
Add a new serialization engine.

The chosen approach is totally different compared to the existing
packing mechanism. Instead of describing the struct with some string
and trying to decode the structure like the compiler would do (with
alignments problem), the structure is now described by its size and
the list of pointers in it. Macros are provided to make this
easy. Here is an example:

struct struct_simpleentry {
TAILQ_ENTRY(struct_simpleentry) s_entries;
int g1;
struct struct_simple *g2;
struct struct_simple g3;
};
MARSHAL_DECLARE_BEGIN(struct_simpleentry)
MARSHAL_ADD_TQE(struct_simpleentry, s_entries)
MARSHAL_ADD_POINTER(struct_simpleentry, struct_simple, g2)
MARSHAL_ADD_SUBSTRUCT(struct_simpleentry, struct_simple, g3)
MARSHAL_DECLARE_END(struct_simpleentry);

This enables the use of pointers, with detection of circular
references and therefore support of lists.

While only pointers need to be described, it is also possible to add
sub structure to avoid specifying (again) its list of pointers if it
has already been specified.

The use of this mechanism should simplify the client/server code.

12 years agotests: only compile check_snmp if SNMP support is available
Vincent Bernat [Sat, 21 Jan 2012 13:44:11 +0000 (14:44 +0100)] 
tests: only compile check_snmp if SNMP support is available

12 years agosnmp: ensure single inclusion of agent.h header
Vincent Bernat [Sat, 21 Jan 2012 10:30:23 +0000 (11:30 +0100)] 
snmp: ensure single inclusion of agent.h header

12 years agosnmp: add unit tests
Vincent Bernat [Thu, 19 Jan 2012 19:26:31 +0000 (20:26 +0100)] 
snmp: add unit tests

This also happens to fix some minor issues with SNMP implementation.

12 years agotests: Simplify Makefile.am
Vincent Bernat [Wed, 18 Jan 2012 14:06:39 +0000 (15:06 +0100)] 
tests: Simplify Makefile.am

12 years agoStart branch 0.6.
Vincent Bernat [Mon, 16 Jan 2012 14:56:51 +0000 (15:56 +0100)] 
Start branch 0.6.

12 years agosnmp: factorisation of agent_h_*med*() functions
Vincent Bernat [Mon, 16 Jan 2012 13:53:38 +0000 (14:53 +0100)] 
snmp: factorisation of agent_h_*med*() functions

12 years agosnmp: factorisation of local/remote port handlers
Vincent Bernat [Mon, 16 Jan 2012 12:38:44 +0000 (13:38 +0100)] 
snmp: factorisation of local/remote port handlers

12 years agosnmp: factorisation of local/remote handlers
Vincent Bernat [Mon, 16 Jan 2012 11:42:05 +0000 (12:42 +0100)] 
snmp: factorisation of local/remote handlers

12 years agosnmp: use a header_*indexed function for local management address
Vincent Bernat [Mon, 16 Jan 2012 10:29:08 +0000 (11:29 +0100)] 
snmp: use a header_*indexed function for local management address

12 years agosnmp: rework indexing
Vincent Bernat [Sun, 15 Jan 2012 22:19:46 +0000 (23:19 +0100)] 
snmp: rework indexing

Add helper functions to write indexed functions.

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

12 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

12 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

12 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.

12 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.

12 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.

12 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)

12 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.

12 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

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

12 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

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

12 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.
12 years agoSpelling corrections
Vincent Bernat [Wed, 16 Nov 2011 21:41:17 +0000 (22:41 +0100)] 
Spelling corrections

12 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.

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

12 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".

12 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.

12 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.

12 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