From: Ted Lemon Date: Sat, 29 Mar 1997 01:26:56 +0000 (+0000) Subject: Add initial_interval and backoff_cutoff elements to client_config struct; dns.c proto... X-Git-Tag: DHCP-970328~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=83c1b01218cfbeb4e2d4c95af17025e1f886afc9;p=thirdparty%2Fdhcp.git Add initial_interval and backoff_cutoff elements to client_config struct; dns.c prototypes --- diff --git a/includes/dhcpd.h b/includes/dhcpd.h index 3d0083187..817f03004 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -259,6 +259,8 @@ struct client_config { TIME timeout; /* Start to panic if we don't get a lease in this time period when SELECTING. */ + TIME initial_interval; /* All exponential backoff intervals + start here. */ TIME retry_interval; /* If the protocol failed to produce an address before the timeout, try the protocol again after this @@ -269,6 +271,9 @@ struct client_config { TIME reboot_timeout; /* When in INIT-REBOOT, wait this long before giving up and going to INIT. */ + TIME backoff_cutoff; /* When doing exponential backoff, + never back off to an interval + longer than this amount. */ struct string_list *media; /* Possible network media values. */ char *script_name; /* Name of config script. */ enum { IGNORE, ACCEPT, PREFER } bootp_policy; @@ -855,3 +860,7 @@ void icmp_startup PROTO ((int, void (*) PROTO ((struct iaddr, u_int8_t *, int)))); int icmp_echorequest PROTO ((struct iaddr *)); void icmp_echoreply PROTO ((struct protocol *)); + +/* dns.c */ +void dns_startup PROTO ((void)); +int ns_inaddr_lookup PROTO ((struct sockaddr_in *, u_int16_t, struct iaddr));