Subject: DHCP standalone troubles.
To: None <tech-net@netbsd.org>
From: None <ragge@ludd.luth.se>
List: tech-net
Date: 02/20/2003 12:34:31
By some reason the standalone bootp/dhcp code checks that the netmask
received in the dhcp message is in a smaller address range than the
network class. This check has always been in the code, but it gives
problems sometimes: If the net is 192.168/16 then the standalone code
won't work. This is the check, in sys/lib/libsa/bootp.c:
/* Check subnet mask against net mask; toss if bogus */
if ((nmask & smask) != nmask) {
#ifdef BOOTP_DEBUG
if (debug)
printf("subnet mask (%s) bad\n", intoa(smask));
#endif
smask = 0;
}
If noone has any good reason for this check to be left, I'll remove it.
-- Ragge