diff options
Diffstat (limited to 'dhcpv4/options.go')
-rw-r--r-- | dhcpv4/options.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpv4/options.go b/dhcpv4/options.go index fdc79ae..9d404b4 100644 --- a/dhcpv4/options.go +++ b/dhcpv4/options.go @@ -81,6 +81,11 @@ func (o Options) Has(opcode OptionCode) bool { return ok } +// Del deletes the option matching the option code. +func (o Options) Del(opcode OptionCode) { + delete(o, opcode.Code()) +} + // Update updates the existing options with the passed option, adding it // at the end if not present already func (o Options) Update(option Option) { |