Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I bet the human brain is a kludge. -- Marvin Minsky


devel / comp.protocols.time.ntp / Re: How to add options to ntpd

SubjectAuthor
* How to add options to ntpdYouki Shiraishi
`- Re: How to add options to ntpdYouki Shiraishi

1
How to add options to ntpd

<e10ebbd5-3959-4504-84b5-fff378f3d22cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=273&group=comp.protocols.time.ntp#273

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a5d:5983:0:b0:1e5:7dd6:710 with SMTP id n3-20020a5d5983000000b001e57dd60710mr2732886wri.392.1645716299748;
Thu, 24 Feb 2022 07:24:59 -0800 (PST)
X-Received: by 2002:a05:6870:3409:b0:d5:a652:91a8 with SMTP id
g9-20020a056870340900b000d5a65291a8mr5700759oah.22.1645716299164; Thu, 24 Feb
2022 07:24:59 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!pasdenom.info!usenet-fr.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Thu, 24 Feb 2022 07:24:58 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2409:10:c000:c00:1580:1d52:8ea7:6e78;
posting-account=2QTNLAoAAADHJ33TY7T75bxl7T09SsRl
NNTP-Posting-Host: 2409:10:c000:c00:1580:1d52:8ea7:6e78
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e10ebbd5-3959-4504-84b5-fff378f3d22cn@googlegroups.com>
Subject: How to add options to ntpd
From: youki.shiraishi@gmail.com (Youki Shiraishi)
Injection-Date: Thu, 24 Feb 2022 15:24:59 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Youki Shiraishi - Thu, 24 Feb 2022 15:24 UTC

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?

Re: How to add options to ntpd

<2ece84f9-e151-4e1f-94cd-b4b04055a33cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=274&group=comp.protocols.time.ntp#274

  copy link   Newsgroups: comp.protocols.time.ntp
X-Received: by 2002:a05:622a:1881:b0:2ce:e215:df60 with SMTP id v1-20020a05622a188100b002cee215df60mr7963892qtc.670.1645809868696;
Fri, 25 Feb 2022 09:24:28 -0800 (PST)
X-Received: by 2002:a9d:6349:0:b0:5a1:5607:afd0 with SMTP id
y9-20020a9d6349000000b005a15607afd0mr3117588otk.381.1645809868323; Fri, 25
Feb 2022 09:24:28 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.protocols.time.ntp
Date: Fri, 25 Feb 2022 09:24:28 -0800 (PST)
In-Reply-To: <e10ebbd5-3959-4504-84b5-fff378f3d22cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2409:10:c000:c00:4dad:9176:d19c:efc4;
posting-account=2QTNLAoAAADHJ33TY7T75bxl7T09SsRl
NNTP-Posting-Host: 2409:10:c000:c00:4dad:9176:d19c:efc4
References: <e10ebbd5-3959-4504-84b5-fff378f3d22cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2ece84f9-e151-4e1f-94cd-b4b04055a33cn@googlegroups.com>
Subject: Re: How to add options to ntpd
From: youki.shiraishi@gmail.com (Youki Shiraishi)
Injection-Date: Fri, 25 Feb 2022 17:24:28 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 31
 by: Youki Shiraishi - Fri, 25 Feb 2022 17:24 UTC

Solved.

https://stackoverflow.com/a/71269027/6908912

Thank you.

On Friday, February 25, 2022 at 12:25:01 AM UTC+9, Youki Shiraishi wrote:
> 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?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor