Date: Thu, 6 Feb 2003 04:00:35 -0800 (PST) From: "Simon 'portlint' Schubert" <corecode@corecode.ath.cx> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/47981: new port: net/wmnetload (a network load monitor dockapp) Message-ID: <200302061200.h16C0ZQ1069433@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/47981; it has been noted by GNATS. From: "Simon 'portlint' Schubert" <corecode@corecode.ath.cx> To: Hendrik Scholz <hendrik@scholz.net> Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: ports/47981: new port: net/wmnetload (a network load monitor dockapp) Date: Thu, 6 Feb 2003 12:54:50 +0100 --=.aGQ_rkESbOfCW= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Lately Hendrik Scholz told: > Xdiff -urP wmnetload-1.2.orig/src/ifstat_freebsd.c wmnetload-1.2/src/ifstat_freebsd.c [...] > X+ifstatstate_t * if_statinit(void) > X+{ > X+ ifstatstate_t *statep; > X+ > X+ int num_iface, len; > X+ int name[6]; > X+ struct ifmibdata ifmd; name, ifmd unused variables. > X+ > X+ statep = malloc(sizeof (ifstatstate_t)); > X+ if (statep == NULL) > X+ { > X+ warn("cannot allocate interface statistics state"); > X+ return (NULL); > X+ } > X+ len = sizeof(num_iface); > X+ sysctlbyname("net.link.generic.system.ifcount", &num_iface, &len, NULL, 0); > X+ statep->num = num_iface; > X+ > X+ return statep; > X+} cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.aGQ_rkESbOfCW= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Qk0Pr5S+dk6z85oRAvBmAJ4jgWs+tfhkaGiOVg3uFe7c7odFEQCg+xzA +E0mCfliEQGdQ4LtPmRWVj4= =Z4lj -----END PGP SIGNATURE----- --=.aGQ_rkESbOfCW=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302061200.h16C0ZQ1069433>