summaryrefslogtreecommitdiff
path: root/common/dispatch.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1999-09-28 22:50:02 +0000
committerTed Lemon <source@isc.org>1999-09-28 22:50:02 +0000
commitce26120d2c35958052ddc6feb219fb1ce67802ef (patch)
treeab05785111318147e9e79250f9f0374be16e99f6 /common/dispatch.c
parent1bce8ee0271d03ff87609df2c4aec9f4d05f0f33 (diff)
downloadisc-dhcp-ce26120d2c35958052ddc6feb219fb1ce67802ef.tar.gz
Move locate_network out of common code, since it's server-specific.
Diffstat (limited to 'common/dispatch.c')
-rw-r--r--common/dispatch.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/common/dispatch.c b/common/dispatch.c
index 7a92cb06..e910f8e0 100644
--- a/common/dispatch.c
+++ b/common/dispatch.c
@@ -22,7 +22,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dispatch.c,v 1.55 1999/09/08 01:44:21 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dispatch.c,v 1.56 1999/09/28 22:50:02 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -72,30 +72,6 @@ void dispatch ()
} while (status == ISC_R_TIMEDOUT || status == ISC_R_SUCCESS);
}
-int locate_network (packet)
- struct packet *packet;
-{
- struct iaddr ia;
-
- /* If this came through a gateway, find the corresponding subnet... */
- if (packet -> raw -> giaddr.s_addr) {
- struct subnet *subnet;
- ia.len = 4;
- memcpy (ia.iabuf, &packet -> raw -> giaddr, 4);
- subnet = find_subnet (ia);
- if (subnet)
- packet -> shared_network = subnet -> shared_network;
- else
- packet -> shared_network = (struct shared_network *)0;
- } else {
- packet -> shared_network =
- packet -> interface -> shared_network;
- }
- if (packet -> shared_network)
- return 1;
- return 0;
-}
-
void add_timeout (when, where, what)
TIME when;
void (*where) PROTO ((void *));