hextolfp.c humandate.c icom.c ieee754io.c inttoa.c iosignal.c \
lib_strbuf.c machines.c md5c.c memmove.c mfp_mul.c mfptoa.c \
mfptoms.c mktime.c modetoa.c mstolfp.c msutotsf.c msyslog.c netof.c \
- numtoa.c numtohost.c octtoint.c prettydate.c ranny.c recvbuff.c \
- refnumtoa.c snprintf.c statestr.c strdup.c strerror.c strstr.c\
+ ntp_rfc2553.c numtoa.c numtohost.c octtoint.c prettydate.c \
+ ranny.c recvbuff.c refnumtoa.c snprintf.c socktoa.c socktohost.c \
+ statestr.c strdup.c strerror.c strstr.c \
- syssignal.c systime.c tsftomsu.c tstotv.c tvtoa.c tvtots.c \
+ syssignal.c tsftomsu.c tstotv.c tvtoa.c tvtots.c \
uglydate.c uinttoa.c utvtoa.c ymd2yd.c
+ libntp_a_SOURCES = systime.c $(libntp_a_SRCS)
+ libntpsim_a_SOURCES = systime_s.c $(libntp_a_SRCS)
EXTRA_libntp_a_SOURCES = adjtimex.c log.c random.c
INCLUDES = -I$(top_srcdir)/include
ETAGS_ARGS = Makefile.am
#include "ntp_refclock.h"
#include "ntp_if.h"
#include "ntp_stdlib.h"
+#include "ntp.h"
+ #ifdef SIM
+ #include "ntpsim.h"
+ #endif
+
#include <stdio.h>
#include <signal.h>
#ifdef HAVE_SYS_PARAM_H
err = io_completion_port_sendto(inter, pkt, len, dest);
if (err != ERROR_SUCCESS)
#else
- cc = sendto(inter->fd, (char *)pkt, (size_t)len, 0, (struct sockaddr *)dest,
- sizeof(struct sockaddr_in));
+ #ifdef SIM
+ cc = srvr_rply(&ntp_node, dest, inter, pkt);
+ #else /* SIM */
+ cc = sendto(inter->fd, (char *)pkt, (unsigned int)len, 0, (struct sockaddr *)dest,
+ SOCKLEN(dest));
+ #endif /* SIM */
if (cc == -1)
#endif
{
int authlen; /* offset of MAC field */
int is_authentic; /* cryptosum ok */
keyid_t skeyid; /* cryptographic keys */
- struct sockaddr_in *dstadr_sin; /* active runway */
+ struct sockaddr_storage *dstadr_sin; /* active runway */
l_fp p_org; /* originate timestamp */
+ l_fp p_xmt; /* transmit timestamp */
#ifdef OPENSSL
keyid_t pkeyid, tkeyid; /* cryptographic keys */
struct autokey *ap; /* autokey structure pointer */