Annotation of xinu/sys/dgdump.c, revision 1.1.1.1

1.1       root        1: /* dgdump.c - dgdump */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <network.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  dgdump  -  dump the datagram pseudo device control blocks
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: dgdump()
                     12: {
                     13:        struct  dgblk   *dgptr;
                     14:        int     i;
                     15: 
                     16:        for (i=0 ; i<Ndg ; i++) {
                     17:                dgptr = &dgtab[i];
                     18:                if (dgptr->dg_state == DG_FREE)
                     19:                        continue;
                     20:                kprintf("Dev=%2d: ",dgptr->dg_dnum);
                     21:                kprintf("lport=%4d, fport=%4d, ", dgptr->dg_lport,
                     22:                        dgptr->dg_fport);
                     23:                kprintf("mode=%03o, xport=%2d addr=%d.%d.%d.%d\n",
                     24:                        dgptr->dg_mode, dgptr->dg_xport,
                     25:                        dgptr->dg_faddr[0] &0377,
                     26:                        dgptr->dg_faddr[1] &0377,
                     27:                        dgptr->dg_faddr[2] &0377,
                     28:                        dgptr->dg_faddr[3] &0377);
                     29:        }
                     30:        return(OK);
                     31: }

unix.superglobalmegacorp.com

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