openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
160 stars 96 forks source link

[feature suggestion] add ntp server option for DHCPv4 | DHCPv6 #131

Open ghost opened 5 years ago

ghost commented 5 years ago

dhcp option (42) ntp server is currently not in the odhcp portfolio and thus suggest as added feature

ghost commented 5 years ago

as a workaround tried /etc/ntp.conf with broadcast 224.0.1.1 but it would appear that busybox's sysntpd does not parse that file.

and with the ntpd package being at odds with busybox that is no dice either.

tiagogaspar8 commented 5 years ago

I'd like this too, but I believe Issues and features aren't to be opened and resolved here.

ghost commented 4 years ago

According to [1] the matching DHCPv6 option

IANA has assigned 56 as an option code from the "DHCPv6 Options Codes" registry for OPTION_NTP_SERVER.


[1] https://tools.ietf.org/html/rfc5908#section-8

luizluca commented 4 years ago

How about a way to add generic DHCP options like dnsmasq does (--dhcp-option)?