]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntp_control.c:
authorSachin Kamboj <kamboj@cis.udel.edu>
Tue, 16 Jan 2007 07:20:41 +0000 (02:20 -0500)
committerSachin Kamboj <kamboj@cis.udel.edu>
Tue, 16 Jan 2007 07:20:41 +0000 (02:20 -0500)
  Added configure prototype
ntp_control.h:
  Added opcode for configure.
rsa_md5.h:
  Removed double bracket

bk: 45ac7cc9vI_ZGcIn9MeZD6R3ebBaCQ

include/ntp_control.h
include/rsa_md5.h
ntpd/ntp_control.c

index c299794534b3b8c33dbdda93929c21f26a33c418..50f84e9734962f7b0e1792e08aec806e4ccae2da 100644 (file)
@@ -53,6 +53,7 @@ struct ntp_control {
 #define        CTL_OP_WRITECLOCK       5
 #define        CTL_OP_SETTRAP          6
 #define        CTL_OP_ASYNCMSG         7
+#define CTL_OP_CONFIGURE        8
 #define        CTL_OP_UNSETTRAP        31
 
 /*
index 8241647601b3d54f105b6a1c16d3405e694ed8a2..78d5dc9ad78598221d6e95afb17cc1278a953a06 100644 (file)
@@ -39,10 +39,10 @@ typedef struct {
   unsigned char buffer[64];                         /* input buffer */
 } MD5_CTX;
 
-void MD5Init PROTO_LIST ((MD5_CTX *));
+void MD5Init PROTO_LIST (MD5_CTX *);
 void MD5Update PROTO_LIST
-  ((MD5_CTX *, unsigned char *, unsigned int));
-void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
+  (MD5_CTX *, unsigned char *, unsigned int);
+void MD5Final PROTO_LIST (unsigned char [16], MD5_CTX *);
 
 #ifdef __cplusplus
 }
index ed21df98ccd7c135b08461f56633bfc435ddd0e1..96f3676395e69dda66fb6a2b1d7208d5e2fa6b47 100644 (file)
@@ -77,6 +77,7 @@ static        void    read_clock_status (struct recvbuf *, int);
 static void    write_clock_status (struct recvbuf *, int);
 static void    set_trap        (struct recvbuf *, int);
 static void    unset_trap      (struct recvbuf *, int);
+static void    configure       (struct recvbuf *, int);
 static struct ctl_trap *ctlfindtrap (struct sockaddr_storage *,
                                    struct interface *);