Annotation of sys/lib/libsa/globals.c, Revision 1.1
1.1 ! nbrk 1: /* $OpenBSD: globals.c,v 1.3 1996/09/23 14:18:54 mickey Exp $ */
! 2: /* $NetBSD: globals.c,v 1.3 1995/09/18 21:19:27 pk Exp $ */
! 3:
! 4: /*
! 5: * globals.c:
! 6: *
! 7: * global variables should be separate, so nothing else
! 8: * must be included extraneously.
! 9: */
! 10:
! 11: #include <sys/param.h>
! 12: #include <sys/socket.h>
! 13: #include <net/if.h>
! 14: #include <netinet/in.h>
! 15: #include <netinet/in_systm.h>
! 16:
! 17: #include "stand.h"
! 18: #include "net.h"
! 19:
! 20: u_char bcea[6] = BA; /* broadcast ethernet address */
! 21:
! 22: char rootpath[FNAME_SIZE] = "/"; /* root mount path */
! 23: char bootfile[FNAME_SIZE]; /* bootp says to boot this */
! 24: char hostname[FNAME_SIZE]; /* our hostname */
! 25: int hostnamelen;
! 26: char domainname[FNAME_SIZE]; /* our DNS domain */
! 27: int domainnamelen;
! 28: char ifname[IFNAME_SIZE]; /* name of interface (e.g. "le0") */
! 29: struct in_addr myip; /* my ip address */
! 30: struct in_addr nameip; /* DNS server ip address */
! 31: struct in_addr rootip; /* root ip address */
! 32: struct in_addr swapip; /* swap ip address */
! 33: struct in_addr gateip; /* swap ip address */
! 34: n_long netmask = 0xffffff00; /* subnet or net mask */
CVSweb