#include <avbts_osnet.hpp>
LinkLayerAddress Class Provides methods for initializing and comparing ethernet addresses.
LinkLayerAddress::LinkLayerAddress |
( |
| ) |
|
|
inline |
LinkLayerAddress::LinkLayerAddress |
( |
uint64_t |
address_scalar | ) |
|
|
inline |
Receives a 64bit scalar address and initializes its internal octet array with the first 48 bits.
- Parameters
-
address_scalar | 64 bit address |
LinkLayerAddress::LinkLayerAddress |
( |
uint8_t * |
address_octet_array | ) |
|
|
inline |
Receives an address as an array of octets and copies the first 6 over the internal ethernet address.
- Parameters
-
address_octet_array | Array of octets containing the address |
- Todo:
- Verify if address_octet_array is not null
Operator '<' overloading method. It provides a comparison between cmp and the class ethernet address defined at its constructor.
- Parameters
-
cmp | Value to be compared against. |
- Returns
- TRUE if cmp is lower than addr, FALSE otherwise.
Operator '==' overloading method. It provides a comparison between cmp and the class ethernet address defined at its constructor.
- Parameters
-
cmp | Value to be compared against. |
- Returns
- TRUE if they are equal; FALSE otherwise.
Operator '>' overloading method. It provides a comparison between cmp and the class ethernet address defined at its constructor.
- Parameters
-
cmp | Value to be compared against. |
- Returns
- TRUE if cmp is bigger than addr, FALSE otherwise.
void LinkLayerAddress::toOctetArray |
( |
uint8_t * |
address_octet_array | ) |
|
|
inline |
Gets first 6 bytes from ethernet address of object LinkLayerAddress.
- Parameters
-
address_octet_array | [out] Pointer to store the ethernet address information. |
- Returns
- void
- Todo:
- Verify if address_octet_array is not null
The documentation for this class was generated from the following file: