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.
ntpd_l_option.patch
Description: Binary data
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
