Kill unused function find_options() and unused struct option_set.

This commit is contained in:
Nicholas J. Kain 2011-03-30 08:21:06 -04:00
parent 2719d12d3c
commit f0865812d2
2 changed files with 0 additions and 17 deletions

View File

@ -237,17 +237,6 @@ int add_simple_option(unsigned char *optionptr, unsigned char code,
return add_option_string(optionptr, option); return add_option_string(optionptr, option);
} }
/* find option 'code' in opt_list */
struct option_set *find_option(struct option_set *opt_list, char code)
{
while (opt_list && opt_list->data[OPT_CODE] < code)
opt_list = opt_list->next;
if (opt_list && opt_list->data[OPT_CODE] == code)
return opt_list;
return NULL;
}
// List of options that will be sent on the parameter request list to the // List of options that will be sent on the parameter request list to the
// remote DHCP server. // remote DHCP server.
static unsigned char req_opts[] = { static unsigned char req_opts[] = {

View File

@ -67,11 +67,6 @@ struct dhcp_option {
unsigned char code; unsigned char code;
}; };
struct option_set {
unsigned char *data;
struct option_set *next;
};
extern struct dhcp_option options[]; extern struct dhcp_option options[];
extern int option_lengths[]; extern int option_lengths[];
@ -88,7 +83,6 @@ uint8_t *get_option(struct dhcpMessage *packet, int code);
int end_option(uint8_t *optionptr); int end_option(uint8_t *optionptr);
int add_option_string(unsigned char *optionptr, unsigned char *string); int add_option_string(unsigned char *optionptr, unsigned char *string);
int add_simple_option(unsigned char *optionptr, unsigned char code, uint32_t data); int add_simple_option(unsigned char *optionptr, unsigned char code, uint32_t data);
struct option_set *find_option(struct option_set *opt_list, char code);
void add_requests(struct dhcpMessage *packet); void add_requests(struct dhcpMessage *packet);