From: Roy Marples Date: Sat, 12 Jul 2008 00:49:59 +0000 (+0000) Subject: Fix gratuitous ARP with fork()less systems. X-Git-Tag: v4.0.2~198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6f5c7d3b97bfb9ace521d972e6fa1d06f308805;p=thirdparty%2Fdhcpcd.git Fix gratuitous ARP with fork()less systems. --- diff --git a/client.c b/client.c index b67cc8a8..b901f452 100644 --- a/client.c +++ b/client.c @@ -504,9 +504,12 @@ client_setup(struct if_state *state, const struct options *options) if (options->options & DHCPCD_DAEMONISED) { iface->addr.s_addr = lease->addr.s_addr; iface->net.s_addr = lease->net.s_addr; + state->new = state->offer; + state->offer = NULL; get_option_addr(&lease->server.s_addr, - state->offer, DHCP_SERVERID); + state->new, DHCP_SERVERID); #ifdef ENABLE_ARP + open_socket(iface, ETHERTYPE_ARP); state->state = STATE_ANNOUNCING; tv.tv_sec = ANNOUNCE_INTERVAL; #else