diff options
Diffstat (limited to 'dhcpv4/utils.go')
-rw-r--r-- | dhcpv4/utils.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/dhcpv4/utils.go b/dhcpv4/utils.go deleted file mode 100644 index fed0679..0000000 --- a/dhcpv4/utils.go +++ /dev/null @@ -1,14 +0,0 @@ -package dhcpv4 - -// IsRequested function takes a DHCPv4 message and an OptionCode, and returns -// 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 { - if o == requested { - return true - } - } - } - return false -} |