globals.c 1.0 KB

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