1 /* $NetBSD: globals.c,v 1.12 2022/04/24 06:52:59 mlelstv Exp $ */ 2 3 /* 4 * globals.c: 5 * 6 * global variables should be separate, so nothing else 7 * must be included extraneously. 8 */ 9 10 #include <sys/param.h> 11 #include <net/if_ether.h> /* for ETHER_ADDR_LEN */ 12 #include <netinet/in.h> 13 #include <netinet/in_systm.h> 14 15 #include "stand.h" 16 #include "net.h" 17 18 u_char bcea[ETHER_ADDR_LEN] = BA; /* broadcast ethernet address */ 19 20 char rootpath[FNAME_SIZE]; /* root mount path */ 21 char bootfile[FNAME_SIZE]; /* bootp says to boot this */ 22 char hostname[FNAME_SIZE]; /* our hostname */ 23 struct in_addr myip; /* my ip address */ 24 struct in_addr rootip; /* root ip address */ 25 struct in_addr gateip; /* swap ip address */ 26 n_long netmask = 0xffffff00; /* subnet or net mask */ 27