#ifndef lint
static char copyright[] =
-"$Id: dhclient.c,v 1.20 1996/09/11 05:51:25 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhclient.c,v 1.21 1996/09/11 18:53:32 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
GET_TIME (&cur_time);
/* Discover all the network interfaces and initialize them. */
- discover_interfaces ();
+ discover_interfaces (0);
for (interface = interfaces; interface; interface = interface -> next)
send_discover (interface);
#ifndef lint
static char copyright[] =
-"$Id: dispatch.c,v 1.25 1996/09/11 06:35:16 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dispatch.c,v 1.26 1996/09/11 18:53:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
register that interface with the network I/O software, figure out what
subnet it's on, and add it to the list of interfaces. */
-void discover_interfaces ()
+void discover_interfaces (serverP)
+ int serverP;
{
struct interface_info *tmp;
struct interface_info *last;
sizeof tmp -> tif -> ifr_addr);
/* We must have a subnet declaration for each interface. */
- if (!tmp -> shared_network)
+ if (!tmp -> shared_network && serverP)
error ("No subnet declaration for %s (%s).",
tmp -> name, inet_ntoa (foo.sin_addr));
tmp -> tif = (struct ifreq *)0; /* Can't keep this. */
}
- if (!server_identifier_matched)
+ if (!server_identifier_matched && serverP)
warn ("no interface address matches server identifier");
close (sock);
#ifndef lint
static char copyright[] =
-"$Id: dhclient.c,v 1.20 1996/09/11 05:51:25 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhclient.c,v 1.21 1996/09/11 18:53:32 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
GET_TIME (&cur_time);
/* Discover all the network interfaces and initialize them. */
- discover_interfaces ();
+ discover_interfaces (0);
for (interface = interfaces; interface; interface = interface -> next)
send_discover (interface);
#ifndef lint
static char ocopyright[] =
-"$Id: dhcpd.c,v 1.34 1996/09/09 07:05:49 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.35 1996/09/11 18:53:32 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
#endif
static char copyright[] =
db_startup ();
/* Discover all the network interfaces and initialize them. */
- discover_interfaces ();
+ discover_interfaces (1);
#ifndef DEBUG
/* If we didn't write the pid file earlier because we found a
#ifndef lint
static char copyright[] =
-"$Id: dispatch.c,v 1.25 1996/09/11 06:35:16 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dispatch.c,v 1.26 1996/09/11 18:53:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
register that interface with the network I/O software, figure out what
subnet it's on, and add it to the list of interfaces. */
-void discover_interfaces ()
+void discover_interfaces (serverP)
+ int serverP;
{
struct interface_info *tmp;
struct interface_info *last;
sizeof tmp -> tif -> ifr_addr);
/* We must have a subnet declaration for each interface. */
- if (!tmp -> shared_network)
+ if (!tmp -> shared_network && serverP)
error ("No subnet declaration for %s (%s).",
tmp -> name, inet_ntoa (foo.sin_addr));
tmp -> tif = (struct ifreq *)0; /* Can't keep this. */
}
- if (!server_identifier_matched)
+ if (!server_identifier_matched && serverP)
warn ("no interface address matches server identifier");
close (sock);
#ifndef lint
static char ocopyright[] =
-"$Id: dhcpd.c,v 1.34 1996/09/09 07:05:49 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.35 1996/09/11 18:53:32 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
#endif
static char copyright[] =
db_startup ();
/* Discover all the network interfaces and initialize them. */
- discover_interfaces ();
+ discover_interfaces (1);
#ifndef DEBUG
/* If we didn't write the pid file earlier because we found a