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)
Fri, Nov 15, 5:09 AM
Unknown Object (File)
Wed, Nov 13, 2:14 AM
Unknown Object (File)
Oct 6 2024, 3:22 AM
Unknown Object (File)
Sep 26 2024, 5:26 PM
Unknown Object (File)
Sep 18 2024, 1:55 PM
Unknown Object (File)
Sep 18 2024, 1:55 PM
Unknown Object (File)
Sep 18 2024, 1:55 PM
Unknown Object (File)
Sep 18 2024, 1:53 PM
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.