luid.h File Reference

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

Detailed Description

Header of the unique ID generation module.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file luid.h.

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

Go to the source code of this file.

Macros

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

Functions

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_netdev_get_eui48 (const netdev_t *netdev, eui48_t *addr)
 Get a unique EUI48 address. More...
 
void luid_get_eui64 (eui64_t *addr)
 Get a unique EUI64 address. More...
 
void luid_netdev_get_eui64 (const netdev_t *netdev, 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...