diff options
Diffstat (limited to 'dhcpv4/options.go')
-rw-r--r-- | dhcpv4/options.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dhcpv4/options.go b/dhcpv4/options.go index 198fbb0..4224fa0 100644 --- a/dhcpv4/options.go +++ b/dhcpv4/options.go @@ -42,12 +42,14 @@ func ParseOption(data []byte) (Option, error) { switch OptionCode(data[0]) { case OptionSubnetMask: opt, err = ParseOptSubnetMask(data) + case OptionRouter: + opt, err = ParseOptRouter(data) + case OptionRequestedIPAddress: + opt, err = ParseOptRequestedIPAddress(data) case OptionDHCPMessageType: opt, err = ParseOptMessageType(data) case OptionParameterRequestList: opt, err = ParseOptParameterRequestList(data) - case OptionRequestedIPAddress: - opt, err = ParseOptRequestedIPAddress(data) case OptionServerIdentifier: opt, err = ParseOptServerIdentifier(data) case OptionBroadcastAddress: |