Skip to content

Commit

Permalink
duid: fix comment for v6time
Browse files Browse the repository at this point in the history
v6time is seconds since midnight (UTC), January 1, 2000, modulo 2^32. The value is generated correctly but the comment refers to 2001 instead of 2000.
  • Loading branch information
bytesbymike committed Nov 1, 2023
1 parent f9b3b0d commit ab82f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duid.h
Expand Up @@ -75,7 +75,7 @@
typedef struct ni_duid_llt {
uint16_t type; /* type 1 */
uint16_t hwtype; /* link layer address type */
uint32_t v6time; /* second since 2001 % 2^32 */
uint32_t v6time; /* second since 2000 % 2^32 */
unsigned char hwaddr[]; /* link layer address */
} NI_PACKED ni_duid_llt_t;

Expand Down

0 comments on commit ab82f5e

Please sign in to comment.