ntpdc.h (54359) | ntpdc.h (132451) |
---|---|
1/* 2 * ntpdc.h - definitions of interest to ntpdc 3 */ 4#include "ntp_fp.h" 5#include "ntp.h" 6#include "ntp_request.h" 7#include "ntp_string.h" 8#include "ntp_malloc.h" --- 8 unchanged lines hidden (view full) --- 17 */ 18#define OPT 0x80 /* this argument is optional, or'd with type */ 19 20#define NO 0x0 21#define NTP_STR 0x1 /* string argument */ 22#define UINT 0x2 /* unsigned integer */ 23#define INT 0x3 /* signed integer */ 24#define ADD 0x4 /* IP network address */ | 1/* 2 * ntpdc.h - definitions of interest to ntpdc 3 */ 4#include "ntp_fp.h" 5#include "ntp.h" 6#include "ntp_request.h" 7#include "ntp_string.h" 8#include "ntp_malloc.h" --- 8 unchanged lines hidden (view full) --- 17 */ 18#define OPT 0x80 /* this argument is optional, or'd with type */ 19 20#define NO 0x0 21#define NTP_STR 0x1 /* string argument */ 22#define UINT 0x2 /* unsigned integer */ 23#define INT 0x3 /* signed integer */ 24#define ADD 0x4 /* IP network address */ |
25#define IP_VERSION 0x5 /* IP version */ |
|
25 26/* 27 * Arguments are returned in a union 28 */ 29typedef union { 30 char *string; 31 long ival; 32 u_long uval; | 26 27/* 28 * Arguments are returned in a union 29 */ 30typedef union { 31 char *string; 32 long ival; 33 u_long uval; |
33 u_int32 netnum; | 34 struct sockaddr_storage netnum; |
34} arg_v; 35 36/* 37 * Structure for passing parsed command line 38 */ 39struct parse { 40 char *keyword; 41 arg_v argval[MAXARGS]; --- 8 unchanged lines hidden (view full) --- 50struct xcmd { 51 const char *keyword; /* command key word */ 52 void (*handler) P((struct parse *, FILE *)); /* command handler */ 53 u_char arg[MAXARGS]; /* descriptors for arguments */ 54 const char *desc[MAXARGS]; /* descriptions for arguments */ 55 const char *comment; 56}; 57 | 35} arg_v; 36 37/* 38 * Structure for passing parsed command line 39 */ 40struct parse { 41 char *keyword; 42 arg_v argval[MAXARGS]; --- 8 unchanged lines hidden (view full) --- 51struct xcmd { 52 const char *keyword; /* command key word */ 53 void (*handler) P((struct parse *, FILE *)); /* command handler */ 54 u_char arg[MAXARGS]; /* descriptors for arguments */ 55 const char *desc[MAXARGS]; /* descriptions for arguments */ 56 const char *comment; 57}; 58 |
58extern int doquery P((int, int, int, int, int, char *, int *, int *, char **, int)); 59extern char * nntohost P((u_int32)); | 59extern int impl_ver; 60extern int showhostnames; 61extern int s_port; 62 63extern int doquery P((int, int, int, int, int, char *, int *, int *, char **, int, int)); 64extern char * nntohost P((struct sockaddr_storage *)); |