Mercurial > hg > dhcpcd
diff src/dhcpcd.c @ 5551:0c4608a6cc2a draft
options: Allow duid to take a value
If a value is given, it overrides /var/db/dhcpcd/duid.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 25 Nov 2020 14:19:55 +0000 |
| parents | dba7608e00b3 |
| children | 66dc60bf133d |
line wrap: on
line diff
--- a/src/dhcpcd.c Wed Nov 25 14:05:18 2020 +0000 +++ b/src/dhcpcd.c Wed Nov 25 14:19:55 2020 +0000 @@ -841,13 +841,17 @@ { char buf[DUID_LEN * 3]; - if (ctx->duid != NULL) + if (ctx->duid != NULL) { + if (ifp == NULL) + goto log; return; + } duid_init(ctx, ifp); if (ctx->duid == NULL) return; +log: loginfox("DUID %s", hwaddr_ntoa(ctx->duid, ctx->duid_len, buf, sizeof(buf))); }
