X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/blobdiff_plain/24c7dc5c3c73e44a00357631a21e3b6d6c75a5df..f155048f59848e3c157bec73e30071aaaa5a62b2:/sbin/dhclient/dhcpd.h diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index f531966793..7d0d47b88e 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,5 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.66 2008/05/09 05:19:14 reyk Exp $ */ -/* $DragonFly: src/sbin/dhclient/dhcpd.h,v 1.1 2008/08/30 16:07:58 hasso Exp $ */ +/* $OpenBSD: src/sbin/dhclient/dhcpd.h,v 1.72 2011/04/04 11:14:52 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -52,6 +51,7 @@ #include #include #include +#include #include #include @@ -109,7 +109,6 @@ struct client_lease { struct iaddr address; char *server_name; char *filename; - struct string_list *medium; unsigned int is_static : 1; unsigned int is_bootp : 1; struct option_data options[256]; @@ -146,11 +145,9 @@ struct client_config { time_t select_interval; time_t reboot_timeout; time_t backoff_cutoff; - struct string_list *media; char *script_name; enum { IGNORE, ACCEPT, PREFER } bootp_policy; - struct string_list *medium; struct iaddrlist *reject_list; }; @@ -159,14 +156,12 @@ struct client_state { struct client_lease *new; struct client_lease *offered_leases; struct client_lease *leases; - struct client_lease *alias; enum dhcp_state state; struct iaddr destination; u_int32_t xid; u_int16_t secs; time_t first_sending; time_t interval; - struct string_list *medium; struct dhcp_packet packet; int packet_length; struct iaddr requested_address; @@ -219,7 +214,9 @@ extern int warnings_occurred; void error(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); int warning(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); int note(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); +#ifdef DEBUG int debug(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); +#endif int parse_warn(char *, ...) __attribute__ ((__format__ (__printf__, 1, 2))); /* conflex.c */ @@ -257,7 +254,6 @@ void cancel_timeout(void (*)(void)); int interface_status(char *); int interface_link_status(char *); int interface_link_forceup(char *); -void interface_link_forcedown(char *); /* tables.c */ extern const struct option dhcp_options[256]; @@ -309,11 +305,11 @@ void free_client_lease(struct client_lease *); void rewrite_client_leases(void); void write_client_lease(struct client_lease *, int); -void priv_script_init(char *, char *); +void priv_script_init(char *); void priv_script_write_params(char *, struct client_lease *); int priv_script_go(void); -void script_init(char *, struct string_list *); +void script_init(char *); void script_write_params(char *, struct client_lease *); int script_go(void); void script_set_env(const char *, const char *, const char *);