summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_nontemporaryaddress.go
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-07-08 11:20:32 +0100
committerinsomniac <insomniacslk@users.noreply.github.com>2018-07-08 11:20:32 +0100
commitf15362a37221d3c20f1844dfdf6151a265123608 (patch)
treeb0a4dc6efd2813275977328a039349fa4e4713aa /dhcpv6/option_nontemporaryaddress.go
parent5062bfae598f68ed7c57b3c14259d1a1ca6476fa (diff)
add DelOption to OptIANA (#77)
Diffstat (limited to 'dhcpv6/option_nontemporaryaddress.go')
-rw-r--r--dhcpv6/option_nontemporaryaddress.go5
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) {