defs.h (69226) | defs.h (90377) |
---|---|
1/* 2 * Copyright (c) 1988, 1992 The University of Utah and the Center 3 * for Software Science (CSS). 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Center for Software Science of the University of Utah Computer --- 29 unchanged lines hidden (view full) --- 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * from: @(#)defs.h 8.1 (Berkeley) 6/4/93 42 * 43 * From: Utah Hdr: defs.h 3.1 92/07/06 44 * Author: Jeff Forys, University of Utah CSS 45 * | 1/* 2 * Copyright (c) 1988, 1992 The University of Utah and the Center 3 * for Software Science (CSS). 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Center for Software Science of the University of Utah Computer --- 29 unchanged lines hidden (view full) --- 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * from: @(#)defs.h 8.1 (Berkeley) 6/4/93 42 * 43 * From: Utah Hdr: defs.h 3.1 92/07/06 44 * Author: Jeff Forys, University of Utah CSS 45 * |
46 * $FreeBSD: head/libexec/rbootd/defs.h 69226 2000-11-26 22:18:11Z kris $ | 46 * $FreeBSD: head/libexec/rbootd/defs.h 90377 2002-02-07 23:57:01Z imp $ |
47 */ 48 49#include "rmp.h" 50#include "rmp_var.h" 51 52/* 53** Common #define's and external variables. All other files should 54** include this. --- 91 unchanged lines hidden (view full) --- 146 147extern char *BootFiles[]; /* list of boot files */ 148 149extern CLIENT *Clients; /* list of addrs we'll accept */ 150extern RMPCONN *RmpConns; /* list of active connections */ 151 152extern u_int8_t RmpMcastAddr[]; /* RMP multicast address */ 153 | 47 */ 48 49#include "rmp.h" 50#include "rmp_var.h" 51 52/* 53** Common #define's and external variables. All other files should 54** include this. --- 91 unchanged lines hidden (view full) --- 146 147extern char *BootFiles[]; /* list of boot files */ 148 149extern CLIENT *Clients; /* list of addrs we'll accept */ 150extern RMPCONN *RmpConns; /* list of active connections */ 151 152extern u_int8_t RmpMcastAddr[]; /* RMP multicast address */ 153 |
154void AddConn __P((RMPCONN *)); 155int BootDone __P((RMPCONN *)); 156void BpfClose __P((void)); 157char *BpfGetIntfName __P((char **)); 158int BpfOpen __P((void)); 159int BpfRead __P((RMPCONN *, int)); 160int BpfWrite __P((RMPCONN *)); 161void DebugOff __P((int)); 162void DebugOn __P((int)); 163void DispPkt __P((RMPCONN *, int)); 164void DoTimeout __P((void)); 165void DspFlnm __P((u_int, char *)); 166void Exit __P((int)); 167CLIENT *FindClient __P((RMPCONN *)); 168RMPCONN *FindConn __P((RMPCONN *)); 169void FreeClients __P((void)); 170void FreeConn __P((RMPCONN *)); 171void FreeConns __P((void)); 172int GetBootFiles __P((void)); 173char *GetEtherAddr __P((u_int8_t *)); 174CLIENT *NewClient __P((u_int8_t *)); 175RMPCONN *NewConn __P((RMPCONN *)); 176char *NewStr __P((char *)); 177u_int8_t *ParseAddr __P((char *)); 178int ParseConfig __P((void)); 179void ProcessPacket __P((RMPCONN *, CLIENT *)); 180void ReConfig __P((int)); 181void RemoveConn __P((RMPCONN *)); 182int SendBootRepl __P((struct rmp_packet *, RMPCONN *, char *[])); 183int SendFileNo __P((struct rmp_packet *, RMPCONN *, char *[])); 184int SendPacket __P((RMPCONN *)); 185int SendReadRepl __P((RMPCONN *)); 186int SendServerID __P((RMPCONN *)); | 154void AddConn(RMPCONN *); 155int BootDone(RMPCONN *); 156void BpfClose(void); 157char *BpfGetIntfName(char **); 158int BpfOpen(void); 159int BpfRead(RMPCONN *, int); 160int BpfWrite(RMPCONN *); 161void DebugOff(int); 162void DebugOn(int); 163void DispPkt(RMPCONN *, int); 164void DoTimeout(void); 165void DspFlnm(u_int, char *); 166void Exit(int); 167CLIENT *FindClient(RMPCONN *); 168RMPCONN *FindConn(RMPCONN *); 169void FreeClients(void); 170void FreeConn(RMPCONN *); 171void FreeConns(void); 172int GetBootFiles(void); 173char *GetEtherAddr(u_int8_t *); 174CLIENT *NewClient(u_int8_t *); 175RMPCONN *NewConn(RMPCONN *); 176char *NewStr(char *); 177u_int8_t *ParseAddr(char *); 178int ParseConfig(void); 179void ProcessPacket(RMPCONN *, CLIENT *); 180void ReConfig(int); 181void RemoveConn(RMPCONN *); 182int SendBootRepl(struct rmp_packet *, RMPCONN *, char *[]); 183int SendFileNo(struct rmp_packet *, RMPCONN *, char *[]); 184int SendPacket(RMPCONN *); 185int SendReadRepl(RMPCONN *); 186int SendServerID(RMPCONN *); |