Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!eff!news.umbc.edu!europa.eng.gtefsd.com!howland.reston.ans.net!agate!darkstar.UCSC.EDU!cats.ucsc.edu!banshee From: banshee@cats.ucsc.edu (Wailer at the Gates of Dawn) Newsgroups: comp.os.386bsd.bugs Subject: Re: NETBSD 0.9 rstat() if_opackets error Date: 12 Jan 1994 19:59:09 GMT Organization: University of California, Santa Cruz Lines: 53 Message-ID: <2h1kqd$iua@darkstar.UCSC.EDU> References: <2gvo7q$7p@darkstar.UCSC.EDU> <2h11an$qsm@fw.novatel.ca> NNTP-Posting-Host: am.ucsc.edu X-Newsreader: NN version 6.5.0 #1 (NOV) I'm using rstat from a remote machine: /* Copyright (c) 1993 by Rudolf Koenig */ #include <rpc/rpc.h> #include <rpcsvc/rstat.h> #include <stdio.h> main(ac, av) int ac; char *av[]; { struct statstime sx; if(ac != 2) exit(0); for(;;) { if(rstat(av[1], &sx)) { printf("No rstat...\n"); exit(0); } printf("cp_time: %d %d %d %d\n", sx.cp_time[0], sx.cp_time[1], sx.cp_time[2], sx.cp_time[3]); printf("dk_xfer: %d %d %d %d\n", sx.dk_xfer[0], sx.dk_xfer[1], sx.dk_xfer[2], sx.dk_xfer[3]); printf("pgin: %u, pgout %u, pswpin %u pswpout %u, intr %u\n", sx.v_pgpgin,sx.v_pgpgout, sx.v_pswpin,sx.v_pswpout, sx.v_intr); printf("ipack: %d, opack %d, ierr %d oerr %d, collis %d\n", sx.if_ipackets,sx.if_opackets, sx.if_ierrors,sx.if_oerrors, sx.if_collisions); printf("avg: %g %g %g\n", (double)sx.avenrun[0] / 256, (double)sx.avenrun[1] / 256, (double)sx.avenrun[2] / 256); printf("context: %d\n", sx.v_swtch); fflush(stdout); sleep(1); } } opack is ALWAYS zero. -- The Wailer at the Gates of Dawn | banshee@cats.UCSC.EDU | Just who ARE you calling a FROOFROO Head? | | DoD#0667 "Just a friend of the beast." | banshee@ucscb.UCSC.EDU | 2,3,5,7,13,17,19,31,61,89,107,127,521,607....| banshee@ucscb.BITNET |