summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-08-03 12:23:39 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-08-10 15:25:49 +0200
commitcff664d4ac7fe61377195a9d439e17259ce5899e (patch)
tree370552868b8fc3462bc2f5ffd23e922036aa29c9
parent27e10b9e7f76b99dbdc0d8fd779b18ef322ed92c (diff)
IsRequested: update comment
-rw-r--r--dhcpv4/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/utils.go b/dhcpv4/utils.go
index d95f586..fed0679 100644
--- a/dhcpv4/utils.go
+++ b/dhcpv4/utils.go
@@ -1,7 +1,7 @@
package dhcpv4
// IsRequested function takes a DHCPv4 message and an OptionCode, and returns
-// true if that option is within the requested options of the DHCPv6 message.
+// true if that option is within the requested options of the DHCPv4 message.
func IsRequested(pkt *DHCPv4, requested OptionCode) bool {
for _, optprl := range pkt.GetOption(OptionParameterRequestList) {
for _, o := range optprl.(*OptParameterRequestList).RequestedOpts {