summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 {