diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-02 12:56:31 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-02 12:56:31 +0000 |
commit | 0728e70a8383b60c535244d2166c442134efebce (patch) | |
tree | dc55cd6053af9e80e03df20ceb03133365ea826f /sbin/dhclient/dhclient.c | |
parent | 835d04e86adaca1827270e4164d33b5015f1f893 (diff) |
remove dummy_interfaces and fallback_interface gunk
Diffstat (limited to 'sbin/dhclient/dhclient.c')
-rw-r--r-- | sbin/dhclient/dhclient.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 83bbbe10443..aadd18ba9b1 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dhclient.c,v 1.22 2004/03/02 12:46:44 henning Exp $ */ +/* $OpenBSD: dhclient.c,v 1.23 2004/03/02 12:56:30 henning Exp $ */ /* DHCP Client. */ @@ -1292,15 +1292,9 @@ cancel: note("DHCPREQUEST on %s to %s port %d", ip->name, inet_ntoa(destination.sin_addr), ntohs(destination.sin_port)); - if (destination.sin_addr.s_addr != INADDR_BROADCAST && - fallback_interface) - result = send_packet(fallback_interface, NULL, - &ip->client->packet, ip->client->packet_length, from, - &destination, NULL); - else - /* Send out a packet. */ - result = send_packet(ip, NULL, &ip->client->packet, - ip->client->packet_length, from, &destination, NULL); + /* Send out a packet. */ + result = send_packet(ip, NULL, &ip->client->packet, + ip->client->packet_length, from, &destination, NULL); add_timeout(cur_time + ip->client->interval, send_request, ip); } @@ -1708,14 +1702,6 @@ rewrite_client_leases(void) write_client_lease(ip, ip->client->active, 1); } - /* Write out any leases that are attached to interfaces that aren't - currently configured. */ - for (ip = dummy_interfaces; ip; ip = ip->next) { - for (lp = ip->client->leases; lp; lp = lp->next) - write_client_lease(ip, lp, 1); - if (ip->client->active) - write_client_lease(ip, ip->client->active, 1); - } fflush(leaseFile); } |