From 2b18d4aca0504a12a0b2a24e0dbec12f87c12241 Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Fri, 13 Jul 2018 16:11:24 +0100 Subject: [OptIANA] Added GetOneOption method --- dhcpv6/option_nontemporaryaddress.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dhcpv6') diff --git a/dhcpv6/option_nontemporaryaddress.go b/dhcpv6/option_nontemporaryaddress.go index 9f91b18..f430e25 100644 --- a/dhcpv6/option_nontemporaryaddress.go +++ b/dhcpv6/option_nontemporaryaddress.go @@ -45,6 +45,10 @@ func (op *OptIANA) String() string { op.IaId, op.T1, op.T2, op.Options) } +func (op *OptIANA) GetOneOption(code OptionCode) Option { + return getOption(op.Options, code) +} + // DelOption will remove all the options that match a Option code. func (op *OptIANA) DelOption(code OptionCode) { op.Options = delOption(op.Options, code) -- cgit v1.2.3