Mercurial > hg > dhcpcd
changeset 1490:a9e7034532c9 draft
Only UDP based on current state, not the offer.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sat, 27 Feb 2010 08:37:00 +0000 |
| parents | a4bd7779b55c |
| children | 57191be118be |
| files | dhcpcd.c |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcpcd.c Fri Feb 26 20:37:30 2010 +0000 +++ b/dhcpcd.c Sat Feb 27 08:37:00 2010 +0000 @@ -720,8 +720,8 @@ } if (iface->udp_fd == -1 && iface->addr.s_addr != 0 && - iface->state->offer != NULL && - iface->state->offer->cookie == htonl(MAGIC_COOKIE)) + iface->state->new != NULL && + iface->state->new->cookie == htonl(MAGIC_COOKIE)) { if (open_udp_socket(iface) == -1 && errno != EADDRINUSE) syslog(LOG_ERR, "%s: open_udp_socket: %m", iface->name);
