]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add DISCOVER_RELAY state
authorTed Lemon <source@isc.org>
Sat, 22 Feb 1997 12:26:41 +0000 (12:26 +0000)
committerTed Lemon <source@isc.org>
Sat, 22 Feb 1997 12:26:41 +0000 (12:26 +0000)
common/dispatch.c
dispatch.c

index d4ffa86be29f3762d1b749cca70ca3c014bc06fc..5f6027509baf4856a5545bce4bd462cf626ccedd 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dispatch.c,v 1.32 1997/02/22 10:55:40 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dispatch.c,v 1.33 1997/02/22 12:26:41 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -96,7 +96,8 @@ void discover_interfaces (state)
 
        /* If we already have a list of interfaces, and we're running as
           a DHCP server, the interfaces were requested. */
-       if (interfaces && state == DISCOVER_SERVER)
+       if (interfaces &&
+           (state == DISCOVER_SERVER || state == DISCOVER_RELAY))
                ir = 0;
        else
                ir = INTERFACE_REQUESTED;
index d4ffa86be29f3762d1b749cca70ca3c014bc06fc..5f6027509baf4856a5545bce4bd462cf626ccedd 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dispatch.c,v 1.32 1997/02/22 10:55:40 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dispatch.c,v 1.33 1997/02/22 12:26:41 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -96,7 +96,8 @@ void discover_interfaces (state)
 
        /* If we already have a list of interfaces, and we're running as
           a DHCP server, the interfaces were requested. */
-       if (interfaces && state == DISCOVER_SERVER)
+       if (interfaces &&
+           (state == DISCOVER_SERVER || state == DISCOVER_RELAY))
                ir = 0;
        else
                ir = INTERFACE_REQUESTED;