really implement DHCP protocol, so this server now has correct name :-)
[pxelator] / lib / Net / DHCP / Constants.pm
index d6f3b41..df3529f 100644 (file)
@@ -8,7 +8,7 @@ use 5.8.0;
 use strict;
 our (@ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, $VERSION);
 use Exporter;
-$VERSION = 0.66;
+$VERSION = 0.67;
 @ISA = qw(Exporter);
 
 @EXPORT = qw(MAGIC_COOKIE);
@@ -50,7 +50,7 @@ use constant MAGIC_COOKIE => "\x63\x82\x53\x63";
 use constant DHCP_UDP_OVERHEAD => (14 + 20 + 8);  # Ethernet + IP + UDP
 use constant DHCP_MAX_MTU => 1500;
 use constant BOOTP_ABSOLUTE_MIN_LEN => 236;
-use constant BOOTP_MIN_LEN => 300;
+use constant BOOTP_MIN_LEN => 271; # dpavlin - Linux bootp is smaller than 300
 use constant DHCP_MIN_LEN => 548;
 
 BEGIN {