class EtherMac


Definition#include <mac.hh>
InheritsMac [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

 EtherMac ()

EtherMac

Default constructor

 EtherMac (const string& s)
throw (InvalidString)

EtherMac

Construct EtherMac from a string representation.

Parameters:
sstring representation of the form XX:XX:XX:XX:XX:XX where X represents a hex-digit.

Throws: InvalidString, if, string, passed, does, not, match, expected, format.

 EtherMac (const Mac& m)
throw (BadMac)

EtherMac

Construct EtherMac from Mac.

Parameters:
mMac to construct EtherMac from.

Throws: BadMac, if, the, Mac's, string, representation, is, not, equivalent, to, the, EtherMac's, string, representation.

 EtherMac (const ether_addr& ea)
throw (BadMac)

EtherMac

Construct EtherMac from ether_addr.

bool  get_ether_addr (struct ether_addr& ea)

get_ether_addr

[const]

Convert to ether_addr representation.

Parameters:
eaether_addr to store representation.

Returns: true on success, false if underlying string is empty.

bool  valid (const string& s)

valid

[static]

Check whether string contains valid EtherMac representation.

Parameters:
spotential EtherMac string representation.

Returns: true if s is valid, false otherwise.


Generated by: pavlin on possum.icir.org on Mon Mar 10 19:34:43 2003, using kdoc 2.0a54+XORP.