summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6
diff options
context:
space:
mode:
authorAndrea Barberio <insomniac@slackware.it>2018-04-18 00:08:40 +0100
committerAndrea Barberio <insomniac@slackware.it>2018-04-18 00:08:40 +0100
commit940e2977fb5c0781c6eddf3c0b62baeec7de6011 (patch)
treeeee9ba8ad6d642587a23a0d254705ca46b104c2e /dhcpv6
parent5b8a1331fbb79ccc0011bff297ae4d904e79ea16 (diff)
Fixed user class option length
Diffstat (limited to 'dhcpv6')
-rw-r--r--dhcpv6/option_statuscode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/option_statuscode.go b/dhcpv6/option_statuscode.go
index 7740f4d..f72c4d3 100644
--- a/dhcpv6/option_statuscode.go
+++ b/dhcpv6/option_statuscode.go
@@ -51,7 +51,7 @@ func (op *OptStatusCode) SetStatusMessage(message []byte) {
// Length returns the option length
func (op *OptStatusCode) Length() int {
- return 2 + len(op.statusMessage)
+ return 2 + 2 + len(op.statusMessage)
}
func (op *OptStatusCode) String() string {