123666Sgusella /* 223666Sgusella * Copyright (c) 1983 Regents of the University of California. 323666Sgusella * All rights reserved. The Berkeley software License Agreement 423666Sgusella * specifies the terms and conditions for redistribution. 523666Sgusella */ 623666Sgusella 7*24920Sbloom /* @(#)globals.h 1.2 (Berkeley) 09/18/85 */ 823666Sgusella 9*24920Sbloom #include <sys/param.h> 1023666Sgusella #include <stdio.h> 1123666Sgusella #include <sys/time.h> 1223666Sgusella #include <errno.h> 1323666Sgusella #include <syslog.h> 1423666Sgusella #include <sys/socket.h> 1523666Sgusella #include <netinet/in.h> 1623666Sgusella #include <netdb.h> 1723666Sgusella #include <arpa/inet.h> 1823666Sgusella 1923666Sgusella extern int errno; 2023666Sgusella 2123666Sgusella #define RANGE 20 2223666Sgusella #define MSGS 5 2323666Sgusella #define TRIALS 6 2423666Sgusella #define SAMPLEINTVL 240 2523666Sgusella #define MAXSEQ 30000 2623666Sgusella #define MINTOUT 360 2723666Sgusella #define MAXTOUT 900 2823666Sgusella 2923666Sgusella #define GOOD 1 3023666Sgusella #define UNREACHABLE 2 3123666Sgusella #define NONSTDTIME 3 3223666Sgusella #define HOSTDOWN 0x7fffffff 33*24920Sbloom 34*24920Sbloom #define OFF 0 35*24920Sbloom #define ON 1 36*24920Sbloom 37*24920Sbloom #define SLAVE 1 38*24920Sbloom #define MASTER 2 39*24920Sbloom #define IGNORE 4 40*24920Sbloom #define ALL (SLAVE|MASTER|IGNORE) 41*24920Sbloom 42*24920Sbloom #define NHOSTS 30 /* max number of hosts controlled by timed */ 43*24920Sbloom 44*24920Sbloom struct host { 45*24920Sbloom char *name; 46*24920Sbloom char *addr; 47*24920Sbloom int length; 48*24920Sbloom long delta; 49*24920Sbloom u_short seq; 50*24920Sbloom }; 51*24920Sbloom 52*24920Sbloom u_long mynet, netmask; 53