shuffle constants between files, move host structure from timed.h, add some
[unix-history] / usr / src / usr.sbin / timed / timed / globals.h
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
/* @(#)globals.h 1.2 (Berkeley) %G% */
#include <sys/param.h>
#include <stdio.h>
#include <sys/time.h>
#include <errno.h>
#include <syslog.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
extern int errno;
#define RANGE 20
#define MSGS 5
#define TRIALS 6
#define SAMPLEINTVL 240
#define MAXSEQ 30000
#define MINTOUT 360
#define MAXTOUT 900
#define GOOD 1
#define UNREACHABLE 2
#define NONSTDTIME 3
#define HOSTDOWN 0x7fffffff
#define OFF 0
#define ON 1
#define SLAVE 1
#define MASTER 2
#define IGNORE 4
#define ALL (SLAVE|MASTER|IGNORE)
#define NHOSTS 30 /* max number of hosts controlled by timed */
struct host {
char *name;
char *addr;
int length;
long delta;
u_short seq;
};
u_long mynet, netmask;