Mercurial > hg > dhcpcd
changeset 4196:ed557660dc3d draft
hooks: set protocol to link for link layer events
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 12 Dec 2017 14:32:48 +0000 |
| parents | d16878b8acac |
| children | e8df358b7595 |
| files | src/script.c |
| diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/script.c Tue Dec 12 13:38:43 2017 +0000 +++ b/src/script.c Tue Dec 12 14:32:48 2017 +0000 @@ -218,14 +218,14 @@ 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", @@ -295,7 +295,7 @@ 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)
