luid.h File Reference

Header of the unique ID generation module. More...

Detailed Description

Header of the unique ID generation module.

Hauke Petersen

Definition in file luid.h.

#include <stddef.h>
#include "net/eui48.h"
#include "net/eui64.h"
+ Include dependency graph for luid.h:

Go to the source code of this file.


#define LUID_BACKUP_SEED   0x23
 Value used as based for the LUIDs in case the cpuid module is not present.


void luid_get (void *buf, size_t len)
 Get a unique ID. More...
void luid_get_lb (void *buf, size_t len)
 Get a unique ID with change in the last byte. More...
void luid_get_short (network_uint16_t *addr)
 Get a unique short unicast address. More...
void luid_get_eui48 (eui48_t *addr)
 Get a unique EUI48 address. More...
void luid_get_eui64 (eui64_t *addr)
 Get a unique EUI64 address. More...
void luid_custom (void *buf, size_t len, int gen)
 Get a custom unique ID based on a user given generator value. More...
void luid_base (void *buf, size_t len)
 Get a LUID base value. More...