IEEE EUI-48 identifier

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

Detailed Description

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

Files

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

Data Structures

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

Functions

static void eui48_to_ipv6_iid (eui64_t *iid, const eui48_t *addr)
 Generates an IPv6 interface identifier from a 48-bit device address. More...
 
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. More...
 

Function Documentation

◆ eui48_from_ipv6_iid()

static void eui48_from_ipv6_iid ( eui48_t addr,
const eui64_t iid 
)
inlinestatic

Convert a 64-bit IPv6 IID into a EUI-48 device address.

Parameters
[out]addrthe resulting EUI-48
[in]iida 64-bit IPv6 interface identifier

Definition at line 67 of file eui48.h.

◆ eui48_to_ipv6_iid()

static void eui48_to_ipv6_iid ( eui64_t iid,
const eui48_t addr 
)
inlinestatic

Generates an IPv6 interface identifier from a 48-bit device address.

See also
RFC 2464, section 4
RFC 4291, section 2.5.1
Parameters
[out]iidthe resulting EUI-64.
[in]addra 48-bit device address

Definition at line 49 of file eui48.h.