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

1.1     ! root        1: /* getnet.c - getnet */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  getnet  -  obtain the network portion of this system's IP address
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: SYSCALL        getnet(address)
        !            12: IPaddr address;
        !            13: {
        !            14:        if (!Net.mavalid && getaddr(address) == SYSERR)
        !            15:                        return(SYSERR);
        !            16:        blkcopy(address, Net.mynet, IPLEN);
        !            17:        return(OK);
        !            18: }

unix.superglobalmegacorp.com

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