|Subject:||BOOTP minimum length|
In the marshall subroutine of Net::DHCP::Packet, the length of the buffer is checked for first the BOOTP_ABSOLUTE_MIN_LEN and the BOOTP_MIN_LEN. These are constants set in Net::DHCP::Constants to 236 and 300 bytes respectively. I am using Net::DHCP to parse DHCP packets obtained through a libpcap application (using Net::Pcap and other libaries). I've found that Net::DHCP is unable to parse these packets due to strict packet size minimum checking, even though some real world DHCP packets do not meet these strict requirements. While these DHCP client/server implementations are arguably in the wrong, it might be nice for Net::DHCP to generate a warning, perhaps at some risk to the caller, rather than to croak when encountering these packets?