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

1.1     ! root        1: /* arpinit.c - arpinit */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <proc.h>
        !             6: #include <network.h>
        !             7: 
        !             8: /*------------------------------------------------------------------------
        !             9:  *  arpinit  -  initialize data structures for ARP processing
        !            10:  *------------------------------------------------------------------------
        !            11:  */
        !            12: arpinit()
        !            13: {
        !            14:        struct  arpent  *atabptr;
        !            15:        int     i, j;
        !            16: 
        !            17:        Arp.atabsiz = 0;
        !            18:        Arp.atabnxt = 0;
        !            19:        Arp.arpsem = screate(1);
        !            20:        Arp.rarpsem= screate(1);
        !            21:        Arp.arppid = Arp.rarppid = BADPID;
        !            22:        for (i=0 ; i<AR_TAB ; i++) {
        !            23:                atabptr = &Arp.arptab[i];
        !            24:                atabptr->arp_state = AR_FREE;
        !            25:                for (j=0 ; j<EPADLEN ; j++)
        !            26:                        atabptr->arp_Ead[j] = '\0';
        !            27:                atabptr->arp_dev = -1;
        !            28:        }
        !            29: }
        !            30: 
        !            31: struct arpblk  Arp;

unix.superglobalmegacorp.com

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