summaryrefslogtreecommitdiffstats
path: root/net/dhcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dhcp.c')
-rw-r--r--net/dhcp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dhcp.c b/net/dhcp.c
index f41d2dd305..79aa75d878 100644
--- a/net/dhcp.c
+++ b/net/dhcp.c
@@ -615,6 +615,9 @@ int dhcp(struct eth_device *edev, const struct dhcp_req_param *param)
dhcp_result_free(res);
+ if (!ret)
+ edev->ifup = true;
+
return ret;
}