Page MenuHomeFreeBSD

dhclient(8): Enable numbered user class ID option
ClosedPublic

Authored by cem on Sep 17 2016, 9:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 12, 8:56 PM
Unknown Object (File)
Tue, Aug 5, 1:43 AM
Unknown Object (File)
Mon, Jul 28, 5:07 AM
Unknown Object (File)
Jun 25 2025, 6:19 PM
Unknown Object (File)
Jun 16 2025, 1:07 PM
Unknown Object (File)
Jun 14 2025, 4:47 PM
Unknown Object (File)
Jun 11 2025, 6:37 AM
Unknown Object (File)
Jun 2 2025, 7:45 AM
Subscribers

Details

Summary

By adding it to the option priorities table.

PR: 184117
Submitted by: Tomek CEDRO <cederom at tlen.pl>

Test Plan

It compiles.

Diff Detail

Event Timeline

cem retitled this revision from to dhclient(8): Enable numbered user class ID option.
cem updated this object.
cem edited the test plan for this revision. (Show Details)
cem added reviewers: brooks, dumbbell, jhb.
jhb edited edge metadata.

This doesn't fully fix the PR, per se. I wonder how hard it would be to check for any other missing options in this table that the existing code already handles.

Hmm, OpenBSD removed this table entirely it seems. Might be interesting to see if their change to do that is worth bringing in. Unfortunately this is only the link to the CVS change for tables.c and not all the related files:

http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sbin/dhclient/tables.c.diff?r1=1.8&r2=1.9&f=h

This revision is now accepted and ready to land.Sep 20 2016, 5:47 PM

Github is a decent resource for OpenBSD history (multiple-file changes are grouped together nicely). Supposedly they rewrite history frequently, so I won't link to a specific sha1. Here's history for that file:

https://github.com/openbsd/src/commits/master/sbin/dhclient/tables.c

If you click a commit, such as the "Repair/rationalize option handling" one, you can see all changed files.

This doesn't fully fix the PR, per se. I wonder how hard it would be to check for any other missing options in this table that the existing code already handles.

Hmm, OpenBSD removed this table entirely it seems. Might be interesting to see if their change to do that is worth bringing in. Unfortunately this is only the link to the CVS change for tables.c and not all the related files:

I don't really have the dhclient expertise (or interest to acquire that expertise) needed to make bigger changes like that. But I'm happy to try and get trivial PRs like this landed.

Thanks for the review.

This revision was automatically updated to reflect the committed changes.