|
Click
|
Parser class for Ethernet addresses. More...
#include <etheraddress.hh>
Inherited by DefaultArg< EtherAddress >, and DefaultArg< Vector< EtherAddress > >.
Public Types | |
| typedef void | enable_direct_parse |
Public Member Functions | |
| EtherAddressArg (int flags=0) | |
| bool | parse (const String &str, EtherAddress &value, const ArgContext &args=blank_args) |
| bool | parse (const String &str, unsigned char *value, const ArgContext &args=blank_args) |
| bool | direct_parse (const String &str, EtherAddress &value, Args &args) |
| bool | direct_parse (const String &str, unsigned char *value, Args &args) |
Static Public Member Functions | |
| static bool | parse (const String &str, Vector< EtherAddress > &result, const ArgContext &args=blank_args) |
Parser class for Ethernet addresses.
This is the default parser for objects of EtherAddress type. For 6-byte arrays like "click_ether::ether_shost" and "click_ether::ether_dhost", you must pass an EtherAddressArg() explicitly: