003 File Manager
Current Path:
/usr/src/contrib/ntp/sntp/tests
usr
/
src
/
contrib
/
ntp
/
sntp
/
tests
/
📁
..
📄
Makefile.am
(5.33 KB)
📄
Makefile.in
(59.77 KB)
📄
crypto.c
(5.93 KB)
📁
data
📄
fileHandlingTest.c
(1.48 KB)
📄
fileHandlingTest.h.in
(582 B)
📄
keyFile.c
(4.23 KB)
📄
kodDatabase.c
(2.98 KB)
📄
kodFile.c
(3.76 KB)
📄
networking.c
(88 B)
📄
packetHandling.c
(6.98 KB)
📄
packetProcessing.c
(11.55 KB)
📄
run-crypto.c
(1.75 KB)
📄
run-keyFile.c
(1.6 KB)
📄
run-kodDatabase.c
(1.65 KB)
📄
run-kodFile.c
(1.71 KB)
📄
run-networking.c
(1.15 KB)
📄
run-packetHandling.c
(2.22 KB)
📄
run-packetProcessing.c
(2.91 KB)
📄
run-t-log.c
(1.37 KB)
📄
run-utilities.c
(1.73 KB)
📄
sntptest.c
(505 B)
📄
sntptest.h
(222 B)
📄
t-log.c
(2.24 KB)
📄
testconf.yml
(278 B)
📄
tests-runner
(331 B)
📄
utilities.c
(4.44 KB)
Editing: sntptest.c
#include "config.h" #include "ntp_stdlib.h" #include "sntp-opts.h" #include "sntptest.h" void sntptest(void) { optionSaveState(&sntpOptions); } void sntptest_destroy(void) { optionRestore(&sntpOptions); } void ActivateOption(const char* option, const char* argument) { const int ARGV_SIZE = 4; char* opts[ARGV_SIZE]; opts[0] = estrdup("sntpopts"); opts[1] = estrdup(option); opts[2] = estrdup(argument); opts[3] = estrdup("127.0.0.1"); optionProcess(&sntpOptions, ARGV_SIZE, opts); }
Upload File
Create Folder