debian/0000755000000000000000000000000011675072167007202 5ustar debian/docs0000644000000000000000000000005010645377721010050 0ustar docs/FAQ docs/large_scale_beaconing.txt debian/install0000644000000000000000000000004510645377721010572 0ustar contrib/matrix.pl /usr/share/dbeacon debian/dirs0000644000000000000000000000004110645377721010061 0ustar /etc/dbeacon /etc/dbeacon/matrix debian/rules0000755000000000000000000000035511331414627010253 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_build: dh_auto_build chmod +x contrib/matrix.pl override_dh_auto_install: PREFIX=/usr dh_auto_install debian/compat0000644000000000000000000000000211331414627010366 0ustar 7 debian/control0000644000000000000000000000141011667221423010571 0ustar Source: dbeacon Section: net Priority: optional Maintainer: Faidon Liambotis Build-Depends: debhelper (>= 7.0.50) Standards-Version: 3.9.2 Package: dbeacon Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base Recommends: libxml-parser-perl, ${perl:Depends} Suggests: librrds-perl Description: Multicast beacon dbeacon is a multicast beacon: its main purpose is to monitor other beacons' reachability and collect statistics such as loss, delay and jitter between them. . dbeacon supports both IPv4 and IPv6 multicast, collecting information using both Any Source Multicast (ASM) and Source-Specific Multicast (SSM). . This package also includes dbeacon matrix, a Perl script to generate beacon reachability matrices in HTML. debian/manpages0000644000000000000000000000004210645377721010714 0ustar docs/dbeacon.1 docs/matrix.conf.5 debian/copyright0000644000000000000000000000231210645377721011133 0ustar This package was debianized by Hugo Santos . It is now maintained by Faidon Liambotis . It was downloaded from http://fivebits.net/proj/dbeacon/ Upstream Author: Hugo Santos Copyright (C) 2005-2007 Hugo Santos License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License with your Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with the Debian GNU/Linux hostapd source package as the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU GPL License can be found in /usr/share/common-licenses/GPL. debian/examples0000644000000000000000000000012210645377721010736 0ustar contrib/dbeacon.conf.sample contrib/matrix.conf.sample contrib/apache-matrix-conf debian/patches/0000755000000000000000000000000011667210330010614 5ustar debian/patches/series0000644000000000000000000000003011667207313012031 0ustar rfc3542-ipv6recvpktinfo debian/patches/rfc3542-ipv6recvpktinfo0000644000000000000000000000246711667210327015003 0ustar Description: fix IPv6 ssmping server functionality for new kernels/glibc The original implementation used setsockopt with IPV6_PKTINFO to receive source/destination addresses, as defined in RFC 2292 (and glibc <= 2.4). . Unfortunately, it seems that RFC 3542 superseded RFC 2292 in a backwards-incompatible way, replacing the setsockopt argument with IPV6_RECVPKTINFO. . Fix this in a backwards-compatible way using #ifdefs; note that the other uses of IPV6_PKTINFO in the code are valid and should stay that way . This fixes ssmping server functionality for IPv6. Author: Faidon Liambotis Forwarded: no Last-Update: 2011-12-05 --- dbeacon-0.3.9.3.orig/dbeacon_posix.cpp +++ dbeacon-0.3.9.3/dbeacon_posix.cpp @@ -252,12 +252,19 @@ bool SetHops(int sock, const address &ad } bool RequireToAddress(int sock, const address &addr) { -#ifdef IPV6_PKTINFO +#if defined(IPV6_RECVPKTINFO) || defined(IPV6_PKTINFO) + int on = 1; +#endif + if (addr.family() == AF_INET6) { - int on = 1; +#ifdef IPV6_RECVPKTINFO + /* RFC 3542 / glibc >= 2.5 */ + return setsockopt(sock, IPPROTO_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)) == 0; +#elif defined(IPV6_PKTINFO) + /* RFC 2292 / glibc <= 2.4 */ return setsockopt(sock, IPPROTO_IPV6, IPV6_PKTINFO, &on, sizeof(on)) == 0; - } #endif + } return true; } debian/init.d0000644000000000000000000000401311674670142010304 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: dbeacon # Required-Start: $network $remote_fs # Required-Stop: $network $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Multicast Beacon # Description: Multicast Beacon supporting both IPv4 and IPv6 multicast, collecting information using # both Any Source Multicast (ASM) and Source-Specific Multicast (SSM). ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/bin/dbeacon NAME=dbeacon DESC="Multicast Beacon" CONFIG_DIR=/etc/dbeacon test -x $DAEMON || exit 0 test -d $CONFIG_DIR || exit 0 DAEMON_OPTS="-syslog" . /lib/lsb/init-functions case "$1" in start) log_daemon_msg "Starting $DESC" for CONFIG in `cd $CONFIG_DIR; ls *.conf 2> /dev/null`; do NAME=${CONFIG%%.conf} log_progress_msg "$NAME" STATUS=0 start-stop-daemon --start --quiet \ --pidfile /var/run/dbeacon.${NAME}.pid \ --exec $DAEMON -- $DAEMON_OPTS \ -D \ -c ${CONFIG_DIR}/${NAME}.conf \ -p /var/run/dbeacon.${NAME}.pid || STATUS=1 done log_end_msg ${STATUS:-0} ;; stop) log_daemon_msg "Stopping $DESC" for PIDFILE in `ls /var/run/dbeacon.*.pid 2> /dev/null`; do NAME=`echo $PIDFILE | cut -c18-` NAME=${NAME%%.pid} kill `cat $PIDFILE` || true start-stop-daemon --stop --oknodo --quiet \ --exec $DAEMON --pidfile $PIDFILE log_progress_msg "$NAME" done log_end_msg 0 ;; status) GLOBAL_STATUS=0 for CONFIG in `cd $CONFIG_DIR; ls *.conf 2> /dev/null`; do NAME=${CONFIG%%.conf} status_of_proc -p /var/run/dbeacon.${NAME}.pid dbeacon "dbeacon '${NAME}'" || GLOBAL_STATUS=1 done exit $GLOBAL_STATUS ;; force-reload|restart) $0 stop sleep 1 $0 start ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|status|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/changelog0000644000000000000000000000506211675072167011057 0ustar dbeacon (0.3.9.3-2) unstable; urgency=low * Add a patch that modified a setsockopt() argument to re-enable ssmping functionality with IPv6, broken by newer kernels. * Change the init script to support multiple dbeacon instances, started using configs from /etc/dbeacon/*.conf. Since old installations used /etc/dbeacon/dbeacon.conf, this is backwards-compatible. * Add support for the status action in the init script. * Remove Vcs-Svn & Vcs-Browser, since they don't exist anymore. * Minor fixes to the package's description, thanks to lintian. * Remove obsolete Depends/Recommends. * Update to Standards-Version 3.9.2, no changes needed. -- Faidon Liambotis Fri, 23 Dec 2011 14:29:59 +0200 dbeacon (0.3.9.3-1) unstable; urgency=low * Switch to debhelper 7 & dh. * Add ${misc:Depends} to Depends. * Use Vcs-* headers instead of the deprecated XS-Vcs ones. * Require $remote_fs on init script's LSB headers, since we use /usr (thanks lintian!) * Update to Standards-Version 3.8.4. * Switch to dpkg-source 3.0 (quilt) format to use an orig.tar.bz2 among other things. -- Faidon Liambotis Wed, 10 Feb 2010 17:45:22 +0200 dbeacon (0.3.9.1-1) unstable; urgency=low * First upload to Debian (Closes: #430622). * Several packaging changes. -- Faidon Liambotis Mon, 2 Jul 2007 11:39:13 +0300 dbeacon (0.3.9-1) unstable; urgency=low * Updated to 0.3.9. -- Hugo Santos Fri, 17 Feb 2006 21:16:23 +0000 dbeacon (0.3.8) unstable; urgency=low * Updated to 0.3.8. -- Hugo Santos Mon, 5 Sep 2005 13:05:14 +0100 dbeacon (0.3.7) unstable; urgency=low * Updated to 0.3.7. -- Hugo Santos Wed, 10 Aug 2005 16:31:56 +0100 dbeacon (0.3.6) unstable; urgency=low * Updated to 0.3.6. -- Hugo Santos Tue, 26 Jul 2005 23:07:38 +0100 dbeacon (0.3.5) unstable; urgency=low * Upstream version update. -- Hugo Santos Sun, 10 Apr 2005 02:19:57 +0100 dbeacon (0.3.2) unstable; urgency=low * Another version bump. -- Hugo Santos Thu, 7 Apr 2005 12:42:18 +0100 dbeacon (0.3.1) unstable; urgency=low * Bumped version -- Hugo Santos Wed, 6 Apr 2005 02:25:01 +0100 dbeacon (0.3) unstable; urgency=low * Bumped version -- Hugo Santos Tue, 5 Apr 2005 01:39:52 +0100 dbeacon (0.1-1) unstable; urgency=low * Initial Release. -- Hugo Santos Sun, 19 Mar 2005 18:19:00 +0000 debian/source/0000755000000000000000000000000011334552173010472 5ustar debian/source/format0000644000000000000000000000001411334552731011700 0ustar 3.0 (quilt)