Loading...
Searching...
No Matches
eui_provider.h File Reference

EUI-48 and EUI-64 address provider. More...

Detailed Description

EUI-48 and EUI-64 address provider.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file eui_provider.h.

#include "net/eui48.h"
#include "net/eui64.h"
#include "net/netdev.h"
+ Include dependency graph for eui_provider.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  eui48_conf_t
 Structure to hold providers for EUI-48 addresses. More...
 
struct  eui64_conf_t
 Structure to hold providers for EUI-64 addresses. More...
 

Typedefs

typedef int(* netdev_get_eui48_cb_t) (uint8_t index, eui48_t *addr)
 Function for providing a EUI-48 to a device.
 
typedef int(* netdev_get_eui64_cb_t) (uint8_t index, eui64_t *addr)
 Function for providing a EUI-64 to a device.
 

Functions

void netdev_eui48_get (netdev_t *netdev, eui48_t *addr)
 Generates an EUI-48 address for the netdev interface.
 
void netdev_eui64_get (netdev_t *netdev, eui64_t *addr)
 Generates an EUI-64 address for the netdev interface.
 
static void eui_short_from_eui64 (eui64_t *addr_long, network_uint16_t *addr_short)
 Get a short unicast address from an EUI-64.