Click
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
EtherAddressArg Class Reference

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)
 

Detailed Description

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:

struct click_ether ethh;
... Args(...) ...
.read_mp("SRC", EtherAddressArg(), ethh.ether_shost)
...
Argument parser class.
Definition args.hh:249
Parser class for Ethernet addresses.
Definition etheraddress.hh:212

The documentation for this class was generated from the following files: