SSF.Net
Class lanLinkLayer

java.lang.Object
  |
  +--com.renesys.raceway.SSF.Entity
        |
        +--SSF.Net.lanLinkLayer
All Implemented Interfaces:
linkLayer

public class lanLinkLayer
extends com.renesys.raceway.SSF.Entity
implements linkLayer

Implementation of a link layer that performs simple layer 2 routing among a set of two or more attached interfaces. Uses the non-standard NEXT_HOP field in the IP header to identify the channel on which to rebroadcast each received packet.


Constructor Summary
lanLinkLayer(link L)
           
 
Method Summary
 link onLink()
          Return a reference to the link for which this is the linkLayer implementation.
 java.util.Enumeration peers(NIC forNIC)
          Return the attached interfaces that are peers to the given interface.
 com.renesys.raceway.SSF.Event[] receive(NIC forNIC)
          Poll the link layer for any packets currently available for receipt
 void transmit(NIC forNIC, PacketEvent pevt, long qdelay)
          Send a packet with the given delay on behalf of the NIC
 void up(NIC nic)
          Bring up the given NIC over this link layer
 
Methods inherited from class com.renesys.raceway.SSF.Entity
alignment, alignTo, coalignedEntities, inChannels, init, joinAll, makeIndependent, now, outChannels, pauseAll, playRole, processes, resetSimulation, resumeAll, startAll, startAll, startClient, startClient, startServer, Vx, Yx
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

lanLinkLayer

public lanLinkLayer(link L)
Method Detail

onLink

public link onLink()
Description copied from interface: linkLayer
Return a reference to the link for which this is the linkLayer implementation.

Specified by:
onLink in interface linkLayer

up

public void up(NIC nic)
Description copied from interface: linkLayer
Bring up the given NIC over this link layer

Specified by:
up in interface linkLayer

transmit

public void transmit(NIC forNIC,
                     PacketEvent pevt,
                     long qdelay)
Description copied from interface: linkLayer
Send a packet with the given delay on behalf of the NIC

Specified by:
transmit in interface linkLayer

receive

public com.renesys.raceway.SSF.Event[] receive(NIC forNIC)
Description copied from interface: linkLayer
Poll the link layer for any packets currently available for receipt

Specified by:
receive in interface linkLayer

peers

public java.util.Enumeration peers(NIC forNIC)
Description copied from interface: linkLayer
Return the attached interfaces that are peers to the given interface.

Specified by:
peers in interface linkLayer