summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/dhcpv4.go
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-08-12 12:50:24 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-08-12 12:50:24 +0200
commit79d05d5ba9ac8fb488fc6aa1692366d933dee3e1 (patch)
treed1729404c5db5f79226588d96bd9361551ad65fc /dhcpv4/dhcpv4.go
parentf55d67dc49bee6d6aa20913f070ed771b9ff725a (diff)
IsOptionRequested method of DHCPv6Message
Diffstat (limited to 'dhcpv4/dhcpv4.go')
-rw-r--r--dhcpv4/dhcpv4.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go
index 3847425..927e9b8 100644
--- a/dhcpv4/dhcpv4.go
+++ b/dhcpv4/dhcpv4.go
@@ -682,9 +682,8 @@ func (d *DHCPv4) ValidateOptions() {
}
}
-// IsOptionRequested function takes a DHCPv4 message and an OptionCode, and
-// returns true if that option is within the requested options of the DHCPv4
-// message.
+// IsOptionRequested returns true if that option is within the requested
+// options of the DHCPv4 message.
func (d *DHCPv4) IsOptionRequested(requested OptionCode) bool {
for _, optprl := range d.GetOption(OptionParameterRequestList) {
for _, o := range optprl.(*OptParameterRequestList).RequestedOpts {