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

1.1     ! root        1: /* getaddr.c - getaddr */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  getaddr  -  obtain this system's complete address (IP address)
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: SYSCALL        getaddr(address)
        !            12: IPaddr address;
        !            13: {
        !            14:        wait (Arp.rarpsem);
        !            15:        if (!Net.mavalid)
        !            16:                sndrarp();
        !            17:        signal(Arp.rarpsem);
        !            18: 
        !            19:        if (!Net.mavalid)
        !            20:                return(SYSERR);
        !            21:        blkcopy(address, Net.myaddr, IPLEN);
        !            22:        return(OK);
        !            23: }

unix.superglobalmegacorp.com

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