summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-07-13 16:11:24 +0100
committerAndrea Barberio <insomniac@slackware.it>2018-07-13 16:11:24 +0100
commit2b18d4aca0504a12a0b2a24e0dbec12f87c12241 (patch)
treedcdf2c158e566b9ed226d4ffb4f2b104f68bd7fb /dhcpv6
parent1a0dca7b99b8e48208f7b130ee78c7c588558147 (diff)
[OptIANA] Added GetOneOption method
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/option_nontemporaryaddress.go4
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)