summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-07-29 13:03:00 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-07-29 13:03:00 +0200
commit620189eaa8ecfd3cd9f8209a145d2b24a0cf447f (patch)
treef794d78ec1904e493ca7859b079a36cdad1dc896
parenta5582a6202195fe191b4b4fc7673b615ceef499a (diff)
parse OptSubnetMask
-rw-r--r--dhcpv4/options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhcpv4/options.go b/dhcpv4/options.go
index 5e6da80..198fbb0 100644
--- a/dhcpv4/options.go
+++ b/dhcpv4/options.go
@@ -40,6 +40,8 @@ func ParseOption(data []byte) (Option, error) {
err error
)
switch OptionCode(data[0]) {
+ case OptionSubnetMask:
+ opt, err = ParseOptSubnetMask(data)
case OptionDHCPMessageType:
opt, err = ParseOptMessageType(data)
case OptionParameterRequestList: