78int main (
int,
char **);
82static void usage (
char *
s) {
84 "Usage: %s [-n <username>] [-p <password>] [-a <algorithm>]"
85 "(-u | -d) <if>\n",
s);
100 const char *
interface = 0;
103 for (
i = 1;
i < argc;
i++) {
108 }
else if (
argv[
i][0] ==
'-') {
157 printf (
"upping interface %s\n", interface);
168 printf (
"downing interface %s\n", interface);
void bootp(struct packet *packet)
void dhcp(struct packet *packet)
int parse_allow_deny(struct option_cache **oc, struct parse *cfile, int flag)
int check_collection(struct packet *p, struct lease *l, struct collection *c)
void classify(struct packet *packet, struct class *class)
isc_result_t dhcp_set_control_state(control_object_state_t oldstate, control_object_state_t newstate)
isc_result_t find_class(struct class **c, const char *n, const char *f, int l)
dhcpctl_status dhcpctl_wait_for_completion(dhcpctl_handle h, dhcpctl_status *s)
dhcpctl_status dhcpctl_connect(dhcpctl_handle *connection, const char *server_name, int port, dhcpctl_handle authinfo)
dhcpctl_status dhcpctl_object_remove(dhcpctl_handle connection, dhcpctl_handle h)
dhcpctl_status dhcpctl_initialize()
dhcpctl_status dhcpctl_set_string_value(dhcpctl_handle h, const char *value, const char *value_name)
dhcpctl_status dhcpctl_get_value(dhcpctl_data_string *result, dhcpctl_handle h, const char *value_name)
dhcpctl_status dhcpctl_open_object(dhcpctl_handle, dhcpctl_handle, int)
dhcpctl_status dhcpctl_new_object(dhcpctl_handle *, dhcpctl_handle, const char *)
#define dhcpctl_null_handle
void dhcpv6(struct packet *)
#define ISC_R_NOTIMPLEMENTED