All Classes Namespaces Files Functions Pages
Layer2.EthernetII Class Reference

EthernetII provides an interface for the Ethernet configuration on a ByteBlower port. More...

Methods

 Description.Get
 Returns a textual description of the object.
 
 Destructor
 
 Mac.Get
 Returns the MAC address for the ByteBlower port. More...
 
 Mac.Set mac
 Sets the MAC address for the ByteBlower port. More...
 
 Parent.Get
 Returns the parent object.
 
 Type.Get
 Returns the layer 2 encoding scheme. More...
 
 Type.Set Encoding
 Sets the layer 2 encoding scheme. More...
 

Class overview

EthernetII provides an interface for the Ethernet configuration on a ByteBlower port.

Definition at line 5130 of file api.tcl.

Method documentation

Layer2.EthernetII::Destructor
Warning
This object cannot be destroyed. An exception will be thrown when this method is called.

Definition at line 5141 of file api.tcl.

Layer2.EthernetII::Mac.Get

Returns the MAC address for the ByteBlower port.

Returns
The MAC address for the ByteBlower port.
Example

This example returns the MAC address for the ByteBlower port.

1 $eth Mac.Get

Returns:

"00-ff-23-00-00-01" 

Definition at line 5153 of file api.tcl.

Layer2.EthernetII::Mac.Set   mac  

Sets the MAC address for the ByteBlower port.

Parameters
macMAC address string.
Example
1 $eth Mac.Set "00-ff-23-00-00-01"

Definition at line 5165 of file api.tcl.

Layer2.EthernetII::Type.Get

Returns the layer 2 encoding scheme.

Returns
The layer 2 encoding scheme.
Example

This example returns the layer 2 encoding scheme.

1 $eth Type.Get

Returns:

"DIX" 

Definition at line 5182 of file api.tcl.

Layer2.EthernetII::Type.Set   Encoding  

Sets the layer 2 encoding scheme.

Parameters
EncodingCurrently supported encodings are SNAP and DIX.
Example

This example sets the layer 2 encoding scheme.

1 $eth Type.Set "DIX"

Definition at line 5194 of file api.tcl.