File:  [XINU] / xinu / sys / dgmcntl.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:39:02 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19870308, HEAD
Xinu for VAX

/* dgmcntl.c - dgmcntl */

#include <conf.h>
#include <kernel.h>
#include <network.h>

/*------------------------------------------------------------------------
 *  dgmcntl  -  control the network and datagram interface pseudo devices
 *------------------------------------------------------------------------
 */
dgmcntl(devptr, func, addr)
struct	devsw	*devptr;
int func;
char *addr;
{
	int	status = OK;

	switch ( func )	{
#ifdef	NETDAEMON
	case NC_SETGW:
		blkcopy(Net.gateway, addr, IPLEN);
		break;
#endif
	default:
		status = SYSERR;
	}
	return(status);
}

unix.superglobalmegacorp.com

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