| Summary: | bootpd(8) dovend.c Win95 compatibility improvement and typos in error messages | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Dan Lukes <dan> | ||||
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | dan+freebsd.org, emaste | ||||
| Priority: | Normal | ||||||
| Version: | 4.4-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Dan Lukes
2001-09-27 09:00:01 UTC
In message <200109270142.f8R1gEH43139@xkulesh.vol.cz>, Dan Lukes writes: > > Win95 release ignore dn (domain-name) field unless <NUL> terminated. >Padding shouldn't cause a problem on other systems Hi, The ISC dhcpd only NUL-terminates replies when it detects a Microsoft client that requires it: /* Set a flag if this client is a lame Microsoft client that NUL terminates string options and expects us to do likewise. */ if (packet -> options [DHO_HOST_NAME].data && packet -> options [DHO_HOST_NAME].data [packet -> options [DHO_HOST_NAME].len - 1] == '\0') lease -> flags |= MS_NULL_TERMINATION; else lease -> flags &= ~MS_NULL_TERMINATION; How easy would it be to do something like this in our bootpd instead? ISC-dhcpd is much more actively developed and widely used than bootpd is, so it's probably better to try and follow dhcpd's approach where possible to avoid problems that they may have already solved. Ian For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped A commit references this bug: Author: emaste Date: Tue May 21 21:27:14 UTC 2019 New revision: 348069 URL: https://svnweb.freebsd.org/changeset/base/348069 Log: bootpd: avoid the same error indication for different issues There were several (apparently) copy-pasted NEED validation macros, leading to the same error string for different issues. Change the YP and NTP tags so they are distinct. PR: 30863 Submitted by: Dan Lukes <dan@obluda.cz> Reviewed by: markj MFC after: 1 week Event: Waterloo Hackathon 2019 Changes: head/libexec/bootpd/dovend.c Duplicate error message tags addressed, null termination not changed. Thank you for taking care of this 18 year old bug report. Finally, there was no complete waste of time to report the problem. As far as the rest of the message is concerned, no one is interested in Windows 95 anymore. Time to forget this ancient piece of history and time to close this bug. Error messages addressed and as reported Win95 is no longer relevant. A commit references this bug: Author: emaste Date: Tue May 28 13:14:53 UTC 2019 New revision: 348325 URL: https://svnweb.freebsd.org/changeset/base/348325 Log: MFC r348069: bootpd: avoid the same error indication for different issues There were several (apparently) copy-pasted NEED validation macros, leading to the same error string for different issues. Change the YP and NTP tags so they are distinct. PR: 30863 Submitted by: Dan Lukes <dan@obluda.cz> Reviewed by: markj Changes: _U stable/12/ stable/12/libexec/bootpd/dovend.c |