diff options
author | steve <steve@FreeBSD.org> | 1997-06-29 18:50:34 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1997-06-29 18:50:34 +0000 |
commit | 5454f4c2306786c3837729bf386fbfe2b4354b62 (patch) | |
tree | 63c47975dfa03848450f73bce1df26a925aeae5e /libexec/rbootd/defs.h | |
parent | bfb7bb3f17b5d5bd6e7cd672d06dab6c80ca47cf (diff) | |
download | FreeBSD-src-5454f4c2306786c3837729bf386fbfe2b4354b62.zip FreeBSD-src-5454f4c2306786c3837729bf386fbfe2b4354b62.tar.gz |
Import of NetBSD's rbootd version 19970629
Diffstat (limited to 'libexec/rbootd/defs.h')
-rw-r--r-- | libexec/rbootd/defs.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/libexec/rbootd/defs.h b/libexec/rbootd/defs.h index a2e0cd0..9ff814e 100644 --- a/libexec/rbootd/defs.h +++ b/libexec/rbootd/defs.h @@ -1,3 +1,5 @@ +/* $NetBSD: defs.h,v 1.5 1995/10/06 05:12:14 thorpej Exp $ */ + /* * Copyright (c) 1988, 1992 The University of Utah and the Center * for Software Science (CSS). @@ -38,9 +40,9 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)defs.h 8.1 (Berkeley) 6/4/93 + * from: @(#)defs.h 8.1 (Berkeley) 6/4/93 * - * Utah $Hdr: defs.h 3.1 92/07/06$ + * From: Utah Hdr: defs.h 3.1 92/07/06 * Author: Jeff Forys, University of Utah CSS */ @@ -107,7 +109,7 @@ * (unless there are no restrictions on who we can boot). */ typedef struct client_s { - u_char addr[RMP_ADDRLEN]; /* addr of machine */ + u_int8_t addr[RMP_ADDRLEN]; /* addr of machine */ char *files[C_MAXFILE]; /* boot-able files */ struct client_s *next; /* ptr to next */ } CLIENT; @@ -126,9 +128,8 @@ typedef struct rmpconn_s { /* * All these variables are defined in "conf.c". */ -extern char *ProgName; /* path-stripped argv[0] */ extern char MyHost[]; /* this hosts' name */ -extern int MyPid; /* this processes' ID */ +extern pid_t MyPid; /* this processes' ID */ extern int DebugFlg; /* set true if debugging */ extern int BootAny; /* set true if we can boot anyone */ @@ -141,14 +142,14 @@ extern char *BootDir; /* directory w/boot files */ extern FILE *DbgFp; /* debug file pointer */ extern char *IntfName; /* interface we are attached to */ -extern u_short SessionID; /* generated session ID */ +extern u_int16_t SessionID; /* generated session ID */ extern char *BootFiles[]; /* list of boot files */ extern CLIENT *Clients; /* list of addrs we'll accept */ extern RMPCONN *RmpConns; /* list of active connections */ -extern char RmpMcastAddr[]; /* RMP multicast address */ +extern u_int8_t RmpMcastAddr[]; /* RMP multicast address */ void AddConn __P((RMPCONN *)); int BootDone __P((RMPCONN *)); @@ -169,11 +170,11 @@ void FreeClients __P((void)); void FreeConn __P((RMPCONN *)); void FreeConns __P((void)); int GetBootFiles __P((void)); -char *GetEtherAddr __P((u_char *)); -CLIENT *NewClient __P((u_char *)); +char *GetEtherAddr __P((u_int8_t *)); +CLIENT *NewClient __P((u_int8_t *)); RMPCONN *NewConn __P((RMPCONN *)); char *NewStr __P((char *)); -u_char *ParseAddr __P((char *)); +u_int8_t *ParseAddr __P((char *)); int ParseConfig __P((void)); void ProcessPacket __P((RMPCONN *, CLIENT *)); void ReConfig __P((int)); |