From: Ted Lemon Date: Mon, 18 May 1998 05:45:49 +0000 (+0000) Subject: Don't mention BPF or NIT in multiple-interface socket error message. = -> == X-Git-Tag: V2-BETA-2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d778b4f23dbd4360a13d3cc1781602138e9f5a69;p=thirdparty%2Fdhcp.git Don't mention BPF or NIT in multiple-interface socket error message. = -> == --- diff --git a/common/socket.c b/common/socket.c index 08f258f7d..af216d6f5 100644 --- a/common/socket.c +++ b/common/socket.c @@ -3,7 +3,7 @@ BSD socket interface code... */ /* - * Copyright (c) 1995, 1996 The Internet Software Consortium. + * Copyright (c) 1995, 1996, 1997, 1998 The Internet Software Consortium. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: socket.c,v 1.26 1997/10/20 21:47:14 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: socket.c,v 1.26.2.1 1998/05/18 05:45:49 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -105,12 +105,8 @@ int if_register_socket (info) #ifndef SO_BINDTODEVICE /* Make sure only one interface is registered. */ if (once) - error ("The standard socket API can only support %s%s%s%s%s", - "hosts with a single network interface. If you must ", - "run dhcpd on a host with multiple interfaces, ", - "you must compile in BPF or NIT support. If neither ", - "option is supported on your system, please let us ", - "know."); + error ("The standard socket API can only support %s", + "hosts with a single network interface."); once = 1; #endif @@ -203,7 +199,7 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto) result = sendto (interface -> wfdesc, (char *)raw, len, 0, (struct sockaddr *)to, sizeof *to); #ifdef IGNORE_HOSTUNREACH - } while (to -> sin_addr.s_addr = htonl (INADDR_BROADCAST) && + } while (to -> sin_addr.s_addr == htonl (INADDR_BROADCAST) && result < 0 && (errno == EHOSTUNREACH || errno == ECONNREFUSED) &&