Debian Patches

Status for bandwidthd/2.0.1+cvs20090917-17

Patch Description Author Forwarded Bugs Origin Last update
0007-Fix-recover-CDF-option.patch Fix recover CDF option
Upstream (sourceforge) Tracker id 2018613 (See Bug link)
New upstream bug id 39.
Logan Gunthorpe <logang@deltatee.com> yes debian upstream 2013-07-20
0001-Disable-installation-of-bandwidthd.conf-from-orig-so.patch Disable installation of bandwidthd.conf from orig source Andreas Henriksson <andreas@fatal.se> no 2013-07-20
0002-fix-version-in-configure-script.patch fix version in configure script Andreas Henriksson <andreas@fatal.se> no 2013-07-20
0003-Add-configure-option-for-pgsql-support.patch Add configure option for pgsql support
Add configure option --enable-pgsql to manually be able to select
instead of automagically choosing at build-time, to be able to build
both the static- and postgresql-version of bandwidthd
Andreas Henriksson <andreas@fatal.se> no 2013-07-20
0004-Include-filename-in-syntax-error-logging.patch Include filename in syntax error logging
Say which file the syntax error is in, to make logged error message clear.
Andreas Henriksson <andreas@fatal.se> no 2013-07-20
0005-Add-missing-MAIL-table-header-to-generated-static-ht.patch Add missing "MAIL" table header to generated static html. Andreas Henriksson <andreas@fatal.se> no 2013-07-20
0006-Add-missing-comma-to-fix-syntax-in-created-CDF-files.patch Add missing comma to fix syntax in created CDF files.
I've been using bandwidthd for a while, but since upgrading to lucid I noticed my parsing started acting up, so I investigated. Eventually
discovered that bandwidthd's CDF writing has been broken since a
certain commit last year:

http://bandwidthd.cvs.sourceforge.net/viewvc/bandwidthd/bandwidthd/bandwidthd.c?r1=1.52&r2=1.53

You can see there's two fprintf statements there, but after that
commit there is no comma between the last value of the first fprintf,
and the first value of the second fprintf. It's even easier to spot if
you look at an actual line in a CDF file since this, where you get a
field like "01329001" which is a concatenation of "0" and "1329001".
The fix for this is of course trivial, you just need to add a comma to
the end of the first fprintf on line 827:
Harald Hvaal <harald.hvaal@gmail.com> no 2013-07-20
0008-Fix-subnet-reporting-in-syslog-message.patch Fix subnet reporting in syslog message
With the following entries in etc/bandwidthd.conf, syslog shows:

Feb 24 10:35:13 debian netmon: Monitoring subnet 255.0.0.0 with netmask 255.0.0.0
Feb 24 10:35:13 debian netmon: Monitoring subnet 255.255.0.0 with netmask 255.255.0.0
Feb 24 10:35:13 debian netmon: Monitoring subnet 255.240.0.0 with netmask 255.240.0.0

It should show:

Feb 24 10:46:53 debian netmon: Monitoring subnet 10.0.0.0 with netmask 255.0.0.0
Feb 24 10:46:53 debian netmon: Monitoring subnet 192.168.0.0 with netmask 255.255.0.0
Feb 24 10:46:53 debian netmon: Monitoring subnet 172.16.0.0 with netmask 255.240.0.0

Cause:
Bandwidthd.c calls inet_ntoa twice in a parameter list. inet_ntoa has static character buffer: second call overwrites first.
John Murphy <2.6.35.10@hotmail.com> no 2013-07-20
0009-Make-HTML-output-valid-and-prevent-sql-injection-in-.patch Make HTML output valid and prevent sql injection in php code. Andreas Henriksson <andreas@fatal.se> no 2013-07-20
0010-Add-proper-script-header-and-use-for-loop-since-echo.patch Add proper script header and use for loop, since echo -e is bashism. Andreas Henriksson <andreas@fatal.se> no 2013-07-20
0011-Fetch-database-credentials-from-external-file.patch Fetch database credentials from external file
Modify php configuration to fetch postgresql auth params from
dbconfig-common generated file.
Andreas Henriksson <andreas@fatal.se> no 2013-07-20
fix-gcc-5-ftbfs.patch Fix linking failure when building with gcc-5
The HostIp2CharIp function can not be declared inline since
it is called from multiple other sources.

https://bugs.debian.org/777794
Andreas Henriksson <andreas@fatal.se> no
convert_short_php_syntax_to_long.patch Multiple php file were missing the php magic syntax causing the rendering to go wrong and errors like:
Call to undefined function connectdb() in XXX

===================================================================
Paul Gevers <elbrus@debian.org> no
replace_depricated_HTTP_GET_VARS_by_GET.patch HTTP_GET_VARS is deprecated, replace with _GET
===================================================================
Paul Gevers <elbrus@debian.org> no
fix-gcc-10-ftbfs.patch Fix ftbfs with GCC-10 Sudip Mukherjee <sudipm.mukherjee@gmail.com> no debian
cross.patch no
vlan.patch no

All known versions for source package 'bandwidthd'

Links