Re: dhcpleased(8): host name DHCP option

2022-01-03 Thread Bjorn Ketelaars
On Sat 01/01/2022 11:37, Florian Obser wrote: > ping > On 2021-12-24 10:16 +01, Florian Obser wrote: > > Make host name DHCP option configurable. > > Diff from ha...@sdf.org, tweaks by me. > > > > RFC 2132 says a host name must have a lenght of at least 1, so we can > > use strlen(h_name) == 0 to

Re: dhcpleased(8): host name DHCP option

2022-01-01 Thread Florian Obser
ping On 2021-12-24 10:16 +01, Florian Obser wrote: > Make host name DHCP option configurable. > Diff from ha...@sdf.org, tweaks by me. > > RFC 2132 says a host name must have a lenght of at least 1, so we can > use strlen(h_name) == 0 to not send a host name option at all and h_name > == NULL to s

dhcpleased(8): host name DHCP option

2021-12-24 Thread Florian Obser
Make host name DHCP option configurable. Diff from ha...@sdf.org, tweaks by me. RFC 2132 says a host name must have a lenght of at least 1, so we can use strlen(h_name) == 0 to not send a host name option at all and h_name == NULL to send the default host name option. OK? diff --git dhcpleased.c