#AUTOMAKE_OPTIONS = ../ansi2knr no-dependencies
AUTOMAKE_OPTIONS = ../util/ansi2knr
noinst_LIBRARIES = libntp.a @MAKE_LIBNTPSIM@
+EXTRA_LIBRARIES = libntpsim.a
libntp_a_SRCS = a_md5encrypt.c adjtime.c atoint.c atolfp.c atouint.c \
audio.c authkeys.c authreadkeys.c authusekey.c binio.c buftvtots.c \
caljulian.c calleapwhen.c caltontp.c calyearstart.c clocktime.c \
#include "ntp_stdlib.h"
#include "ntp_cmdargs.h"
+#ifdef SIM
+#include "ntpsim.h"
+#endif /* SIM */
+
/*
* Definitions of things either imported from or exported to outside
*/
extern char const *progname;
int listen_to_virtual_ips = 0;
-static const char *ntp_options = "aAbc:dD:f:gk:l:LmnN:p:P:qr:s:t:v:V:x";
+
+static const char *ntp_options = "aAbc:dD:f:gJ:k:l:LmnN:O:p:P:qr:s:t:T:W:v:V:x";
#ifdef HAVE_NETINFO
extern int check_netinfo;
case 'x':
allow_step = FALSE;
break;
-
+#ifdef SIM
+ case 'T':
+ ntp_node.ferr = (double)atof(ntp_optarg);
+ break;
+ case 'O':
+ ntp_node.clk_time =
+ ntp_node.time+((double)atof(ntp_optarg)/1e6);
+ ntp_node.ntp_time =
+ ntp_node.time+((double)atof(ntp_optarg)/1e6);
+ break;
+ case 'W':
+ ntp_node.fnse = (double)atof(ntp_optarg);
+ break;
+ case 'J':
+ ntp_node.nnse = (double)atof(ntp_optarg);
+ break;
+#endif /* SIM */
default:
errflg++;
break;