#include "tree.h"
#include "hash.h"
#include "inet.h"
-#include "sysconf.h"
#include "auth.h"
#if !defined (OPTION_HASH_SIZE)
int backoff; /* Current backoff, in seconds. */
};
-struct interact_client; /* forward */
-
-/* Actions that can be taken by an interactive connection to the dhcp server
- or client. */
-
-struct interact_actions {
- void (*ls) PROTO ((struct interact_client *));
- void (*print) PROTO ((struct interact_client *, char *));
- void (*set) PROTO ((struct interact_client *, char *));
- void (*rm) PROTO ((struct interact_client *, char *));
- void (*cd) PROTO ((struct interact_client *, char *));
- void (*cdup) PROTO ((struct interact_client *));
- void * (*next) PROTO ((struct interact_client *, void *));
-};
-
-/* Interactive connection state. */
-
-struct interact_client {
- struct interact_client *next;
- int fd;
- struct interact_actions cur_node_actions;
- void *cur_node;
- int cur_node_classp;
- int last_input;
- struct protocol *proto;
-
- char ibuf [1024];
- int ibuflen;
-};
-
/* Bitmask of dhcp option codes. */
typedef unsigned char option_mask [16];
struct client_lease *packet_to_lease PROTO ((struct packet *));
void go_daemon PROTO ((void));
void write_client_pid_file PROTO ((void));
-void status_message PROTO ((struct sysconf_header *, void *));
void client_location_changed PROTO ((void));
/* db.c */
int inet_aton PROTO ((const char *, struct in_addr *));
#endif
-/* sysconf.c */
-void sysconf_startup PROTO ((void (*) (struct sysconf_header *, void *)));
-void sysconf_restart PROTO ((void *));
-void sysconf_message PROTO ((struct protocol *proto));
-
-/* interact.c */
-void interact_startup PROTO ((void));
-void new_interact_connection PROTO ((struct protocol *));
-void interact_client_input PROTO ((struct protocol *));
-int interact_client_write PROTO ((struct interact_client *, char *, int));
-
-/* dhcpdi.c */
-extern struct interact_actions top_level_actions;
-
/* class.c */
extern int have_billing_classes;
struct class unknown_class;
#ifndef lint
static char ocopyright[] =
-"$Id: dhcpd.c,v 1.59 1999/03/16 05:50:44 mellon Exp $ Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.60 1999/03/16 05:55:40 mellon Exp $ Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.";
#endif
static char copyright[] =
dns_startup ();
#endif
- /* Start the interactive client listener. */
- interact_startup ();
-
/* Set up the client classification system. */
classification_setup ();