Subject: pkg/27051: gnome2-applets multiload applet network pane doesn't work
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <douglas@fang.demon.co.uk>
List: pkgsrc-bugs
Date: 09/27/2004 13:51:34
>Number:         27051
>Category:       pkg
>Synopsis:       gnome2-applets multiload applet network pane doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 27 12:53:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Douglas Brebner
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
	
	
System: NetBSD aoife.home 2.0_BETA NetBSD 2.0_BETA (AOIFE_2.0b) #0: Sat Aug 28 15:20:16 BST 2004 root@aoife.home:/home/sysbuild/build/2.0b/obj/sys/arch/i386/compile/AOIFE_2.0b i386
Architecture: i386
Machine: i386
>Description:
	When the gnome2-applets multiload applet has its network pane enabled it shows no traffic at all.
>How-To-Repeat:
	Add the multiload applet to the gnome panel and enable the network pane.
>Fix:
	Apply the following patch (which has also been submitted to Gnome Bugzilla)


--- multiload/linux-proc.c.orig	2004-02-20 00:31:23.000000000 +0000
+++ multiload/linux-proc.c
@@ -5,7 +5,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <assert.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
 #include <sys/socket.h>
 #include <net/if.h>
 #endif
@@ -242,7 +242,7 @@ GetNet (int Maximum, int data [5], LoadG
     int delta[COUNT_TYPES], i;
     static int ticks = 0;
     static gulong past[COUNT_TYPES] = {0};
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__NetBSD__)
     struct if_nameindex *ifindex, *ifptr;
     static int max = 500;
 
>Release-Note:
>Audit-Trail:
>Unformatted: