2012-01-09 15:07:58 +01:00
|
|
|
/* $NetBSD: globals.c,v 1.8 2008/11/19 12:36:41 ad Exp $ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* globals.c:
|
|
|
|
*
|
|
|
|
* global variables should be separate, so nothing else
|
|
|
|
* must be included extraneously.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netinet/in_systm.h>
|
|
|
|
|
|
|
|
#include "stand.h"
|
|
|
|
#include "net.h"
|
|
|
|
|
|
|
|
u_char bcea[6] = BA; /* broadcast ethernet address */
|
|
|
|
|
|
|
|
char rootpath[FNAME_SIZE]; /* root mount path */
|
|
|
|
char bootfile[FNAME_SIZE]; /* bootp says to boot this */
|
|
|
|
char hostname[FNAME_SIZE]; /* our hostname */
|
2012-02-24 13:29:10 +01:00
|
|
|
#ifdef __minix
|
|
|
|
char *fsmod = NULL;
|
|
|
|
#else
|
2012-01-09 15:07:58 +01:00
|
|
|
char *fsmod = "ffs"; /* guessed file system module name */
|
2012-02-24 13:29:10 +01:00
|
|
|
#endif
|
2012-01-09 15:07:58 +01:00
|
|
|
char *fsmod2; /* a requisite module */
|
|
|
|
struct in_addr myip; /* my ip address */
|
|
|
|
struct in_addr rootip; /* root ip address */
|
|
|
|
struct in_addr gateip; /* swap ip address */
|
|
|
|
n_long netmask = 0xffffff00; /* subnet or net mask */
|