return (ssize_t)len;
}
-#define PROTO_NONE 0
+#define PROTO_LINK 0
#define PROTO_DHCP 1
#define PROTO_IPV4LL 2
#define PROTO_RA 3
#define PROTO_DHCP6 4
#define PROTO_STATIC6 5
static const char *protocols[] = {
- NULL,
+ "link",
"dhcp",
"ipv4ll",
"ra",
strcmp(reason, "UNKNOWN") == 0 ||
strcmp(reason, "DEPARTED") == 0 ||
strcmp(reason, "STOPPED") == 0)
- protocol = PROTO_NONE;
+ protocol = PROTO_LINK;
#ifdef INET
#ifdef IPV4LL
else if (strcmp(reason, "IPV4LL") == 0)