From a5582a6202195fe191b4b4fc7673b615ceef499a Mon Sep 17 00:00:00 2001 From: Pablo Mazzini Date: Sun, 29 Jul 2018 12:51:47 +0200 Subject: OptSubnetMask: change Length() --- dhcpv4/option_subnet_mask.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dhcpv4/option_subnet_mask.go b/dhcpv4/option_subnet_mask.go index 8d5a68c..f1ff4a4 100644 --- a/dhcpv4/option_subnet_mask.go +++ b/dhcpv4/option_subnet_mask.go @@ -52,5 +52,5 @@ func (o *OptSubnetMask) String() string { // Length returns the length of the data portion (excluding option code an byte // length). func (o *OptSubnetMask) Length() int { - return len(o.SubnetMask) + return 4 } -- cgit v1.2.3