Definition and IPv6 IID conversion for IEEE EUI-48 identifiers.
More...
Definition and IPv6 IID conversion for IEEE EUI-48 identifiers.
|
file | eui48.h |
| Definition and IPv6 IID conversion for IEEE EUI-48 identifiers.
|
|
◆ EUI48_GROUP_FLAG
#define EUI48_GROUP_FLAG 0x01 |
Group type address.
Definition at line 54 of file eui48.h.
◆ EUI48_LOCAL_FLAG
#define EUI48_LOCAL_FLAG 0x02 |
Locally administered address.
Definition at line 49 of file eui48.h.
◆ eui48_clear_group()
static void eui48_clear_group |
( |
eui48_t * |
addr | ) |
|
|
inlinestatic |
Clear the group address bit to signal the address as individual address.
- See also
- IEEE 802-2001 section 9.2
- Parameters
-
Definition at line 77 of file eui48.h.
◆ 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] | addr | the resulting EUI-48 |
[in] | iid | a 64-bit IPv6 interface identifier |
Definition at line 149 of file eui48.h.
◆ eui48_set_local()
static void eui48_set_local |
( |
eui48_t * |
addr | ) |
|
|
inlinestatic |
Set the locally administrated bit in the EUI-48 address.
- See also
- IEEE 802-2001 section 9.2
- Parameters
-
Definition at line 64 of file eui48.h.
◆ eui48_to_eui64()
Generates an EUI-64 from a 48-bit device address.
- See also
- RFC 2464, section 4
- Parameters
-
[out] | eui64 | the resulting EUI-64. |
[in] | addr | a 48-bit device address |
Definition at line 90 of file eui48.h.
◆ eui48_to_ipv6_iid()
Generates an IPv6 interface identifier from a 48-bit device address.
- Note
- The IPv6 IID is derived from the EUI-64 by flipping the U/L bit.
- See also
- RFC 2464, section 4
-
RFC 4291, section 2.5.1
- Parameters
-
[out] | iid | the resulting EUI-64. |
[in] | addr | a 48-bit device address |
Definition at line 137 of file eui48.h.
◆ eui64_to_eui48()
Generates an EUI-48 from a 64-bit device address.
- Warning
- The resulting EUI-48 is not guaranteed to be unique and, hence, marked as only locally unique.
- Parameters
-
[out] | eui48 | the resulting EUI-48. |
[in] | addr | a 64-bit device address |
Definition at line 111 of file eui48.h.