From: Ted Lemon Date: Wed, 3 May 2000 23:05:37 +0000 (+0000) Subject: Don't use SO_USELOOPBACK X-Git-Tag: V3-BETA-2-PATCH-1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bd7d53feca0cf59221538d6bf86eb84c1f5c972;p=thirdparty%2Fdhcp.git Don't use SO_USELOOPBACK --- diff --git a/common/socket.c b/common/socket.c index a38e5d82f..2b3c24339 100644 --- a/common/socket.c +++ b/common/socket.c @@ -51,7 +51,7 @@ #ifndef lint static char copyright[] = -"$Id: socket.c,v 1.49 2000/05/01 23:31:49 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: socket.c,v 1.50 2000/05/03 23:05:37 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -136,12 +136,6 @@ int if_register_socket (info) (char *)&flag, sizeof flag) < 0) log_fatal ("Can't set SO_BROADCAST option on dhcp socket: %m"); - /* Set the SO_USELOOPBACK option so that we can broadcast DHCP - responses. */ - if (setsockopt (sock, SOL_SOCKET, SO_USELOOPBACK, - (char *)&flag, sizeof flag) < 0) - log_fatal ("Can't set SO_USELOOPBACK on dhcp socket: %m"); - /* Bind the socket to this interface's IP address. */ if (bind (sock, (struct sockaddr *)&name, sizeof name) < 0) log_fatal ("Can't bind to dhcp address: %m");