[dhcp-agent-commits] dhcp-agent/src dhcp-server.c,1.12,1.13
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-08-18 04:29:06
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv14570 Modified Files: dhcp-server.c Log Message: now hooked rest of code into the main server function Index: dhcp-server.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-server.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** dhcp-server.c 7 Aug 2003 01:14:27 -0000 1.12 --- dhcp-server.c 18 Aug 2003 04:12:00 -0000 1.13 *************** *** 35,38 **** --- 35,39 ---- #include "dhcp-guile-util.h" #include "dhcp-server-guile.h" + #include "dhcp-server-lease-manager.h" /* global vars affecting other code. */ *************** *** 101,104 **** --- 102,106 ---- server_conf_t *server_conf; dhcp_server_control_t *dhcp_server_control; + int state; INFO_MESSAGE("DHCP server starting"); *************** *** 125,129 **** } ! server_states[STATE_SHUTDOWN](dhcp_server_control); } --- 127,141 ---- } ! /* now initialize the guile backend. */ ! dhcp_guile_init(dhcp_server_control); ! ! /* initialize lease manager. */ ! lease_manager_initialize(); ! ! /* do the main loop. */ ! state = STATE_LISTEN; ! while(1) { ! server_states[state](dhcp_server_control); ! } } |