diff --git a/dhcp4/packet.go b/dhcp4/packet.go index eca35b6..bf302af 100644 --- a/dhcp4/packet.go +++ b/dhcp4/packet.go @@ -330,6 +330,7 @@ func Unmarshal(bs []byte) (*Packet, error) { return nil, fmt.Errorf("BOOTP message type (%d) doesn't match DHCP message type (%s", bs[0], ret.Type) } default: + return nil, fmt.Errorf("Unknown DHCP message type %d", ret.Type) } return ret, nil