Annotation of xinu/sys/netdump.c, revision 1.1

1.1     ! root        1: /* netdump.c - netdump */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  netdump  -  dump the contents of Net struct and  udp demux queues
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: netdump()
        !            12: {
        !            13:        int     i;
        !            14:        struct  netq    *nqptr;
        !            15: 
        !            16:        kprintf("Network: buffer pool=%d, mutex=%d, next udp #=%d,",
        !            17:                Net.netpool, Net.nmutex, Net.nxtprt);
        !            18:        kprintf(" addr is %svalid\n", Net.mavalid?"":"in");
        !            19:        kprintf("Packets: recvd=%d, tossed=%d (%d for queue overflow)\n",
        !            20:                Net.npacket, Net.ndrop, Net.nover);
        !            21:        for (i=0; i<NETQS; i++) {
        !            22:                nqptr = &Net.netqs[i];
        !            23:                if (nqptr->valid)
        !            24:                  kprintf("%2d. uport=%4d, pid=%3d, xprt=%2d, size=%2d\n",
        !            25:                        i, nqptr->uport, nqptr->pid, nqptr->xport,
        !            26:                        pcount(nqptr->xport) );
        !            27:        }
        !            28:        return(OK);
        !            29: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.