net.clackrouter.netutils
Class ExtractEncapUtils

java.lang.Object
  extended by net.clackrouter.netutils.ExtractEncapUtils

public class ExtractEncapUtils
extends java.lang.Object


Constructor Summary
ExtractEncapUtils()
           
 
Method Summary
static VNSPacket extractToLayer2(VNSPacket p)
          Takes any packet that is Layer2 or below, and returns a Layer2 packet.
static VNSPacket extractToLayer3(VNSPacket p)
          Takes any packet that is Layer3 or below, and returns a Layer3 packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractEncapUtils

public ExtractEncapUtils()
Method Detail

extractToLayer3

public static VNSPacket extractToLayer3(VNSPacket p)
Takes any packet that is Layer3 or below, and returns a Layer3 packet. At the present time, that means an IP or ARP packet.

Parameters:
p -
Returns:

extractToLayer2

public static VNSPacket extractToLayer2(VNSPacket p)
Takes any packet that is Layer2 or below, and returns a Layer2 packet. At the present time, that means an IP or ARP packet.

Parameters:
p -
Returns: