[dhcp-agent-commits] dhcp-agent/src dhcp-com.c,1.6,1.7
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2002-12-27 02:52:35
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv9344 Modified Files: dhcp-com.c Log Message: removed unused functions Index: dhcp-com.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-com.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dhcp-com.c 19 Dec 2002 03:30:15 -0000 1.6 --- dhcp-com.c 27 Dec 2002 02:52:30 -0000 1.7 *************** *** 454,489 **** } - - /* Check if we have at least the requested options: - * count up the number of options we want, then - * check for matches. If we match as many as we - * have configured then we're ok. */ - - int dhcp_have_atleast_requested_options(dhcp_obj * dhcp, unsigned char *options) - { - int i; - - for(i = 0; i <= MAX_OPTIONS_HANDLED; i++) { - if(options[i] && !dhcp_have_option(dhcp, i)) - return 1; - } - - return 0; - } - - int dhcp_have_exact_requested_options(dhcp_obj * dhcp, unsigned char *options) - { - int i; - - for(i = 0; i <= MAX_OPTIONS_HANDLED; i++) { - if(options[i] && !dhcp_have_option(dhcp, i)) - return 1; - if(dhcp_have_option(dhcp, i) && !options[i]) - return 1; - } - - return 0; - } - /* This is a little tricky since we haven't written anything * yet. We know that we must end on a 32-bit boundary, and --- 454,457 ---- |