summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-04-18 00:06:09 +0100
committerAndrea Barberio <insomniac@slackware.it>2018-04-18 00:06:09 +0100
commit5b8a1331fbb79ccc0011bff297ae4d904e79ea16 (patch)
treeaf504986e31076bd6cb0547383cf80b59877a46b
parentef3aa24da3962bf1b12231a309bde89c556ebbcf (diff)
Fixed user class length
-rw-r--r--dhcpv6/option_userclass.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/option_userclass.go b/dhcpv6/option_userclass.go
index a9fde46..6f62b23 100644
--- a/dhcpv6/option_userclass.go
+++ b/dhcpv6/option_userclass.go
@@ -39,7 +39,7 @@ func (op *OptUserClass) SetUserClass(userClass []byte) {
// Length returns the option length
func (op *OptUserClass) Length() int {
- return len(op.userClass)
+ return 2 + len(op.userClass)
}
func (op *OptUserClass) String() string {