123671Sgusella /* 223671Sgusella * Copyright (c) 1983 Regents of the University of California. 333123Sbostic * All rights reserved. 433123Sbostic * 5*42829Sbostic * %sccs.include.redist.c% 633123Sbostic * 7*42829Sbostic * @(#)timedc.h 2.4 (Berkeley) 06/01/90 823671Sgusella */ 923671Sgusella 1024905Sbloom #include <sys/param.h> 1123671Sgusella #include <stdio.h> 1223671Sgusella #include <sys/time.h> 1323671Sgusella #include <errno.h> 1423671Sgusella #include <sys/socket.h> 1523671Sgusella #include <netinet/in.h> 1623671Sgusella #include <netdb.h> 1723671Sgusella #include <arpa/inet.h> 1823671Sgusella 1923671Sgusella extern int errno; 2023671Sgusella 2124905Sbloom #define ON 1 2224905Sbloom #define OFF 0 2324905Sbloom 2425267Sgusella #define MSGS 6 2525267Sgusella #define TRIALS 5 2623671Sgusella 2723671Sgusella #define GOOD 1 2823671Sgusella #define UNREACHABLE 2 2923671Sgusella #define NONSTDTIME 3 3023671Sgusella #define HOSTDOWN 0x7fffffff 3123671Sgusella 3223671Sgusella struct cmd { 3323671Sgusella char *c_name; /* command name */ 3423671Sgusella char *c_help; /* help message */ 3523671Sgusella int (*c_handler)(); /* routine to do the work */ 3623671Sgusella int c_priv; /* privileged command */ 3723671Sgusella }; 38