]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
error -> log_fatal (again!)
authorTed Lemon <source@isc.org>
Sat, 31 Jul 1999 17:56:53 +0000 (17:56 +0000)
committerTed Lemon <source@isc.org>
Sat, 31 Jul 1999 17:56:53 +0000 (17:56 +0000)
common/lpf.c

index 9710c4f31d4012570d515427b95edb9a63c238fa..da2c75832cbab11f60b7961b112c3e4d2ed4e275 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: lpf.c,v 1.13 1999/06/10 00:10:50 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: lpf.c,v 1.14 1999/07/31 17:56:53 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -73,9 +73,10 @@ int if_register_lpf (info)
                if (errno == ENOPROTOOPT || errno == EPROTONOSUPPORT ||
                    errno == ESOCKTNOSUPPORT || errno == EPFNOSUPPORT ||
                    errno == EAFNOSUPPORT || errno == EINVAL)
-                       log_fatal ("socket: %m - make sure %s %s!",
-                                  "CONFIG_PACKET and CONFIG_FILTER are",
-                                  "defined in your kernel configuration");
+                       log_fatal ("socket: %m - make sure %s %s %s!",
+                                  "CONFIG_PACKET (Packet socket)"
+                                  "and CONFIG_FILTER (Socket Filtering) are",
+                                  "enabled in your kernel configuration");
                log_fatal ("Open a socket for LPF: %m");
        }
 
@@ -87,9 +88,10 @@ int if_register_lpf (info)
                if (errno == ENOPROTOOPT || errno == EPROTONOSUPPORT ||
                    errno == ESOCKTNOSUPPORT || errno == EPFNOSUPPORT ||
                    errno == EAFNOSUPPORT || errno == EINVAL)
-                       log_fatal ("socket: %m - make sure %s %s!",
-                                  "CONFIG_PACKET and CONFIG_FILTER are",
-                                  "defined in your kernel configuration");
+                       log_fatal ("socket: %m - make sure %s %s %s!",
+                                  "CONFIG_PACKET (Packet socket)"
+                                  "and CONFIG_FILTER (Socket Filtering) are",
+                                  "enabled in your kernel configuration");
                log_fatal ("Bind socket to interface: %m");
        }
 
@@ -170,10 +172,11 @@ static void lpf_gen_filter_setup (info)
                if (errno == ENOPROTOOPT || errno == EPROTONOSUPPORT ||
                    errno == ESOCKTNOSUPPORT || errno == EPFNOSUPPORT ||
                    errno == EAFNOSUPPORT)
-                       error ("socket: %m - make sure %s %s!",
-                              "CONFIG_PACKET and CONFIG_FILTER are defined",
-                              "in your kernel configuration");
-               error ("Can't install packet filter program: %m");
+                       log_fatal ("socket: %m - make sure %s %s %s!",
+                                  "CONFIG_PACKET (Packet socket)"
+                                  "and CONFIG_FILTER (Socket Filtering) are",
+                                  "enabled in your kernel configuration");
+               log_fatal ("Can't install packet filter program: %m");
        }
 }
 
@@ -199,10 +202,11 @@ static void lpf_tr_filter_setup (info)
                if (errno == ENOPROTOOPT || errno == EPROTONOSUPPORT ||
                    errno == ESOCKTNOSUPPORT || errno == EPFNOSUPPORT ||
                    errno == EAFNOSUPPORT)
-                       error ("socket: %m - make sure %s %s!",
-                              "CONFIG_PACKET and CONFIG_FILTER are defined",
-                              "in your kernel configuration");
-               error ("Can't install packet filter program: %m");
+                       log_fatal ("socket: %m - make sure %s %s %s!",
+                                  "CONFIG_PACKET (Packet socket)"
+                                  "and CONFIG_FILTER (Socket Filtering) are",
+                                  "enabled in your kernel configuration");
+               log_fatal ("Can't install packet filter program: %m");
        }
 }
 #endif /* USE_LPF_RECEIVE */