1*4a5d661aSToomas Soome /* $NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $ */ 2*4a5d661aSToomas Soome 3*4a5d661aSToomas Soome /* 4*4a5d661aSToomas Soome * globals.c: 5*4a5d661aSToomas Soome * 6*4a5d661aSToomas Soome * global variables should be separate, so nothing else 7*4a5d661aSToomas Soome * must be included extraneously. 8*4a5d661aSToomas Soome */ 9*4a5d661aSToomas Soome 10*4a5d661aSToomas Soome #include <sys/cdefs.h> 11*4a5d661aSToomas Soome __FBSDID("$FreeBSD$"); 12*4a5d661aSToomas Soome 13*4a5d661aSToomas Soome #include <sys/param.h> 14*4a5d661aSToomas Soome #include <netinet/in.h> 15*4a5d661aSToomas Soome #include <netinet/in_systm.h> 16*4a5d661aSToomas Soome 17*4a5d661aSToomas Soome #include "stand.h" 18*4a5d661aSToomas Soome #include "net.h" 19*4a5d661aSToomas Soome 20*4a5d661aSToomas Soome u_char bcea[6] = BA; /* broadcast ethernet address */ 21*4a5d661aSToomas Soome 22*4a5d661aSToomas Soome char rootpath[FNAME_SIZE] = "/"; /* root mount path */ 23*4a5d661aSToomas Soome char bootfile[FNAME_SIZE]; /* bootp says to boot this */ 24*4a5d661aSToomas Soome char hostname[FNAME_SIZE]; /* our hostname */ 25*4a5d661aSToomas Soome int hostnamelen; 26*4a5d661aSToomas Soome char domainname[FNAME_SIZE]; /* our DNS domain */ 27*4a5d661aSToomas Soome int domainnamelen; 28*4a5d661aSToomas Soome char ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */ 29*4a5d661aSToomas Soome struct in_addr myip; /* my ip address */ 30*4a5d661aSToomas Soome struct in_addr nameip; /* DNS server ip address */ 31*4a5d661aSToomas Soome struct in_addr rootip; /* root ip address */ 32*4a5d661aSToomas Soome struct in_addr swapip; /* swap ip address */ 33*4a5d661aSToomas Soome struct in_addr gateip; /* swap ip address */ 34*4a5d661aSToomas Soome n_long netmask = 0xffffff00; /* subnet or net mask */ 35*4a5d661aSToomas Soome int errno; /* our old friend */ 36*4a5d661aSToomas Soome 37