Kill unused function find_options() and unused struct option_set.
This commit is contained in:
parent
2719d12d3c
commit
f0865812d2
@ -237,17 +237,6 @@ int add_simple_option(unsigned char *optionptr, unsigned char code,
|
||||
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
|
||||
// remote DHCP server.
|
||||
static unsigned char req_opts[] = {
|
||||
|
@ -67,11 +67,6 @@ struct dhcp_option {
|
||||
unsigned char code;
|
||||
};
|
||||
|
||||
struct option_set {
|
||||
unsigned char *data;
|
||||
struct option_set *next;
|
||||
};
|
||||
|
||||
extern struct dhcp_option options[];
|
||||
extern int option_lengths[];
|
||||
|
||||
@ -88,7 +83,6 @@ uint8_t *get_option(struct dhcpMessage *packet, int code);
|
||||
int end_option(uint8_t *optionptr);
|
||||
int add_option_string(unsigned char *optionptr, unsigned char *string);
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user