]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Always open a UDP port on the interface.
authorRoy Marples <roy@marples.name>
Thu, 21 Aug 2008 08:52:34 +0000 (08:52 +0000)
committerRoy Marples <roy@marples.name>
Thu, 21 Aug 2008 08:52:34 +0000 (08:52 +0000)
This stops ICMP not reachable messages when dhcpcd first starts and
the IP we get is already configured on the interface.

client.c

index fbb4deed2563ea357c1655d7217c7f785e89ee47..15a33f2daa260a11f4e2b29ea27eabcb173244d2 100644 (file)
--- 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));