14a5d661aSToomas Soome /* $NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $ */ 24a5d661aSToomas Soome 34a5d661aSToomas Soome /* 44a5d661aSToomas Soome * globals.c: 54a5d661aSToomas Soome * 64a5d661aSToomas Soome * global variables should be separate, so nothing else 74a5d661aSToomas Soome * must be included extraneously. 84a5d661aSToomas Soome */ 94a5d661aSToomas Soome 104a5d661aSToomas Soome #include <sys/cdefs.h> 114a5d661aSToomas Soome 124a5d661aSToomas Soome #include <sys/param.h> 134a5d661aSToomas Soome #include <netinet/in.h> 144a5d661aSToomas Soome #include <netinet/in_systm.h> 154a5d661aSToomas Soome 164a5d661aSToomas Soome #include "stand.h" 174a5d661aSToomas Soome #include "net.h" 184a5d661aSToomas Soome 194a5d661aSToomas Soome u_char bcea[6] = BA; /* broadcast ethernet address */ 204a5d661aSToomas Soome 214a5d661aSToomas Soome char rootpath[FNAME_SIZE] = "/"; /* root mount path */ 224a5d661aSToomas Soome char bootfile[FNAME_SIZE]; /* bootp says to boot this */ 234a5d661aSToomas Soome char hostname[FNAME_SIZE]; /* our hostname */ 244a5d661aSToomas Soome int hostnamelen; 254a5d661aSToomas Soome char domainname[FNAME_SIZE]; /* our DNS domain */ 264a5d661aSToomas Soome int domainnamelen; 27*18609d04SToomas Soome int netproto = NET_NONE; /* Network prototol */ 284a5d661aSToomas Soome char ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */ 294a5d661aSToomas Soome struct in_addr myip; /* my ip address */ 304a5d661aSToomas Soome struct in_addr nameip; /* DNS server ip address */ 314a5d661aSToomas Soome struct in_addr rootip; /* root ip address */ 324a5d661aSToomas Soome struct in_addr swapip; /* swap ip address */ 33d441b4feSToomas Soome struct in_addr gateip; /* gateway ip address */ 344a5d661aSToomas Soome n_long netmask = 0xffffff00; /* subnet or net mask */ 35e1bd2803SToomas Soome u_int intf_mtu; /* interface mtu from bootp/dhcp */ 364a5d661aSToomas Soome int errno; /* our old friend */ 374a5d661aSToomas Soome 38