How to add options to ntpd

24 views
Skip to first unread message

Youki Shiraishi

unread,
Feb 24, 2022, 10:25:01 AMFeb 24
to
Hi,

I'd like to add a new option to ntpd however I couldn't find how to regenerate ntpd/ntpd-opts{.c, .h} after adding some lines to ntpd/ntpdbase-opts.def e.g.,

$ git diff ntpd/ntpdbase-opts.def
diff --git a/ntpd/ntpdbase-opts.def b/ntpd/ntpdbase-opts.def
index 66b953528..a790cbd51 100644
--- a/ntpd/ntpdbase-opts.def
+++ b/ntpd/ntpdbase-opts.def
@@ -479,3 +479,13 @@ flag = {
the server to be discovered via mDNS client lookup.
_EndOfDoc_;
};
+
+flag = {
+ name = foo;
+ value = F;
+ arg-type = number;
+ descrip = "Some new option";
+ doc = <<- _EndOfDoc_
+ For testing purpose only.
+ _EndOfDoc_;
+};

Do you have any ideas?

Youki Shiraishi

unread,
Feb 25, 2022, 12:24:29 PMFeb 25
to
Reply all
Reply to author
Forward
0 new messages