Enhance dhclient to parse multiple instances in Option 17/43/125
name: Feature request
about: Enhance dhclient to parse multiple instances in Option 17/43/125
Some initial questions
- Are you sure your feature is not already implemented in the latest ISC DHCP version?
Yes
- Are you sure your feature is not already implemented in the latest Kea version? Perhaps it's a good time to consider migration?
This is for DHCP client, and KEA doesn't support client.
- Are you sure what you would like to do is not possible using some other mechanisms?
Not sure, maybe there also has other way.
- Have you discussed your idea on dhcp-users or dhcp-workers mailing lists?
Sorry, I commit to here first. Upload the patch as an attachment. 0001-Enhance-dhclient-to-parse-multiple-instances-in-Opti.patch
Is your feature request related to a problem? Please describe.
When DHCP server sends a single instance in Option 17/43/125 from the dhclient-exit-hooks, dhclient can parse it well. But if DHCP server sends multiple instances, dhclient only can parse the first one.
Describe the solution you'd like
Use a do-while to parse each "struct option_cache-->option" in the oclist.
Describe alternatives you've considered
Additional context
Funding its development
Participating in development Are you willing to participate in the feature development? ISC team always tries to make a feature as generic as possible, so it can be used in wide variety of situations. That means the proposed solution may be a bit different that you initially thought. Are you willing to take part in the design discussions? Are you willing to test an unreleased engineering code?
Yes! It's my pleasure, I'm very glad to do these.
Contacting you How can ISC reach you to discuss this matter further? If you do not specify any means such as e-mail, jabber id or a telephone, we may send you a message on github with questions when we have them.
Maybe here has a typo: >>we may send you a message on **github **with questions when we have them. We are on GitLab now :) Using GitLab can contact me, thanks.