From: Ted Lemon Date: Tue, 24 Nov 1998 22:57:56 +0000 (+0000) Subject: Reverse the test for whether or not we're using the fallback interface - we want... X-Git-Tag: V2-BETA-1-PATCH-7~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17867593363609f5a7a92a5a500728e6ab69bc33;p=thirdparty%2Fdhcp.git Reverse the test for whether or not we're using the fallback interface - we want to broadcast our response if we're *not* using it. --- diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index 77c186ea2..e4bc8ecdb 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcrelay.c,v 1.9.2.4 1998/06/25 21:11:34 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcrelay.c,v 1.9.2.5 1998/11/24 22:57:56 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -249,7 +249,7 @@ void relay (ip, packet, length, from_port, from, hfrom) /* If it's a bootreply, forward it to the client. */ if (packet -> op == BOOTREPLY) { -#ifndef USE_FALLBACK +#ifdef USE_FALLBACK if (!(packet -> flags & htons (BOOTP_BROADCAST))) { to.sin_addr = packet -> yiaddr; to.sin_port = remote_port;