#include "vii.h"

/* insulate the user from the network
*/

net_init()
{
	vii_init();
}

net_read(p, len)
	char *p;
	unsigned len; {

	return vii_read(p, len);
	}

net_write(p, ip, len)
	struct vii_hdr *p;
	long ip;
	unsigned len; {

	p->vii_dst = (char)(ip & 0377);
	p->vii_src = (char)(ip & 0377);
	p->vii_ver = 2;
	p->vii_prot = 1;
	p->vii_rsd = 0;
	vii_write(p, len + sizeof(struct vii_hdr));
	}
