Date: Tue, 30 Mar 2004 10:32:58 +0200 (CEST) From: da marodeur <marodeur@gate-com.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/64926: fix netwwork sensors for ports/deskutils/superkaramba Message-ID: <200403300832.i2U8Wwo4061181@gate-com.com> Resent-Message-ID: <200403300840.i2U8eMVZ089826@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 64926 >Category: ports >Synopsis: fix netwwork sensors for ports/deskutils/superkaramba >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 30 00:40:21 PST 2004 >Closed-Date: >Last-Modified: >Originator: Stefan Grundmann >Release: FreeBSD 5.2-CURRENT i386 >Organization: waset.de >Environment: System: FreeBSD chons.hb.waset.de 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Mar 24 04:06:36 CET 2004 sg@chons.hb.waset.de:/usr/obj/usr/src/sys/CHONS i386 >Description: The FreeBSD-specific code for superkaramba's "network sensors" does work correctly if more than one "network sensor" is used. >How-To-Repeat: Use a superkaramba theme with more than one network sensors. Both sensors will display the same data. >Fix: The attached patch fixes the problem. --- superkaramba.diff begins here --- diff -ruN superkaramba/Makefile superkaramba.new/Makefile --- superkaramba/Makefile Mon Feb 23 22:31:22 2004 +++ superkaramba.new/Makefile Tue Mar 30 10:05:57 2004 @@ -6,7 +6,7 @@ PORTNAME= superkaramba PORTVERSION= 0.33 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= deskutils kde MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= netdragon diff -ruN superkaramba/files/patch-networksensor.cpp superkaramba.new/files/patch-networksensor.cpp --- superkaramba/files/patch-networksensor.cpp Sun Nov 9 20:27:19 2003 +++ superkaramba.new/files/patch-networksensor.cpp Tue Mar 30 10:07:17 2004 @@ -75,12 +75,12 @@ + if (if_number != -1) { + size_t if_miblen = 0; + if_miblen = sizeof(if_mib); -+ static int name[] = { CTL_NET, -+ PF_LINK, -+ NETLINK_GENERIC, -+ IFMIB_IFDATA, -+ if_number, -+ IFDATA_GENERAL }; ++ int name[] = { CTL_NET, ++ PF_LINK, ++ NETLINK_GENERIC, ++ IFMIB_IFDATA, ++ if_number, ++ IFDATA_GENERAL }; + + sysctl(name, 6, (void*)&if_mib, (size_t*)&if_miblen, (void*)NULL, (size_t)0); + --- superkaramba.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403300832.i2U8Wwo4061181>