diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2018-07-29 12:51:47 +0200 |
---|---|---|
committer | Pablo Mazzini <pmazzini@gmail.com> | 2018-07-29 12:51:47 +0200 |
commit | a5582a6202195fe191b4b4fc7673b615ceef499a (patch) | |
tree | b6156e4da1c1181497a964d6fae21b1ba3513589 /dhcpv4 | |
parent | 51bf62d96cb1dabe3419a7bdcc0efc415e134d72 (diff) |
OptSubnetMask: change Length()
Diffstat (limited to 'dhcpv4')
-rw-r--r-- | dhcpv4/option_subnet_mask.go | 2 |
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 } |