Home | History | Annotate | Download | only in dhcpcd

Lines Matching refs:duid

38 #include "duid.h"
42 get_duid(unsigned char *duid, const struct interface *iface)
50 unsigned char *p = duid;
54 /* If we already have a DUID then use it as it's never supposed
56 if ((f = fopen(DUID, "r"))) {
60 hwaddr_aton(duid, line);
74 if (!(f = fopen(DUID, "w")))
82 /* time returns seconds from jan 1 1970, but DUID-LLT is
91 len = p - duid;
92 x = fprintf(f, "%s\n", hwaddr_ntoa(duid, len));
94 /* Failed to write the duid? scrub it, we cannot use it */
97 unlink(DUID);