xref: /minix3/sys/lib/libsa/globals.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc /*	$NetBSD: globals.c,v 1.11 2014/03/29 14:30:16 jakllsch Exp $	*/
258a2b000SEvgeniy Ivanov 
358a2b000SEvgeniy Ivanov /*
458a2b000SEvgeniy Ivanov  *	globals.c:
558a2b000SEvgeniy Ivanov  *
658a2b000SEvgeniy Ivanov  *	global variables should be separate, so nothing else
758a2b000SEvgeniy Ivanov  *	must be included extraneously.
858a2b000SEvgeniy Ivanov  */
958a2b000SEvgeniy Ivanov 
1058a2b000SEvgeniy Ivanov #include <sys/param.h>
11*0a6a1f1dSLionel Sambuc #include <net/if_ether.h>		/* for ETHER_ADDR_LEN */
1258a2b000SEvgeniy Ivanov #include <netinet/in.h>
1358a2b000SEvgeniy Ivanov #include <netinet/in_systm.h>
1458a2b000SEvgeniy Ivanov 
1558a2b000SEvgeniy Ivanov #include "stand.h"
1658a2b000SEvgeniy Ivanov #include "net.h"
1758a2b000SEvgeniy Ivanov 
18*0a6a1f1dSLionel Sambuc u_char	bcea[ETHER_ADDR_LEN] = BA;	/* broadcast ethernet address */
1958a2b000SEvgeniy Ivanov 
2058a2b000SEvgeniy Ivanov char	rootpath[FNAME_SIZE];		/* root mount path */
2158a2b000SEvgeniy Ivanov char	bootfile[FNAME_SIZE];		/* bootp says to boot this */
2258a2b000SEvgeniy Ivanov char	hostname[FNAME_SIZE];		/* our hostname */
23*0a6a1f1dSLionel Sambuc const char	*fsmod = NULL;		/* file system module name to load */
2458a2b000SEvgeniy Ivanov struct	in_addr myip;			/* my ip address */
2558a2b000SEvgeniy Ivanov struct	in_addr rootip;			/* root ip address */
2658a2b000SEvgeniy Ivanov struct	in_addr gateip;			/* swap ip address */
2758a2b000SEvgeniy Ivanov n_long	netmask = 0xffffff00;		/* subnet or net mask */
28