123671Sgusella /* 223671Sgusella * Copyright (c) 1983 Regents of the University of California. 323671Sgusella * All rights reserved. The Berkeley software License Agreement 423671Sgusella * specifies the terms and conditions for redistribution. 523671Sgusella */ 623671Sgusella 7*24905Sbloom /* @(#)timedc.h 1.2 (Berkeley) 09/18/85 */ 823671Sgusella 9*24905Sbloom #include <sys/param.h> 1023671Sgusella #include <stdio.h> 1123671Sgusella #include <sys/time.h> 1223671Sgusella #include <errno.h> 1323671Sgusella #include <sys/socket.h> 1423671Sgusella #include <netinet/in.h> 1523671Sgusella #include <netdb.h> 1623671Sgusella #include <arpa/inet.h> 1723671Sgusella 1823671Sgusella extern int errno; 1923671Sgusella 20*24905Sbloom #define ON 1 21*24905Sbloom #define OFF 0 22*24905Sbloom 2323671Sgusella #define MSGS 4 2423671Sgusella #define TRIALS 8 2523671Sgusella 2623671Sgusella #define GOOD 1 2723671Sgusella #define UNREACHABLE 2 2823671Sgusella #define NONSTDTIME 3 2923671Sgusella #define HOSTDOWN 0x7fffffff 3023671Sgusella 3123671Sgusella struct cmd { 3223671Sgusella char *c_name; /* command name */ 3323671Sgusella char *c_help; /* help message */ 3423671Sgusella int (*c_handler)(); /* routine to do the work */ 3523671Sgusella int c_priv; /* privileged command */ 3623671Sgusella }; 37