shithub: riscv

Download patch

ref: 8ec06b6fc6b44f2297fc6449196a7f9c57ff84c5
parent: a0bb446d75c2f5f00745503a06d171c6ea02ee9d
parent: ee2d30984f50e123d5eda882890c357543a297ca
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Dec 8 22:25:52 EST 2014

merge

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -1233,6 +1233,8 @@
 		if(!validip(conf.mask) || !Oflag){
 			if(!optgetaddr(bp->optdata, OBmask, conf.mask))
 				ipmove(conf.mask, IPnoaddr);
+			if(ipcmp(conf.mask, IPv4bcast) == 0)
+				ipmove(conf.mask, IPnoaddr);
 		}
 		DEBUG("ipaddr=%I ipmask=%M ", conf.laddr, conf.mask);