]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Update the subnet declaration error message.
authorTed Lemon <source@isc.org>
Tue, 23 Feb 1999 17:37:00 +0000 (17:37 +0000)
committerTed Lemon <source@isc.org>
Tue, 23 Feb 1999 17:37:00 +0000 (17:37 +0000)
common/dispatch.c

index 11a25f57ff3356914dc1c1316e93a0a28bf4e031..becf4dacf61a291422fd83e94de9e37b72b6f805 100644 (file)
@@ -3,8 +3,8 @@
    Network input dispatcher... */
 
 /*
- * Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
- * All rights reserved.
+ * Copyright (c) 1995, 1996, 1997, 1998, 1999
+ * The Internet Software Consortium.   All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dispatch.c,v 1.47.2.11 1999/02/19 18:17:33 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dispatch.c,v 1.47.2.12 1999/02/23 17:37:00 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -434,9 +434,13 @@ void discover_interfaces (state)
                        sizeof tmp -> ifp -> ifr_addr);
 
                /* We must have a subnet declaration for each interface. */
-               if (!tmp -> shared_network && (state == DISCOVER_SERVER))
-                       error ("No subnet declaration for %s (%s).",
-                              tmp -> name, inet_ntoa (foo.sin_addr));
+               if (!tmp -> shared_network && (state == DISCOVER_SERVER)) {
+                       warn ("No subnet declaration for %s (%s).",
+                             tmp -> name, inet_ntoa (foo.sin_addr));
+                       warn ("Please write a subnet declaration for the %s",
+                             "network segment to");
+                       error ("which interface %s is attached.", tmp -> name);
+               }
 
                /* Find subnets that don't have valid interface
                   addresses... */