summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_requested_ip_address.go
diff options
context:
space:
mode:
authorBrandon Bennett <bennetb@gmail.com>2018-05-11 14:09:24 -0600
committerinsomniac <insomniacslk@users.noreply.github.com>2018-05-11 21:09:24 +0100
commitd7cd0594274352de80d86a3bf32b487dfde63629 (patch)
tree11e49ad04a68378dc8e689c26098f7b4ef8f53c1 /dhcpv4/option_requested_ip_address.go
parenteab1c08cbc637f5d370bf84da1feba8673fb7cc3 (diff)
add dhcpv4.GetOption and dhcpv4.GetSingleOption methods (#63)
GetOption and GetOneOption are convenience methods for getting a DHCPv4 option from its Option Code. GetOption returns a list of options that match since the DHCP RFC allows for an option to be present multiple times with its values appended together. (Note: I am not sure I've ever seen this done and it's not clear if how option parsing would work for more complex values. Is appending done at the byte level? ) GetOneOption will return the first found option that matches a code.
Diffstat (limited to 'dhcpv4/option_requested_ip_address.go')
0 files changed, 0 insertions, 0 deletions