Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jun 2002 21:40:08 -0700 (PDT)
From:      Andy Sparrow <spadger@best.com>
To:        freebsd-ports@FreeBSD.org
Subject:   [PATCH Included] Re: ports/39065: 0.4.1 port of wmnd displays no  stats for some network if's...
Message-ID:  <200206130440.g5D4e8T93257@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/39065; it has been noted by GNATS.

From: Andy Sparrow <spadger@best.com>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-ports@FreeBSD.org
Cc: Andy Sparrow <spadger@best.com>, flag@gufi.org,
	Wave++ <wavexx@hydra.ubiest.com>
Subject: [PATCH Included] Re: ports/39065: 0.4.1 port of wmnd displays no 
 stats for some network if's...
Date: Thu, 13 Jun 2002 00:39:30 -0400

 --==_Exmh_425459294P
 Content-Type: text/plain; charset=us-ascii
 
 
 Hi,
 
 Please review this patch to fix wmnd-0.4.1, maintainer/author Cc'd (*yo guys*)
 
 Please note that the fix removes one patchfile completely 
 ('patch-src::drivers.c') and adds a new patch file ('patch patch-src::wmnd.h').
 
 Regards,
 
 AS
 
 diff -ruN wmnd.orig wmnd
 diff -ruN wmnd.orig/Makefile wmnd/Makefile
 --- wmnd.orig/Makefile  Mon May 27 18:24:21 2002
 +++ wmnd/Makefile       Thu Jun 13 00:07:47 2002
 @@ -7,6 +7,7 @@
  
  PORTNAME=      wmnd
  PORTVERSION=   0.4.1
 +PORTREVISION=  1
  CATEGORIES=    net
  MASTER_SITES=  http://www.hydra.ubiest.com/wmnd/releases/
  
 diff -ruN wmnd.orig/files/patch-src::drivers.c wmnd/files/patch-src::drivers.c
 --- wmnd.orig/files/patch-src::drivers.c        Mon May 27 18:24:21 2002
 +++ wmnd/files/patch-src::drivers.c     Wed Dec 31 19:00:00 1969
 @@ -1,19 +0,0 @@
 ---- src/drivers.c.orig Sat May 18 11:48:47 2002
 -+++ src/drivers.c      Sat May 18 11:50:28 2002
 -@@ -554,7 +554,6 @@
 -     if(!devname || (devname && !strcmp(devname, tempndata.ifmd_name))) {
 -       ndev = malloc(sizeof(struct Devices));
 -       ndev->devstart = 0;
 --      ndev->if_index = i;
 -       ndev->name = strdup(tempndata.ifmd_name);
 -       ndata = malloc(sizeof(struct ifmibdata));
 -       bcopy (&tempndata, ndata, sizeof(struct ifmibdata));
 -@@ -596,7 +595,7 @@
 -   datamib[4] = 1; /* fill in later */
 -   datamib[5] = IFDATA_GENERAL;
 - 
 --  datamib[4] = dev->if_index;
 -+  datamib[4] = IFMIB_IFCOUNT;
 - 
 -   len = sizeof(struct ifmibdata); 
 - 
 diff -ruN wmnd.orig/files/patch-src::wmnd.h wmnd/files/patch-src::wmnd.h
 --- wmnd.orig/files/patch-src::wmnd.h   Wed Dec 31 19:00:00 1969
 +++ wmnd/files/patch-src::wmnd.h        Thu Jun 13 00:05:34 2002
 @@ -0,0 +1,10 @@
 +--- src/wmnd.h.orig    Thu Jun 13 00:02:20 2002
 ++++ src/wmnd.h Thu Jun 13 00:04:20 2002
 +@@ -58,6 +58,7 @@
 +   void* drvdata;                /* driver data used by the driver */
 +   int drvnum;                   /* driver number */
 +   int online;                   /* 0 for online, 1 for offline */
 ++  int if_index;                 /* index of this device */
 +   time_t devstart;              /* device activity start, 0 for unavaible */
 +   unsigned long int his[59][4];
 +   unsigned long int ib_stat_last;
 
 
 
 
 --==_Exmh_425459294P
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.0.7 (FreeBSD)
 Comment: Exmh version 2.5 07/13/2001
 
 iD8DBQE9CCICPHh895bDXeQRAntyAJ95P/mHqHmewifskDwRrbTJzxqNOQCghDw1
 dK8ij2wonklUayfK3DnF4Bg=
 =arfV
 -----END PGP SIGNATURE-----
 
 --==_Exmh_425459294P--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206130440.g5D4e8T93257>