summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_subnet_mask.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/option_subnet_mask.go')
-rw-r--r--dhcpv4/option_subnet_mask.go2
1 files changed, 1 insertions, 1 deletions
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
}