diff options
author | Andrea Barberio <insomniac@slackware.it> | 2018-07-13 16:11:24 +0100 |
---|---|---|
committer | Andrea Barberio <insomniac@slackware.it> | 2018-07-13 16:11:24 +0100 |
commit | 2b18d4aca0504a12a0b2a24e0dbec12f87c12241 (patch) | |
tree | dcdf2c158e566b9ed226d4ffb4f2b104f68bd7fb /dhcpv6 | |
parent | 1a0dca7b99b8e48208f7b130ee78c7c588558147 (diff) |
[OptIANA] Added GetOneOption method
Diffstat (limited to 'dhcpv6')
-rw-r--r-- | dhcpv6/option_nontemporaryaddress.go | 4 |
1 files changed, 4 insertions, 0 deletions
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) |