Your message dated Sat, 20 Jul 2013 16:48:51 +0000
with message-id <[email protected]>
and subject line Bug#614942: fixed in bandwidthd 2.0.1+cvs20090917-7
has caused the Debian Bug report #614942,
regarding bandwidthd: Monitored subnets reported incorrectly in syslog
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
614942: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=614942
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bandwidthd
Severity: normal

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.

Code now:
        // Log list of monitored subnets
        for (Counter = 0; Counter < SubnetCount; Counter++)
                {
                addr.s_addr = ntohl(SubnetTable[Counter].ip);
                addr2.s_addr = ntohl(SubnetTable[Counter].mask);
                syslog(LOG_INFO, "Monitoring subnet %s with netmask %s", 
inet_ntoa(addr), inet_ntoa(addr2));
                }

Fixed code:
        // Log list of monitored subnets
        for (Counter = 0; Counter < SubnetCount; Counter++)
                {
                 char subnet[16], mask[16];
                addr.s_addr = ntohl(SubnetTable[Counter].ip);
                addr2.s_addr = ntohl(SubnetTable[Counter].mask);
                syslog(LOG_INFO, "Monitoring subnet %s with netmask %s",
                          strncpy(subnet, inet_ntoa(addr), 16), strncpy(mask, 
inet_ntoa(addr2), 16));
                }



-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.35.11 (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages bandwidthd depends on:
ii  debconf [debconf-2.0]         1.5.36.1   Debian configuration management sy
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.5-8  GCC support library
pn  libgd2-noxpm | libgd2-xpm     <none>     (no description available)
ii  libpcap0.8                    1.1.1-2    system interface for user-level pa
pn  libpng12-0                    <none>     (no description available)
pn  ucf                           <none>     (no description available)

bandwidthd recommends no packages.

bandwidthd suggests no packages.



--- End Message ---
--- Begin Message ---
Source: bandwidthd
Source-Version: 2.0.1+cvs20090917-7

We believe that the bug you reported is fixed in the latest version of
bandwidthd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Henriksson <[email protected]> (supplier of updated bandwidthd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 20 Jul 2013 18:19:35 +0200
Source: bandwidthd
Binary: bandwidthd bandwidthd-pgsql
Architecture: source amd64
Version: 2.0.1+cvs20090917-7
Distribution: unstable
Urgency: low
Maintainer: Andreas Henriksson <[email protected]>
Changed-By: Andreas Henriksson <[email protected]>
Description: 
 bandwidthd - Tracks usage of TCP/IP and builds html files with graphs
 bandwidthd-pgsql - Tracks usage of TCP/IP and builds html files with graphs
Closes: 614942 659237 717042
Changes: 
 bandwidthd (2.0.1+cvs20090917-7) unstable; urgency=low
 .
   * Move php5-gd to Recommends and also recommend php5 (Closes: #717042)
   * Improve meta-data in patch header of 44_fixrecovercdf.patch
   * Drop autoheader/autoconf patches as we're using dh-autoreconf
   * Add patch to fix syslog messages for monitored subnet.
     Thanks to John Murphy (Closes: #614942)
   * Let gb-pq import && gbp-pq export rename patches
   * Make bandwidthd-pgsql also recommend php5-pgsql (Closes: #659237)
Checksums-Sha1: 
 9e3555ceaccda87da8ed0d91ce129f52d2e6c4ff 1332 
bandwidthd_2.0.1+cvs20090917-7.dsc
 7b19a466458bdcd15664b171170f3e5b6c213869 47833 
bandwidthd_2.0.1+cvs20090917-7.debian.tar.gz
 ef7eeb7301abcf44a6a2d9d277e1cc5ee3c9e488 81296 
bandwidthd_2.0.1+cvs20090917-7_amd64.deb
 18703a288f13376742934e68184c24ee5e65d25b 90588 
bandwidthd-pgsql_2.0.1+cvs20090917-7_amd64.deb
Checksums-Sha256: 
 03cc6a7ffdbb42600a336bda382397d28b230e8d0c574ce9c95e542be921ce2e 1332 
bandwidthd_2.0.1+cvs20090917-7.dsc
 eb7018121cb542198578f734cb3483a4db591851271b09bf735dbc8103d1ee16 47833 
bandwidthd_2.0.1+cvs20090917-7.debian.tar.gz
 4e7d853155c0d3f9f2563059ffc322b641a7d8a9d3d78d6d17efeb37492c3fe3 81296 
bandwidthd_2.0.1+cvs20090917-7_amd64.deb
 17cf69356dc8e5f4394afe98fce8a0c67cee95ace54c1c6172f21c9d1093d633 90588 
bandwidthd-pgsql_2.0.1+cvs20090917-7_amd64.deb
Files: 
 21296c83f8899d21775b66b79db4a295 1332 net optional 
bandwidthd_2.0.1+cvs20090917-7.dsc
 306d610d4b5b82d761b4d49efed1228c 47833 net optional 
bandwidthd_2.0.1+cvs20090917-7.debian.tar.gz
 29e222e9a5b9636161035b6d828ad3b3 81296 net optional 
bandwidthd_2.0.1+cvs20090917-7_amd64.deb
 d08330c0d8bdce04db921a4925c05497 90588 net optional 
bandwidthd-pgsql_2.0.1+cvs20090917-7_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlHqu5sACgkQcgQ2cL3l8e7PxACfcIIhyQvrRibDXvwKGXKSUory
yzEAn2fp7JXfRbc/ymNtO/ghtwCslq7U
=7zxg
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to