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...
 

Macros

#define NETDEV_INDEX_ANY   (0xFF)
 Will match any device index.
 

Typedefs

typedef int(* netdev_get_eui48_cb_t) (const void *arg, eui48_t *addr)
 Function for providing a EUI-48 to a device. More...
 
typedef int(* netdev_get_eui64_cb_t) (const void *arg, eui64_t *addr)
 Function for providing a EUI-64 to a device. More...
 

Functions

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