Add the IPv4LL type.
[dhcpcd-ui] / src / libdhcpcd / dhcpcd.c
index 165d16fdc78f2846244085185d26fa2aaa66249c..502f5908d95c33a15441a592514a778b39ab784f 100644 (file)
@@ -693,6 +693,9 @@ dhcpcd_reason_to_statetype(const char *reason,
        case DHS_ROUTERADVERT:
                *type =  DHT_RA;
                return;
+       case DHS_IPV4LL:
+               *type = DHT_IPV4LL;
+               return;
        }
 
        if (isdhcp6)
@@ -1270,6 +1273,8 @@ dhcpcd_if_message(DHCPCD_IF *i, bool *new_msg)
                                reason = _("Configured");
                } else if (i->type == DHT_RA)
                        reason = "Expired RA";
+               else if (i->type == DHT_IPV4LL)
+                       reason = "Expired IPv4LL";
                else
                        reason = i->reason;
        }