Here's an easy update to the latest version of ladvd. New features
include:
o first stab at verbose decoding in ladvdc
o use libpcap for sending / receiving packets
o rewritten support for management interfaces
o fix for active/backup bonding
o LLDP-MED fixes
o Cisco Nexus LLDP trailers fix
o EDP fixes
o some additional chroot restrictions (based on OpenSSH)
o support for receive only operation
o improved terminal handling in ladvdc
More details can be found at the Google code project page over at
http://code.google.com/p/ladvd/ Changes to the port come down to:
o Drop the BPF direction patch (included now)
o Move to autoconf 2.65
o Add pcap to WANTLIB
o Use mandoc for the manpages
Please test and provide feedback. This has been running fine for me
for a couple of days now on amd64. Tests on more (esoteric) platforms
very welcome.
Cheers,
Paul 'WEiRD' de Weerd
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/ladvd/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile 23 Apr 2011 17:40:34 -0000 1.11
+++ Makefile 15 Feb 2012 08:50:54 -0000
@@ -2,8 +2,7 @@
COMMENT = link advertisement (LLDP/CDP etc) daemon
-DISTNAME = ladvd-0.9.2
-REVISION = 0
+DISTNAME = ladvd-1.0.3
CATEGORIES = net
HOMEPAGE = http://blinkenlights.nl/software/ladvd/
@@ -18,12 +17,11 @@
MASTER_SITES = ${HOMEPAGE}
-AUTOCONF_VERSION = 2.64
+AUTOCONF_VERSION = 2.65
CONFIGURE_STYLE = gnu autoconf
CONFIGURE_ARGS += --with-user=_ladvd --with-chroot-dir=/var/empty
-USE_GROFF = Yes
-WANTLIB = c event
+WANTLIB = c event pcap
# enables regression tests; GNU configure script enables them
# only if devel/check is available at build time
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/ladvd/distinfo,v
retrieving revision 1.5
diff -u -r1.5 distinfo
--- distinfo 27 Sep 2010 19:26:06 -0000 1.5
+++ distinfo 15 Feb 2012 09:23:10 -0000
@@ -1,5 +1,5 @@
-MD5 (ladvd-0.9.2.tar.gz) = VEIap0srwXncCNQti7cwfA==
-RMD160 (ladvd-0.9.2.tar.gz) = hRd4CkLaBbbCXPPvvTVQ5yR36Hw=
-SHA1 (ladvd-0.9.2.tar.gz) = ISdR4bFXTa+ys6eLNxd16NvQy2Y=
-SHA256 (ladvd-0.9.2.tar.gz) = FyFknGTSVoq3JPe4C/vKHHly9YR6EfXW0JYS7pkIxoo=
-SIZE (ladvd-0.9.2.tar.gz) = 450906
+MD5 (ladvd-1.0.3.tar.gz) = cu1HdfgoVJyJUXK7dCF2fQ==
+RMD160 (ladvd-1.0.3.tar.gz) = CeiCsjbE+45p0hvQF2OjcRGYQzo=
+SHA1 (ladvd-1.0.3.tar.gz) = y1aA5B5+H5ctaABVS6x5smNKZVI=
+SHA256 (ladvd-1.0.3.tar.gz) = wLsaglThnWYMoNpCvb0gbe6rocG/WbtGfNaHDBaJCA8=
+SIZE (ladvd-1.0.3.tar.gz) = 463530
Index: patches/patch-src_master_c
===================================================================
RCS file: patches/patch-src_master_c
diff -N patches/patch-src_master_c
--- patches/patch-src_master_c 27 Sep 2010 19:26:06 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,16 +0,0 @@
-$OpenBSD: patch-src_master_c,v 1.1 2010/09/27 19:26:06 weerd Exp $
-Merge BPF direction fix from upstream
-
-http://code.google.com/p/ladvd/source/detail?r=d0ee6ffcfd
-
---- src/master.c.orig Thu Sep 23 11:27:37 2010
-+++ src/master.c Thu Sep 23 11:28:02 2010
-@@ -610,7 +610,7 @@ int master_socket(struct rawfd *rfd) {
- if (ioctl(fd, BIOCSDIRECTION, (caddr_t)&enable) < 0)
- my_fatal("unable to configure BPF direction for %s", rfd->name);
- #elif defined BIOCSDIRFILT
-- enable = BPF_DIRECTION_IN;
-+ enable = BPF_DIRECTION_OUT;
- if (ioctl(fd, BIOCSDIRFILT, (caddr_t)&enable) < 0)
- my_fatal("unable to configure BPF direction for %s", rfd->name);
- #endif
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/