Improved handling of invalid DHCP packets