From e7d70a5d2fdb0698a7b776ba6d27acb9f60ef1a8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 15 Nov 2013 06:40:05 +0100 Subject: need at lease 30 bit netmask, fix error message --- dyndhcpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyndhcpd.c b/dyndhcpd.c index 883349d..f65f07a 100644 --- a/dyndhcpd.c +++ b/dyndhcpd.c @@ -155,7 +155,7 @@ int main(int argc, char ** argv) { s_netaddress.s_addr = v_host->s_addr & v_mask->s_addr; if (ntohl(s_broadcast.s_addr) - ntohl(s_netaddress.s_addr) < 2) { - fprintf(stderr, "We do not have addresses to serve, need a netmask with 28 bit minimum.\n"); + fprintf(stderr, "We do not have addresses to serve, need a netmask with 30 bit minimum.\n"); return EXIT_FAILURE; } -- cgit v1.2.3-70-g09d2