]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix the REBIND reason.
authorRoy Marples <roy@marples.name>
Tue, 8 Sep 2015 13:14:22 +0000 (13:14 +0000)
committerRoy Marples <roy@marples.name>
Tue, 8 Sep 2015 13:14:22 +0000 (13:14 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 5162662dc95cb7ee665bc0bccd798da638bcbad9..83053f6193a4d7b36d727df565af6ac7ed015cbd 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2120,7 +2120,8 @@ dhcp_bind(struct interface *ifp)
        if (state->reason == NULL) {
                if (state->old && !(state->added & STATE_FAKE)) {
                        if (state->old->yiaddr == state->new->yiaddr &&
-                           lease->server.s_addr)
+                           lease->server.s_addr &&
+                           state->state != DHS_REBIND)
                                state->reason = "RENEW";
                        else
                                state->reason = "REBIND";