AW: [PATCH] ntpd: Add option -I to ntpd server
Nikolaus Froehlich
nikolaus at Mathematik.Uni-Marburg.de
Mon Jul 14 21:02:46 UTC 2014
Hi Harald,
>As a suggestion: Can't we just extend the -l (lowercase letter L) option
for this purpose? If -l is given without further information, >ntpd bind to
all interfaces (the default address), else ntpd binds to the given
Interface/Address. This way we do not introduce a >new option.
>
>The help text of -l would be "-l [INTERFACE] listen on port 123 of given
INTERFACE (default all Interfaces)".
By choosing -I as option, I attempted to stay as close as possible to the
ntp.org ntpd reference implementation. On the other hand, since my
implementation is not 100% compatible to the reference implementation anyway
(as it allows the option to be given only once), we might as well extend the
existing -l option as per your suggestion.
Attached is a reworked patch extending the existing option -l (lowercase
letter L) to allow for an optional parameter INTERFACE specifying the
interface to bind the ntpd server to.
Comments and improvements are very welcome.
Regards,
Nik.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ntpd_l_option.patch
Type: application/octet-stream
Size: 2690 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20140714/b2bf3472/attachment.obj>
More information about the busybox
mailing list