globals.c revision 38452
1114402Sru/* $NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $ */ 2104862Sru 3104862Sru/* 4104862Sru * globals.c: 5104862Sru * 6151497Sru * global variables should be separate, so nothing else 7151497Sru * must be included extraneously. 8151497Sru */ 9104862Sru 10104862Sru#include <sys/param.h> 11104862Sru#include <netinet/in.h> 12104862Sru#include <netinet/in_systm.h> 13104862Sru 14104862Sru#include "stand.h" 15151497Sru#include "net.h" 16151497Sru 17151497Sruu_char bcea[6] = BA; /* broadcast ethernet address */ 18114402Sru 19151497Sruchar rootpath[FNAME_SIZE] = "/"; /* root mount path */ 20151497Sruchar bootfile[FNAME_SIZE]; /* bootp says to boot this */ 21151497Sruchar hostname[FNAME_SIZE]; /* our hostname */ 22114402Sruint hostnamelen; 23104862Sruchar domainname[FNAME_SIZE]; /* our DNS domain */ 24104862Sruint domainnamelen; 25114402Sruchar ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */ 26104862Srustruct in_addr myip; /* my ip address */ 27104862Srustruct in_addr nameip; /* DNS server ip address */ 28114402Srustruct in_addr rootip; /* root ip address */ 29104862Srustruct in_addr swapip; /* swap ip address */ 30104862Srustruct in_addr gateip; /* swap ip address */ 31114402Srun_long netmask = 0xffffff00; /* subnet or net mask */ 32104862Sruint errno; /* our old friend */ 33104862Sru 34114402Sru