Mercurial > hg > dhcpcd
changeset 4138:afdd919fb3fe draft
dhcp: don't log wrong xid when there is no state
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 18 Sep 2017 10:07:24 +0100 |
| parents | a1f6efdc51fb |
| children | 1da2c41b761a |
| files | src/dhcp.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Fri Sep 15 20:32:12 2017 +0100 +++ b/src/dhcp.c Mon Sep 18 10:07:24 2017 +0100 @@ -2749,7 +2749,7 @@ #endif if (state->xid != ntohl(bootp->xid)) { - if (state->state != DHS_BOUND) + if (state->state != DHS_BOUND && state->state != DHS_NONE) logdebugx("%s: wrong xid 0x%x (expecting 0x%x) from %s", ifp->name, ntohl(bootp->xid), state->xid, inet_ntoa(*from));
