1199767f8SToomas Soome /* $NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $ */ 2199767f8SToomas Soome 3199767f8SToomas Soome /* 4199767f8SToomas Soome * globals.c: 5199767f8SToomas Soome * 6199767f8SToomas Soome * global variables should be separate, so nothing else 7199767f8SToomas Soome * must be included extraneously. 8199767f8SToomas Soome */ 9199767f8SToomas Soome 10199767f8SToomas Soome #include <sys/cdefs.h> 11199767f8SToomas Soome 12199767f8SToomas Soome #include <sys/param.h> 13199767f8SToomas Soome #include <netinet/in.h> 14199767f8SToomas Soome #include <netinet/in_systm.h> 15199767f8SToomas Soome 16199767f8SToomas Soome #include "stand.h" 17199767f8SToomas Soome #include "net.h" 18199767f8SToomas Soome 19199767f8SToomas Soome u_char bcea[6] = BA; /* broadcast ethernet address */ 20199767f8SToomas Soome 21199767f8SToomas Soome char rootpath[FNAME_SIZE] = "/"; /* root mount path */ 22199767f8SToomas Soome char bootfile[FNAME_SIZE]; /* bootp says to boot this */ 23199767f8SToomas Soome char hostname[FNAME_SIZE]; /* our hostname */ 24199767f8SToomas Soome int hostnamelen; 25199767f8SToomas Soome char domainname[FNAME_SIZE]; /* our DNS domain */ 26199767f8SToomas Soome int domainnamelen; 27aa61755eSToomas Soome int netproto = NET_NONE; /* Network prototol */ 28199767f8SToomas Soome char ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */ 29199767f8SToomas Soome struct in_addr myip; /* my ip address */ 30199767f8SToomas Soome struct in_addr nameip; /* DNS server ip address */ 31199767f8SToomas Soome struct in_addr rootip; /* root ip address */ 32199767f8SToomas Soome struct in_addr swapip; /* swap ip address */ 33d72bf951SToomas Soome struct in_addr gateip; /* gateway ip address */ 34199767f8SToomas Soome n_long netmask = 0xffffff00; /* subnet or net mask */ 35c21cf554SToomas Soome u_int intf_mtu; /* interface mtu from bootp/dhcp */ 36199767f8SToomas Soome int errno; /* our old friend */ 37199767f8SToomas Soome 38