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

1.1     ! root        1: /* dgmcntl.c - dgmcntl */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  dgmcntl  -  control the network and datagram interface pseudo devices
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: dgmcntl(devptr, func, addr)
        !            12: struct devsw   *devptr;
        !            13: int func;
        !            14: char *addr;
        !            15: {
        !            16:        int     status = OK;
        !            17: 
        !            18:        switch ( func ) {
        !            19: #ifdef NETDAEMON
        !            20:        case NC_SETGW:
        !            21:                blkcopy(Net.gateway, addr, IPLEN);
        !            22:                break;
        !            23: #endif
        !            24:        default:
        !            25:                status = SYSERR;
        !            26:        }
        !            27:        return(status);
        !            28: }

unix.superglobalmegacorp.com

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