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

Definition and IPv6 IID conversion for IEEE EUI-48 identifiers. More...

Detailed Description

Definition and IPv6 IID conversion for IEEE EUI-48 identifiers.

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

Definition in file eui48.h.

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

Go to the source code of this file.

Data Structures

struct  eui48_t
 Data type to represent an EUI-48. More...
 

Functions

static void eui48_set_local (eui48_t *addr)
 Set the locally administrated bit in the EUI-48 address.
 
static void eui48_clear_group (eui48_t *addr)
 Clear the group address bit to signal the address as individual address.
 
static void eui48_to_eui64 (eui64_t *eui64, const eui48_t *addr)
 Generates an EUI-64 from a 48-bit device address.
 
static void eui64_to_eui48 (eui48_t *eui48, const eui64_t *addr)
 Generates an EUI-48 from a 64-bit device address.
 
static void eui48_to_ipv6_iid (eui64_t *iid, const eui48_t *addr)
 Generates an IPv6 interface identifier from a 48-bit device address.
 
static void eui48_from_ipv6_iid (eui48_t *addr, const eui64_t *iid)
 Convert a 64-bit IPv6 IID into a EUI-48 device address.
 

EUI-48 bit flags contained in the first octet

See also
IEEE 802-2001 section 9.2
#define EUI48_LOCAL_FLAG   0x02
 Locally administered address.
 
#define EUI48_GROUP_FLAG   0x01
 Group type address.