#include <Eui48.h>
Public Member Functions | |
Eui48 () | |
bool | operator== (const Eui48 &t) const |
bool | operator< (const Eui48 &t) const |
const unsigned char * | get (void) |
bool | set (const char *src, const int len) |
void | clear () |
bool | decode (const char *asc) |
bool | encode (char *buf, const int len) const |
bool | lookup (const Ip::Address &c) |
Private Attributes | |
unsigned char | eui [SZ_EUI48_BUF] |
Detailed Description
Constructor & Destructor Documentation
◆ Eui48()
Member Function Documentation
◆ clear()
|
inline |
◆ decode()
bool Eui::Eui48::decode | ( | const char * | asc | ) |
Decode an ascii representation of an EUI-48 ethernet address.
- Parameters
-
asc ASCII representation of an ethernet (MAC) address eth Binary representation of the ethernet address
- Return values
-
false Conversion to binary failed. Invalid address true Conversion completed successfully
Definition at line 97 of file Eui48.cc.
References clear(), DBG_CRITICAL, debugs, and eui.
Referenced by aclParseArpData().
◆ encode()
bool Eui::Eui48::encode | ( | char * | buf, |
const int | len | ||
) | const |
Encode an ascii representation (asc) of an EUI-48 ethernet address.
- Parameters
-
buf Buffer to receive ASCII representation of an ethernet (MAC) address len Length of the buffer space available. Must be >= SZ_EUI48_BUF bytes or the encode will fail. eui Binary representation of the ethernet address
- Return values
-
false Conversion to ASCII failed. true Conversion completed successfully.
Definition at line 119 of file Eui48.cc.
References debugs, and SZ_EUI48_BUF.
Referenced by Format::Format::assemble().
◆ get()
const unsigned char * Eui::Eui48::get | ( | void | ) |
◆ lookup()
bool Eui::Eui48::lookup | ( | const Ip::Address & | c | ) |
Definition at line 135 of file Eui48.cc.
References DBG_CRITICAL, DBG_IMPORTANT, debugs, FALSE, Ip::Address::getSockAddr(), NULL, Ip::Address::port(), xfree, xmalloc, and xstrerr().
Referenced by Comm::TcpAcceptor::acceptInto(), and ACLARP::match().
◆ operator<()
|
inline |
Definition at line 33 of file Eui48.h.
References eui, and SZ_EUI48_BUF.
◆ operator==()
|
inline |
Definition at line 32 of file Eui48.h.
References eui, and SZ_EUI48_BUF.
◆ set()
|
inline |
Definition at line 37 of file Eui48.h.
References clear(), eui, and SZ_EUI48_BUF.
Member Data Documentation
◆ eui
|
private |
Definition at line 71 of file Eui48.h.
Referenced by clear(), decode(), operator<(), operator==(), and set().
The documentation for this class was generated from the following files: