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)
Sun, Mar 31, 8:35 PM
Unknown Object (File)
Feb 7 2024, 10:55 PM
Unknown Object (File)
Jan 11 2024, 4:43 PM
Unknown Object (File)
Dec 20 2023, 2:04 AM
Unknown Object (File)
Nov 10 2023, 3:32 PM
Unknown Object (File)
Nov 7 2023, 11:44 AM
Unknown Object (File)
Nov 2 2023, 4:33 AM
Unknown Object (File)
Oct 25 2023, 6:08 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.