This commit is contained in:
cinap_lenrek 2014-12-09 03:25:52 +01:00
commit 8ec06b6fc6

View file

@ -1233,6 +1233,8 @@ dhcprecv(void)
if(!validip(conf.mask) || !Oflag){ if(!validip(conf.mask) || !Oflag){
if(!optgetaddr(bp->optdata, OBmask, conf.mask)) if(!optgetaddr(bp->optdata, OBmask, conf.mask))
ipmove(conf.mask, IPnoaddr); ipmove(conf.mask, IPnoaddr);
if(ipcmp(conf.mask, IPv4bcast) == 0)
ipmove(conf.mask, IPnoaddr);
} }
DEBUG("ipaddr=%I ipmask=%M ", conf.laddr, conf.mask); DEBUG("ipaddr=%I ipmask=%M ", conf.laddr, conf.mask);