From: Roy Marples Date: Thu, 21 Aug 2008 08:52:34 +0000 (+0000) Subject: Always open a UDP port on the interface. X-Git-Tag: v4.0.2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eb85def78f66cdc4ea08cb7e34920e5c0d884a2;p=thirdparty%2Fdhcpcd.git Always open a UDP port on the interface. This stops ICMP not reachable messages when dhcpcd first starts and the IP we get is already configured on the interface. --- diff --git a/client.c b/client.c index fbb4deed..15a33f2d 100644 --- a/client.c +++ b/client.c @@ -612,7 +612,6 @@ do_socket(struct if_state *state, int mode) if (mode == SOCKET_OPEN && state->interface->udp_fd == -1 && - state->lease.addr.s_addr != 0 && open_udp_socket(state->interface) == -1) logger(LOG_ERR, "open_udp_socket: %s", strerror(errno));