1998-08-20 08:19:55 +00:00
|
|
|
/* $NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $ */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* globals.c:
|
|
|
|
*
|
|
|
|
* global variables should be separate, so nothing else
|
|
|
|
* must be included extraneously.
|
|
|
|
*/
|
|
|
|
|
2001-09-30 22:28:01 +00:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
|
1998-08-20 08:19:55 +00:00
|
|
|
#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 */
|
|
|
|
int hostnamelen;
|
|
|
|
char domainname[FNAME_SIZE]; /* our DNS domain */
|
|
|
|
int domainnamelen;
|
2016-08-31 13:16:40 +00:00
|
|
|
int netproto = NET_NONE; /* Network prototol */
|
1998-08-20 08:19:55 +00:00
|
|
|
char ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */
|
|
|
|
struct in_addr myip; /* my ip address */
|
|
|
|
struct in_addr nameip; /* DNS server ip address */
|
|
|
|
struct in_addr rootip; /* root ip address */
|
|
|
|
struct in_addr swapip; /* swap ip address */
|
2016-03-22 14:08:00 +00:00
|
|
|
struct in_addr gateip; /* gateway ip address */
|
2016-08-31 13:16:40 +00:00
|
|
|
struct in_addr tftpip; /* TFTP ip address */
|
1998-08-20 08:19:55 +00:00
|
|
|
n_long netmask = 0xffffff00; /* subnet or net mask */
|
2016-03-21 14:58:12 +00:00
|
|
|
u_int intf_mtu; /* interface mtu from bootp/dhcp */
|
1998-08-20 08:19:55 +00:00
|
|
|
int errno; /* our old friend */
|
|
|
|
|