Add the IPv4LL type.
authorRoy Marples <roy@marples.name>
Mon, 29 Jun 2015 15:34:23 +0000 (15:34 +0000)
committerRoy Marples <roy@marples.name>
Mon, 29 Jun 2015 15:34:23 +0000 (15:34 +0000)
src/libdhcpcd/dhcpcd.c
src/libdhcpcd/dhcpcd.h

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;
        }
index 1671a4041f564f7ebf0bec238201171c2706a07a..f5ac46a454553c6e2a5d4a9429cd43654ad01ea9 100644 (file)
@@ -82,9 +82,10 @@ extern const char * const dhcpcd_cstates[];
 #define DHT_LINK                1
 #define DHT_DHCP                2
 #define DHT_IPV4                2
-#define DHT_RA                  3
-#define DHT_DHCP6               4
-#define DHT_MAX                         5
+#define DHT_IPV4LL              3
+#define DHT_RA                  4
+#define DHT_DHCP6               5
+#define DHT_MAX                         6
 
 #define DHS_UNKNOWN             0
 #define DHS_DUMP                1