Loading...
Searching...
No Matches
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.
 
void luid_get_lb (void *buf, size_t len)
 Get a unique ID with change in the last byte.
 
void luid_get_short (network_uint16_t *addr)
 Get a unique short unicast address.
 
void luid_get_eui48 (eui48_t *addr)
 Get a unique EUI48 address.
 
void luid_netdev_get_eui48 (const netdev_t *netdev, eui48_t *addr)
 Get a unique EUI48 address.
 
void luid_get_eui64 (eui64_t *addr)
 Get a unique EUI64 address.
 
void luid_netdev_get_eui64 (const netdev_t *netdev, eui64_t *addr)
 Get a unique EUI64 address.
 
void luid_custom (void *buf, size_t len, int gen)
 Get a custom unique ID based on a user given generator value.
 
void luid_base (void *buf, size_t len)
 Get a LUID base value.