summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpdc/ntpdc.h
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2004-07-20 15:01:56 +0000
committerroberto <roberto@FreeBSD.org>2004-07-20 15:01:56 +0000
commit118e757284cbb8fc4f43a713e892b41504b50a5f (patch)
tree528d12dda44ebdc3ffcc38050f159ac553a69c17 /contrib/ntp/ntpdc/ntpdc.h
parenta85d9ae25e8e8696677bc30feb6eaf7fc150e529 (diff)
downloadFreeBSD-src-118e757284cbb8fc4f43a713e892b41504b50a5f.zip
FreeBSD-src-118e757284cbb8fc4f43a713e892b41504b50a5f.tar.gz
Virgin import of ntpd 4.2.0
Diffstat (limited to 'contrib/ntp/ntpdc/ntpdc.h')
-rw-r--r--contrib/ntp/ntpdc/ntpdc.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/ntp/ntpdc/ntpdc.h b/contrib/ntp/ntpdc/ntpdc.h
index 8b35d4f..589529f 100644
--- a/contrib/ntp/ntpdc/ntpdc.h
+++ b/contrib/ntp/ntpdc/ntpdc.h
@@ -22,6 +22,7 @@
#define UINT 0x2 /* unsigned integer */
#define INT 0x3 /* signed integer */
#define ADD 0x4 /* IP network address */
+#define IP_VERSION 0x5 /* IP version */
/*
* Arguments are returned in a union
@@ -30,7 +31,7 @@ typedef union {
char *string;
long ival;
u_long uval;
- u_int32 netnum;
+ struct sockaddr_storage netnum;
} arg_v;
/*
@@ -55,5 +56,9 @@ struct xcmd {
const char *comment;
};
-extern int doquery P((int, int, int, int, int, char *, int *, int *, char **, int));
-extern char * nntohost P((u_int32));
+extern int impl_ver;
+extern int showhostnames;
+extern int s_port;
+
+extern int doquery P((int, int, int, int, int, char *, int *, int *, char **, int, int));
+extern char * nntohost P((struct sockaddr_storage *));
OpenPOWER on IntegriCloud