]> git.ipfire.org Git - thirdparty/lldpd.git/log
thirdparty/lldpd.git
11 years agotokenizer: input buffer was too small 0.7.5
Vincent Bernat [Sat, 22 Jun 2013 11:57:31 +0000 (13:57 +0200)] 
tokenizer: input buffer was too small

11 years agopackaging: update packaging
Vincent Bernat [Sat, 22 Jun 2013 10:55:27 +0000 (12:55 +0200)] 
packaging: update packaging

11 years agobpf: on OpenBSD, invert the filter direction 0.7.4
Vincent Bernat [Sat, 22 Jun 2013 10:15:47 +0000 (12:15 +0200)] 
bpf: on OpenBSD, invert the filter direction

From the manual page:

> Sets or gets the status of the `direction filter` flag.  If
> non-zero, packets matching the specified direction (either
> `BPF_DIRECTION_IN` or `BPF_DIRECTION_OUT`) will be ignored.

11 years agoNEWS: add an entry for the use of `setproctitle()`
Vincent Bernat [Fri, 21 Jun 2013 07:33:40 +0000 (09:33 +0200)] 
NEWS: add an entry for the use of `setproctitle()`

11 years agocompat: declare `setproctitle()` as a printf function
Vincent Bernat [Fri, 21 Jun 2013 07:29:41 +0000 (09:29 +0200)] 
compat: declare `setproctitle()` as a printf function

11 years agodebian: build-depends on libbssd-dev
Vincent Bernat [Fri, 21 Jun 2013 07:13:57 +0000 (09:13 +0200)] 
debian: build-depends on libbssd-dev

11 years agolldpd: when no `setproctitle()` available, don't count neighbors
Vincent Bernat [Fri, 21 Jun 2013 07:13:01 +0000 (09:13 +0200)] 
lldpd: when no `setproctitle()` available, don't count neighbors

11 years agolldpd: count number of chassis to get number of neighbors
Vincent Bernat [Fri, 21 Jun 2013 07:10:02 +0000 (09:10 +0200)] 
lldpd: count number of chassis to get number of neighbors

Also, if only one neighbor, just display its name.

11 years agolldpd: don't call `lldpd_count_neighbors()` too many times
Vincent Bernat [Fri, 21 Jun 2013 07:01:30 +0000 (09:01 +0200)] 
lldpd: don't call `lldpd_count_neighbors()` too many times

11 years agobuild: use libbsd if available, also use `setproctitle()`
Vincent Bernat [Fri, 21 Jun 2013 00:55:50 +0000 (02:55 +0200)] 
build: use libbsd if available, also use `setproctitle()`

The monitor process will be titled "monitor", while the unprivileged
one will have the number of neighbors displayed. We provide an empty
fallback since this function is not essential.

On Linux, we expect `setproctitle()` to be available in `libbsd`. This
makes functions like `strlcpy()` and `fgetln()` also
available. However, the headers are `bsd/string.h`, so we either need
to declare the prototype or include those new headers (or use the
overlay system). A simple thing to do is to detect the usage of libbsd
and include the appropriate headers in this case.

11 years agolldpcli: `configure system platform` to override platform description
Vincent Bernat [Thu, 20 Jun 2013 23:24:04 +0000 (01:24 +0200)] 
lldpcli: `configure system platform` to override platform description

11 years agolldpcli: `configure system description` to override chassis description
Vincent Bernat [Thu, 20 Jun 2013 23:15:15 +0000 (01:15 +0200)] 
lldpcli: `configure system description` to override chassis description

11 years agolldpcli: split `conf.c` into `conf-system.c` and `conf-lldp.c`.
Vincent Bernat [Thu, 20 Jun 2013 23:01:46 +0000 (01:01 +0200)] 
lldpcli: split `conf.c` into `conf-system.c` and `conf-lldp.c`.

11 years agolldpcli: `configure system interface pattern` instead of `configure lldp iface-pattern`
Vincent Bernat [Thu, 20 Jun 2013 22:58:51 +0000 (00:58 +0200)] 
lldpcli: `configure system interface pattern` instead of `configure lldp iface-pattern`

`configure system` will contain non-LLDP related stuff. Moreover, we
may add `configure system interface alias rewrite` to enable the
rewrite of ifalias (a long awaited feature).

12 years agolibevent: use GitHub git tree
Vincent Bernat [Sun, 9 Jun 2013 12:23:23 +0000 (14:23 +0200)] 
libevent: use GitHub git tree

Sourceforge one is out-of-date

12 years agodebian: sync packaging with official Debian package
Vincent Bernat [Sun, 9 Jun 2013 09:32:04 +0000 (11:32 +0200)] 
debian: sync packaging with official Debian package

12 years agolibevent: switch to patches-2.0 branch to get the appropriate automake fix
Vincent Bernat [Sun, 9 Jun 2013 09:17:52 +0000 (11:17 +0200)] 
libevent: switch to patches-2.0 branch to get the appropriate automake fix

libevent 2.0.21 is not compatible with automake 2.13. libevent 2.0.22
will be but is not released.

12 years agogit: ignore test-driver, generated by recent automake versions
Vincent Bernat [Sun, 9 Jun 2013 09:13:26 +0000 (11:13 +0200)] 
git: ignore test-driver, generated by recent automake versions

12 years agoFixed some boundary conditions in code that cleans
Roopa Prabhu [Sat, 8 Jun 2013 08:30:43 +0000 (10:30 +0200)] 
Fixed some boundary conditions in code that cleans
remote ports on ttl expiry.

Problem:
- ttl expires, cleanup check fails to detect that ttl has elapsed
and skips cleanup
- After that, The ttl timer set routine again ends up setting the timer to ttl
resulting in 2 * ttl time for the expired rport to get released

(The test I did was with 1 port)

12 years agoliblldpctl: fix infinite loop when user is reading fixed chunks
Pradosh Mohapatra [Fri, 7 Jun 2013 06:28:23 +0000 (08:28 +0200)] 
liblldpctl: fix infinite loop when user is reading fixed chunks

ISSUE:

_lldpctl_do_something() has the following loop for receiving a complete
message:

while ((bytes_needed = ctl_msg_recv_unserialized(...)) > 0) {
    _lldpctl_needs(bytes_needed)
}

ctl_msg_recv_unserialized() processes the received message and determines
how many more bytes are needed. First time, it requests "header" worth of
bytes. Once it receives that, it looks at header->len to determine next
set of bytes.

_lldpctl_needs() calls the connection's receive() routine to receive a
chunk of data and copies that over the a buffer in the connection structure,
either by malloc/copy or realloc/memmove. This buffer is called
conn->input_buffer. conn->input_buffer_len stores how many bytes are
currently in conn->input_buffer.

The issue is with the following statement in _lldpctl_needs():

        if (conn->input_buffer_len >= length) return 0;

where length is bytes_needed in the above illustration.

Suppose the message requires 16578 bytes. The connection's receive()
routine provided by the application reads in chunks of 1024 bytes.
With the above logic, the loop will execute successfully for 16 times
with the following resultant state:

conn->input_buffer_len = 16384
bytes_needed = 194

The above conditional statement in the beginning of _lldpctl_needs()
will cause it to return 0. ctl_msg_recv_unserialized() will keep asking
for 194 more bytes. The while() loop goes ad infinitum.

PATCH:

Remove the above statement. It is not needed.

12 years agomarshal: fix alignment issue when unserializing
Vincent Bernat [Thu, 6 Jun 2013 21:54:23 +0000 (23:54 +0200)] 
marshal: fix alignment issue when unserializing

On some archs (Sparc and sometimes ARM), unaligned access are
forbidden. Instead of copying unaligned structures with `memcpy()`, we
ensure that `struct marshal_serialized` structures are always
correctly aligned, including when they are serialized. This is done by
adding some padding before appending such a structure to a buffer.

12 years agolog: fix memory leak when using a log handler
Vincent Bernat [Thu, 6 Jun 2013 21:23:13 +0000 (23:23 +0200)] 
log: fix memory leak when using a log handler

This is quite important for liblldpctl.

12 years agomarshal: don't declare serialize/unserialize helper for string
Vincent Bernat [Thu, 6 Jun 2013 20:48:42 +0000 (22:48 +0200)] 
marshal: don't declare serialize/unserialize helper for string

When using convenience library, this may lead to multiple definition
of this function. We are better off not defining it and using
`marshal_unserialize()` in `client.c` instead.

12 years agolldpd: fix an alignment (non-)issue
Vincent Bernat [Thu, 6 Jun 2013 20:38:43 +0000 (22:38 +0200)] 
lldpd: fix an alignment (non-)issue

12 years agolldpcli: don't use an hack to pass the writer to watch callback
Vincent Bernat [Thu, 6 Jun 2013 20:38:28 +0000 (22:38 +0200)] 
lldpcli: don't use an hack to pass the writer to watch callback

Use a proper structure for this purpose.

12 years agomarshal: provide type-specific serialization/unserialization functions
Vincent Bernat [Sun, 2 Jun 2013 13:49:09 +0000 (15:49 +0200)] 
marshal: provide type-specific serialization/unserialization functions

Those functions should be used in place of `marshal_serialize()` and
`marshal_unserialize()` if possible.

12 years agoclient: fix a memory leak when changing lldpd configuration
Vincent Bernat [Sat, 1 Jun 2013 10:07:43 +0000 (12:07 +0200)] 
client: fix a memory leak when changing lldpd configuration

lldpd_config_cleanup() does not free the configuration structure.

12 years agoctl: fix a memory leak when cleaning control socket
Vincent Bernat [Sat, 1 Jun 2013 10:05:11 +0000 (12:05 +0200)] 
ctl: fix a memory leak when cleaning control socket

12 years agoclient: trigger interface refresh when updating interface pattern
Vincent Bernat [Sat, 1 Jun 2013 09:57:09 +0000 (11:57 +0200)] 
client: trigger interface refresh when updating interface pattern

12 years agolib: fix a memory leak when modifying interface pattern
Vincent Bernat [Sat, 1 Jun 2013 09:48:24 +0000 (11:48 +0200)] 
lib: fix a memory leak when modifying interface pattern

12 years agolldpcli: document "configure lldp iface-pattern" in manual page
Vincent Bernat [Sat, 1 Jun 2013 09:44:33 +0000 (11:44 +0200)] 
lldpcli: document "configure lldp iface-pattern" in manual page

12 years agolldpctl.h: document possibility to write iface-pattern
Vincent Bernat [Sat, 1 Jun 2013 09:41:57 +0000 (11:41 +0200)] 
lldpctl.h: document possibility to write iface-pattern

12 years agolldpcli: Add support to set iface-pattern
roopa [Fri, 17 May 2013 02:58:58 +0000 (19:58 -0700)] 
lldpcli: Add support to set iface-pattern

This patch adds a new configure lldp command to set iface-pattern

Currently only sets iface-pattern on the server.
More incremental work is needed to trigger an interface
update and send.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
12 years agosonmp: allow SONMP unittests to work without a global config
Vincent Bernat [Tue, 14 May 2013 22:10:17 +0000 (00:10 +0200)] 
sonmp: allow SONMP unittests to work without a global config

12 years agoman: document tx-hold
Vincent Bernat [Tue, 14 May 2013 20:55:11 +0000 (22:55 +0200)] 
man: document tx-hold

12 years agoman: tx-interval cannot be set per port
Vincent Bernat [Tue, 14 May 2013 20:53:25 +0000 (22:53 +0200)] 
man: tx-interval cannot be set per port

12 years agolldpd: Add tx_hold
roopa [Tue, 14 May 2013 12:43:00 +0000 (05:43 -0700)] 
lldpd: Add tx_hold

This patch adds a new parameter tx_hold and also
changes txTTL calculation to be a multiple of
tx_hold and tx_interval

Also adds cli support to configure tx-hold:
#lldpcli configure lldp tx-hold 1

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
12 years agolldpcli: don't rely on `fgetln()` providing a NULL-terminated string
Vincent Bernat [Tue, 14 May 2013 20:49:48 +0000 (22:49 +0200)] 
lldpcli: don't rely on `fgetln()` providing a NULL-terminated string

From the manual page of some BSD, this is not the case.

12 years agolldpcli: don't free input line
Vincent Bernat [Tue, 14 May 2013 20:36:36 +0000 (22:36 +0200)] 
lldpcli: don't free input line

Line returned by `fgetln()` should not be freed, including when we use
the implementation we provide in `fgetln.c`. This fix an heap
corruption.

12 years agolib: keep space for new values in `lldpctl_key_t`
Vincent Bernat [Tue, 14 May 2013 07:23:21 +0000 (09:23 +0200)] 
lib: keep space for new values in `lldpctl_key_t`

By inserting new values in the middle `lldpctl_key_t`, we break the
ABI of the library. To ensure future backward compatibility, we
introduce some space between each block. Unfortunately, this breaks
the current backward compatibility.

12 years agodebian: synchronize packaging with Debian
Vincent Bernat [Sun, 12 May 2013 11:19:15 +0000 (13:19 +0200)] 
debian: synchronize packaging with Debian

12 years agorelease: prepare 0.7.3
Vincent Bernat [Sun, 12 May 2013 09:21:19 +0000 (11:21 +0200)] 
release: prepare 0.7.3

12 years agoNEWS: add a word about Solaris support 0.7.3
Vincent Bernat [Wed, 8 May 2013 22:05:36 +0000 (00:05 +0200)] 
NEWS: add a word about Solaris support

12 years agosolaris: less intrusive way to get CMSG_* macros
Vincent Bernat [Wed, 8 May 2013 22:05:03 +0000 (00:05 +0200)] 
solaris: less intrusive way to get CMSG_* macros

The use of _XOPEN_SOURCE breaks most BSD.

12 years agosolaris: assume that IP forwarding is disabled
Vincent Bernat [Wed, 8 May 2013 21:34:27 +0000 (23:34 +0200)] 
solaris: assume that IP forwarding is disabled

We don't know how to detect that while in the chroot.

12 years agosolaris: preliminary support
Vincent Bernat [Mon, 6 May 2013 19:31:42 +0000 (21:31 +0200)] 
solaris: preliminary support

Basic functionalities are present. However, the interface support is
very poor. There is no way to detect bridges, VLAN and
aggregates. There is no MAC/PHY support. There is no detection of
wireless devices.

The code to detect IP forwarding is here but does not work inside the
chroot.

12 years agoNEWS: add an entry about LLDP-MED fast start.
Vincent Bernat [Wed, 8 May 2013 11:45:46 +0000 (13:45 +0200)] 
NEWS: add an entry about LLDP-MED fast start.

12 years agolldpcli: allow to enable/disable fast-start and set delay
Vincent Bernat [Wed, 8 May 2013 11:34:06 +0000 (13:34 +0200)] 
lldpcli: allow to enable/disable fast-start and set delay

12 years agolldpd: enable fast start by default
Vincent Bernat [Wed, 8 May 2013 10:23:39 +0000 (12:23 +0200)] 
lldpd: enable fast start by default

12 years agolldpd: make fast start work only when receiving LLDP-MED LLDPDU
Vincent Bernat [Wed, 8 May 2013 10:23:27 +0000 (12:23 +0200)] 
lldpd: make fast start work only when receiving LLDP-MED LLDPDU

12 years agolldpd: fast start support
roopa [Tue, 7 May 2013 18:43:57 +0000 (11:43 -0700)] 
lldpd: fast start support

This patch adds support for lldpd fast start.

The feature is currently disabled by default.
A cli command to enable the feature is in the
works.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
12 years agoconfigure: use `AC_PROG_EGREP` to find a suitable `grep -E`
Vincent Bernat [Wed, 8 May 2013 08:27:18 +0000 (10:27 +0200)] 
configure: use `AC_PROG_EGREP` to find a suitable `grep -E`

On some systems, this is `ggrep -E`.

12 years agolib: use uint8_t instead of u_int8_t
Vincent Bernat [Tue, 7 May 2013 20:05:01 +0000 (22:05 +0200)] 
lib: use uint8_t instead of u_int8_t

`uint8_t` is part of C99 and comes from `stdint.h`. `u_int8_t` works
on many OS but not on some. There are many other occurrences but we
fix those here because this is the only public header.

12 years agoconfigure: display configured OS
Vincent Bernat [Tue, 7 May 2013 19:23:33 +0000 (21:23 +0200)] 
configure: display configured OS

12 years agolldpcli: complete the manual page with the syntax of "show statistics"
Vincent Bernat [Mon, 6 May 2013 19:44:00 +0000 (21:44 +0200)] 
lldpcli: complete the manual page with the syntax of "show statistics"

12 years agolldpcli: summary of statistics is done on provided ports only
Vincent Bernat [Mon, 6 May 2013 19:41:02 +0000 (21:41 +0200)] 
lldpcli: summary of statistics is done on provided ports only

12 years agolldpcli: fix two warnings introduced by the previous commit
Vincent Bernat [Mon, 6 May 2013 19:37:26 +0000 (21:37 +0200)] 
lldpcli: fix two warnings introduced by the previous commit

12 years agoNEWS: add an entry for "show statistics summary" command
Vincent Bernat [Mon, 6 May 2013 19:35:02 +0000 (21:35 +0200)] 
NEWS: add an entry for "show statistics summary" command

12 years agolldpcli: global stats command
roopa [Mon, 6 May 2013 13:39:54 +0000 (06:39 -0700)] 
lldpcli: global stats command

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
12 years agoos: add support for DragonFly BSD
Vincent Bernat [Sun, 5 May 2013 17:38:27 +0000 (19:38 +0200)] 
os: add support for DragonFly BSD

This is similar to FreeBSD except that DragonFly BSD does not support
the following:

 - link aggregation
 - interface description
 - DMI

12 years agonetlink: fix IP address discovery
Vincent Bernat [Fri, 3 May 2013 19:19:21 +0000 (21:19 +0200)] 
netlink: fix IP address discovery

Since the switch to Netlink, the IP address was not advertised
correctly. Fix `netlink_send()`. Patch courtesy of Pradosh Mohapatra
from Cumulus Networks.

12 years agolldpcli: fix typo in the man page for setting altitude
Vincent Bernat [Tue, 30 Apr 2013 12:54:34 +0000 (14:54 +0200)] 
lldpcli: fix typo in the man page for setting altitude

12 years agobsd: don't report a warning when no media information is present
Vincent Bernat [Sat, 27 Apr 2013 08:59:52 +0000 (10:59 +0200)] 
bsd: don't report a warning when no media information is present

On NetBSD, xennet interfaces do not support reporting media
information. This is expected. Just log this at debug level.
Closes: #34.
12 years agobuild: both client and lib may need shipped headers in include/ 0.7.2
Vincent Bernat [Sat, 20 Apr 2013 00:59:47 +0000 (02:59 +0200)] 
build: both client and lib may need shipped headers in include/

For example, when sys/queue.h is incomplete.

12 years agofgetln: getline may need _GNU_SOURCE
Vincent Bernat [Sat, 20 Apr 2013 00:53:50 +0000 (02:53 +0200)] 
fgetln: getline may need _GNU_SOURCE

12 years agoinstall: install ChangeLog
Vincent Bernat [Fri, 19 Apr 2013 19:31:33 +0000 (21:31 +0200)] 
install: install ChangeLog

12 years agobsd: reorder headers to fix compilation of various BSD
Vincent Bernat [Fri, 19 Apr 2013 18:56:36 +0000 (20:56 +0200)] 
bsd: reorder headers to fix compilation of various BSD

12 years agoPrepare for 0.7.2 release.
Vincent Bernat [Fri, 19 Apr 2013 18:38:37 +0000 (20:38 +0200)] 
Prepare for 0.7.2 release.

12 years agodoc: update NEWS entry for "show statistics" command
Vincent Bernat [Tue, 16 Apr 2013 21:57:59 +0000 (23:57 +0200)] 
doc: update NEWS entry for "show statistics" command

12 years agolib: remove unneeded struct for stats in private.h
Vincent Bernat [Tue, 16 Apr 2013 21:55:02 +0000 (23:55 +0200)] 
lib: remove unneeded struct for stats in private.h

12 years agolldpcli: use human labels for statistics
Vincent Bernat [Tue, 16 Apr 2013 21:46:57 +0000 (23:46 +0200)] 
lldpcli: use human labels for statistics

Also fix display of "Ageout" and "Inserted".

12 years agolldpcli: reuse cmd_restrict_ports() to handle port restriction in "show stats"
Vincent Bernat [Tue, 16 Apr 2013 21:43:07 +0000 (23:43 +0200)] 
lldpcli: reuse cmd_restrict_ports() to handle port restriction in "show stats"

12 years agoevent: add missing <time.h> include
Vincent Bernat [Tue, 16 Apr 2013 21:40:35 +0000 (23:40 +0200)] 
event: add missing <time.h> include

12 years agolldpcli: Add support to display lldp stats
roopa [Tue, 16 Apr 2013 18:54:16 +0000 (11:54 -0700)] 
lldpcli: Add support to display lldp stats

This patch adds a new lldpcli command and required
server code to display per interface lldp stats

Sample output:

#lldpcli show statistics ports eth0
---------------------------------------------------
LLDP statistics:
---------------------------------------------------
Interface:    eth0
  tx_cnt:       2
  rx_cnt:       2
  rx_discarded_cnt: 0
  rx_unrecognized_cnt: 0
  ageout_cnt:
  insert_cnt:
  delete_cnt:   0
---------------------------------------------------

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
12 years agoRevert "debian: on Debian, don't ship upstart script"
Vincent Bernat [Tue, 16 Apr 2013 07:26:41 +0000 (09:26 +0200)] 
Revert "debian: on Debian, don't ship upstart script"

This reverts commit d5e9611c1cc903410f42a8272898b31404559c6f.

We can't request dh-autoreconf and have a buggy dh_installinit at the
same time. Let's remove this code about upstart. This only needs to be
fixed in backports.

12 years agodebian: on Debian, don't ship upstart script
Vincent Bernat [Tue, 16 Apr 2013 07:08:14 +0000 (09:08 +0200)] 
debian: on Debian, don't ship upstart script

12 years agodebian: require dh-autoreconf for autoreconf.mk to be present
Vincent Bernat [Tue, 16 Apr 2013 07:07:46 +0000 (09:07 +0200)] 
debian: require dh-autoreconf for autoreconf.mk to be present

12 years agocdp: force CDPv2 protocol with `-ccc` argument
Vincent Bernat [Fri, 12 Apr 2013 06:32:25 +0000 (08:32 +0200)] 
cdp: force CDPv2 protocol with `-ccc` argument

12 years agolldpd: really accepts only 4 neighbors
Vincent Bernat [Tue, 2 Apr 2013 18:26:30 +0000 (20:26 +0200)] 
lldpd: really accepts only 4 neighbors

12 years agolldpd: enforce TTL on remote chassis
Vincent Bernat [Sun, 31 Mar 2013 16:33:33 +0000 (18:33 +0200)] 
lldpd: enforce TTL on remote chassis

Remote chassis were not expired in a timely manner. They were only
expired when a change happened on an interface. To fix this, we
maintain a timer that will be triggered when an interface is about to
expire. The timer is updated when a change happens and rescheduled
once it is run.

12 years agolldpd: limit the maximum of neighbors per port and per protocol
Vincent Bernat [Sun, 31 Mar 2013 10:59:09 +0000 (12:59 +0200)] 
lldpd: limit the maximum of neighbors per port and per protocol

lldpd memory can be exhausted by adding too many neighbors. Moreover,
the communication with lldpcli is limited to a fixed number of
neighbors (packets may not exceed 1 << 19 in size). Therefore, we put
a hard limit to the number of neighbors accepted for a given port, for
a given protocol.

The limit will be tunable in the future.

Feature suggested by Chris Yang. Closes #32.

12 years agoREADME: add a note about executing lldpd without installing it
Vincent Bernat [Sat, 30 Mar 2013 22:31:10 +0000 (23:31 +0100)] 
README: add a note about executing lldpd without installing it

12 years agolib: fix sync_recv to handle segmentation
Vincent Bernat [Sat, 30 Mar 2013 14:42:51 +0000 (15:42 +0100)] 
lib: fix sync_recv to handle segmentation

While it should not happen with Unix sockets, a read() can return only
partial data. Therefore, we continue to poll until we get the
appropriate length.

This fix was proposed by Chris Yang. Closes #31.

12 years agotest: add an helper to generate many neighbors
Vincent Bernat [Sat, 30 Mar 2013 14:27:57 +0000 (15:27 +0100)] 
test: add an helper to generate many neighbors

Using scapy, we generate a pcap with as many neighbors we need.

12 years agolldpd: correctly parse /etc/os-release
Vincent Bernat [Sat, 30 Mar 2013 14:18:00 +0000 (15:18 +0100)] 
lldpd: correctly parse /etc/os-release

The previous parsing was just bogus and eated latest characters.

12 years agolib: `ctlname` in `lldpctl_conn_t` is not const
Vincent Bernat [Tue, 26 Feb 2013 13:28:57 +0000 (14:28 +0100)] 
lib: `ctlname` in `lldpctl_conn_t` is not const

It is allocated on the heap by `strdup()`

12 years agolib: bump version-info of liblldpctl for `lldpctl_new_name()` function
Vincent Bernat [Tue, 26 Feb 2013 13:26:43 +0000 (14:26 +0100)] 
lib: bump version-info of liblldpctl for `lldpctl_new_name()` function

12 years agoAdd a argument to specify the unix control socket 29/head
Zang MingJie [Tue, 26 Feb 2013 12:12:25 +0000 (20:12 +0800)] 
Add a argument to specify the unix control socket

12 years agoAdd autoreconf to call autogen.sh while build deb 28/head
Zealot [Tue, 26 Feb 2013 09:16:43 +0000 (17:16 +0800)] 
Add autoreconf to call autogen.sh while build deb

12 years agobuild: also ship ./autogen.sh
Vincent Bernat [Wed, 20 Feb 2013 22:12:32 +0000 (23:12 +0100)] 
build: also ship ./autogen.sh

12 years agobuild: use the same way as libbsd for version and changelog
Vincent Bernat [Wed, 20 Feb 2013 22:11:59 +0000 (23:11 +0100)] 
build: use the same way as libbsd for version and changelog

See:
 http://cgit.freedesktop.org/libbsd/tree/

12 years agobuild: try to save current version in `VERSION`
Vincent Bernat [Wed, 20 Feb 2013 21:35:57 +0000 (22:35 +0100)] 
build: try to save current version in `VERSION`

12 years agoinstall: remove liblldpctl previous symbolic link
Vincent Bernat [Wed, 13 Feb 2013 07:35:18 +0000 (08:35 +0100)] 
install: remove liblldpctl previous symbolic link

Otherwise, we get an error on "make install".

12 years agoconfigure: only match tags starting with a digit for version number
Vincent Bernat [Tue, 12 Feb 2013 19:53:36 +0000 (20:53 +0100)] 
configure: only match tags starting with a digit for version number

12 years agobuild: check if libevent as provided by pkg-config is working
Vincent Bernat [Mon, 4 Feb 2013 07:38:08 +0000 (08:38 +0100)] 
build: check if libevent as provided by pkg-config is working

If a user installs both libevent 2.0.x and libevent 1.4.x, pkg-config
may report libevent 2.0.x where it really is 1.4.x. The system is
broken in this case but we work-around this by using the shipped
libevent.

12 years agodoc: add documentation about reading /etc/lldpd.conf and /etc/lldpd.d/*
Vincent Bernat [Sun, 3 Feb 2013 08:58:01 +0000 (09:58 +0100)] 
doc: add documentation about reading /etc/lldpd.conf and /etc/lldpd.d/*

12 years agointerfaces: whitelist an interface before being checking lower
Vincent Bernat [Sun, 3 Feb 2013 08:38:19 +0000 (09:38 +0100)] 
interfaces: whitelist an interface before being checking lower

Some whitelisted interfaces, like dsa, have a lower interface in
managed mode but we still want to advertise on it. Move the check for
lower interface after whitelisting.

12 years agolibevent: produce smaller binaries when shipping libevent
Vincent Bernat [Tue, 29 Jan 2013 20:42:37 +0000 (21:42 +0100)] 
libevent: produce smaller binaries when shipping libevent

When shipping libevent, we try to build smaller binaries by disabling
unneeded stuff (openssl, threading, malloc replacement, debug stuff)
and enabling `--gc-sections`. On various tests, this remove 80K from
lldpd size (stripping excluded).

12 years agolldpcli: possibility to configure tx-delay
Vincent Bernat [Tue, 22 Jan 2013 22:14:53 +0000 (23:14 +0100)] 
lldpcli: possibility to configure tx-delay

12 years agolldpcli: fix exit command
Vincent Bernat [Tue, 22 Jan 2013 22:02:48 +0000 (23:02 +0100)] 
lldpcli: fix exit command

The exit command did not exit lldpcli anymore.