summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-07-13 16:19:58 +0100
committerAndrea Barberio <insomniac@slackware.it>2018-07-13 16:19:58 +0100
commitfdc5bef9740d6dc1be9ecaffd42c64108a11aa33 (patch)
tree93c7c8165b9c037b6f7c9d963eaa2b98756f8a3c /dhcpv6
parenta0c764be8d07b0f3d925ba2565c8f675e56e3fde (diff)
linter
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/option_nontemporaryaddress.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv6/option_nontemporaryaddress.go b/dhcpv6/option_nontemporaryaddress.go
index f430e25..5debeec 100644
--- a/dhcpv6/option_nontemporaryaddress.go
+++ b/dhcpv6/option_nontemporaryaddress.go
@@ -45,6 +45,8 @@ func (op *OptIANA) String() string {
op.IaId, op.T1, op.T2, op.Options)
}
+// GetOneOption will get an option of the give type from the Options field, if
+// it is present. It will return `nil` otherwise
func (op *OptIANA) GetOneOption(code OptionCode) Option {
return getOption(op.Options, code)
}