/*-1* SPDX-License-Identifier: BSD-3-Clause2*3* Copyright (c) 1988, 1992 The University of Utah and the Center4* for Software Science (CSS).5* Copyright (c) 1992, 19936* The Regents of the University of California. All rights reserved.7*8* This code is derived from software contributed to Berkeley by9* the Center for Software Science of the University of Utah Computer10* Science Department. CSS requests users of this software to return11* to [email protected] any improvements that they make and grant12* CSS redistribution rights.13*14* Redistribution and use in source and binary forms, with or without15* modification, are permitted provided that the following conditions16* are met:17* 1. Redistributions of source code must retain the above copyright18* notice, this list of conditions and the following disclaimer.19* 2. Redistributions in binary form must reproduce the above copyright20* notice, this list of conditions and the following disclaimer in the21* documentation and/or other materials provided with the distribution.22* 3. Neither the name of the University nor the names of its contributors23* may be used to endorse or promote products derived from this software24* without specific prior written permission.25*26* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND27* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE28* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE29* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE30* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL31* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS32* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)33* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT34* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY35* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF36* SUCH DAMAGE.37*38* From: Utah Hdr: conf.c 3.1 92/07/0639* Author: Jeff Forys, University of Utah CSS40*/4142#include <sys/param.h>43#include <sys/time.h>4445#include <stdio.h>46#include "defs.h"47#include "pathnames.h"4849/*50** Define (and possibly initialize) global variables here.51**52** Caveat:53** The maximum number of bootable files (`char *BootFiles[]') is54** limited to C_MAXFILE (i.e. the maximum number of files that55** can be spec'd in the configuration file). This was done to56** simplify the boot file search code.57*/5859char MyHost[MAXHOSTNAMELEN]; /* host name */60pid_t MyPid; /* process id */61int DebugFlg = 0; /* set true if debugging */62int BootAny = 0; /* set true if we boot anyone */6364char *ConfigFile = NULL; /* configuration file */65char *DfltConfig = _PATH_RBOOTDCONF; /* default configuration file */66char *PidFile = _PATH_RBOOTDPID; /* file w/pid of server */67char *BootDir = _PATH_RBOOTDLIB; /* directory w/boot files */68char *DbgFile = _PATH_RBOOTDDBG; /* debug output file */6970FILE *DbgFp = NULL; /* debug file pointer */71char *IntfName = NULL; /* intf we are attached to */7273u_int16_t SessionID = 0; /* generated session ID */7475char *BootFiles[C_MAXFILE]; /* list of boot files */7677CLIENT *Clients = NULL; /* list of addrs we'll accept */78RMPCONN *RmpConns = NULL; /* list of active connections */7980u_int8_t RmpMcastAddr[RMP_ADDRLEN] = RMP_ADDR; /* RMP multicast address */818283