summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-03-16 16:16:16 +0000
committerAndrea Barberio <insomniac@slackware.it>2018-03-16 16:16:16 +0000
commit68b69b60f15316ba804ea083129ef5636a2803a5 (patch)
treec75c8313ebcc7cbaaa6b00e3e618b204b18c6262 /dhcpv6
parent79b8450e99efee338596f15fc1f8f88c3e42edc0 (diff)
dhcpv4: Added OptionDomainName
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv6/options.go b/dhcpv6/options.go
index fcfed37..ad52998 100644
--- a/dhcpv6/options.go
+++ b/dhcpv6/options.go
@@ -5,8 +5,10 @@ import (
"fmt"
)
+// OptionCode is a single byte representing the code for a given Option.
type OptionCode uint16
+// Option is an interface that all DHCPv6 options adhere to.
type Option interface {
Code() OptionCode
ToBytes() []byte