|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.firewall.util.TraversePackets
public class TraversePackets
Utility Class to traverse Packets to access their specific payload.
| Constructor Summary | |
|---|---|
TraversePackets()
|
|
| Method Summary | |
|---|---|
static ARPPacket |
getARP(Packet packet)
Gets the ARP Packet out of the payload of a Data Link Packet. |
static IPPacket |
getIP(Packet packet)
Gets the IP Packet out of the payload of a Data Link Packet. |
static TCPPacket |
getTCP(Packet packet)
Gets the TCP packet out of the payload of a Data Link Packet. |
static UDPPacket |
getUDP(Packet packet)
Gets the UDP packet out of the payload of a Data Link Packet. |
static boolean |
isEthernet(Packet packet)
This method checks if the packet has a Data Link header. |
private static void |
log(String log)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TraversePackets()
| Method Detail |
|---|
public static boolean isEthernet(Packet packet)
packet - The Packet to be checked.
public static IPPacket getIP(Packet packet)
packet - The Data Link packet from which to get the IP packet from.
public static ARPPacket getARP(Packet packet)
packet - The Data Link packet from which to get the IP packet from.
public static UDPPacket getUDP(Packet packet)
packet - The Data Link packet from which to get the UDP packet from.
public static TCPPacket getTCP(Packet packet)
packet - The Data Link packet from which to get the TCP packet from.
private static void log(String log)
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||