diff options
Diffstat (limited to 'dhcpv6/option_nontemporaryaddress.go')
-rw-r--r-- | dhcpv6/option_nontemporaryaddress.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpv6/option_nontemporaryaddress.go b/dhcpv6/option_nontemporaryaddress.go index cefca64..9f91b18 100644 --- a/dhcpv6/option_nontemporaryaddress.go +++ b/dhcpv6/option_nontemporaryaddress.go @@ -45,6 +45,11 @@ func (op *OptIANA) String() string { op.IaId, op.T1, op.T2, op.Options) } +// DelOption will remove all the options that match a Option code. +func (op *OptIANA) DelOption(code OptionCode) { + op.Options = delOption(op.Options, code) +} + // build an OptIANA structure from a sequence of bytes. // The input data does not include option code and length bytes. func ParseOptIANA(data []byte) (*OptIANA, error) { |