`run_script` hook should contain all DHCP options
I propose that the run_script
hook be expanded to include all (or more) options of the DHCPv4 packet. As it stands, only option 82 is returned:
RunScriptImpl::extractOption(vars,
pkt4->getOption(DHO_DHCP_AGENT_OPTIONS),
prefix, suffix);
RunScriptImpl::extractSubOption(vars,
pkt4->getOption(DHO_DHCP_AGENT_OPTIONS),
RAI_OPTION_AGENT_CIRCUIT_ID,
prefix, suffix);
RunScriptImpl::extractSubOption(vars,
pkt4->getOption(DHO_DHCP_AGENT_OPTIONS),
RAI_OPTION_REMOTE_ID,
prefix, suffix);
Not having looked in-depth, this seems like a place to add a loop over all the option constants, and additionally over each suboption (if applicable). This might be completely unrealistic, however.