From: Ted Lemon Date: Sat, 31 Jul 1999 17:56:53 +0000 (+0000) Subject: error -> log_fatal (again!) X-Git-Tag: V3-BETA-1-PATCH-2~5^2~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd6f298fc5f7abab23de550f28589c1d16b1a093;p=thirdparty%2Fdhcp.git error -> log_fatal (again!) --- diff --git a/common/lpf.c b/common/lpf.c index 9710c4f31..da2c75832 100644 --- a/common/lpf.c +++ b/common/lpf.c @@ -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 */