summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/options.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@get9.io>2018-07-29 13:51:36 -0500
committerGitHub <noreply@github.com>2018-07-29 13:51:36 -0500
commit23c03c8fa262c77c68741b079e0e1d2c91397823 (patch)
tree77d43444c3369acd69c6ead9bd353a7b00bba987 /dhcpv4/options.go
parentb30145cf5536cc1a134ad83cfce21f0b7249cf84 (diff)
parent377731752ec3ddf7162413ad5e5ef8620e0b3857 (diff)
Merge pull request #101 from pmazzini/master
add OptSubnetMask
Diffstat (limited to 'dhcpv4/options.go')
-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: