summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_subnet_mask.go
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-07-29 12:51:47 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-07-29 12:51:47 +0200
commita5582a6202195fe191b4b4fc7673b615ceef499a (patch)
treeb6156e4da1c1181497a964d6fae21b1ba3513589 /dhcpv4/option_subnet_mask.go
parent51bf62d96cb1dabe3419a7bdcc0efc415e134d72 (diff)
OptSubnetMask: change Length()
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
}