|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
verinec.importer.analysis.traceroute.ATraceRoute
verinec.importer.analysis.traceroute.TRJPcap.TRJPcapObject
private static class TRJPcap.TRJPcapObject
This class provides a traceroute and encapsulates the algorithm. To send an receive packages, the JPCap library is used.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private jpcap.JpcapCaptor |
captor
The packet captor |
private long |
endTime
|
private byte |
id
The identifier of this traceroute. |
private Logger |
log
The logger for this object |
private jpcap.JpcapSender |
sender
The packet sender |
private long |
startTime
|
private long |
startTimeTotal
|
private String |
statusMessage
For logging purposes. |
private InetAddress |
targetIP
The ip adress of the target host |
private InetAddress |
thisHostIP
The ip adress of this host |
private short |
ttl
|
private int |
unreachableHosts
|
| Fields inherited from class verinec.importer.analysis.traceroute.ATraceRoute |
|---|
logger, MAX_RETRIES, MAX_UNREACHABLE_HOSTS, maxHops, targetHost, timeOut, UNREACHABLE_HOST_IP, UNREACHABLE_HOST_NAME |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
protected |
TRJPcap.TRJPcapObject(jpcap.JpcapSender sender,
jpcap.JpcapCaptor captor,
InetAddress thisHost)
The constructor needs a sender and a captor for the packages and the ip of the host, which calls the traceroute method. |
| Method Summary | |
|---|---|
protected void |
abort()
Make the implementation abort traceroute. |
protected Vector |
traceRoute(int maxHops,
int timeOut,
String target)
This method implements a classical traceroute algorithm with increasing ttl. |
private String |
treatTimxceed(jpcap.packet.ICMPPacket p)
|
private String |
waitForResponse(jpcap.packet.ICMPPacket icmp)
Wait for an ICMP response to our request. |
| Methods inherited from class verinec.importer.analysis.traceroute.ATraceRoute |
|---|
isCancled |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Logger log
private jpcap.JpcapSender sender
private jpcap.JpcapCaptor captor
private InetAddress thisHostIP
private InetAddress targetIP
private byte id
private long startTimeTotal
private long startTime
private long endTime
private int unreachableHosts
private short ttl
private String statusMessage
| Constructor Detail |
|---|
protected TRJPcap.TRJPcapObject(jpcap.JpcapSender sender,
jpcap.JpcapCaptor captor,
InetAddress thisHost)
sender - captor - thisHost - | Method Detail |
|---|
protected Vector traceRoute(int maxHops,
int timeOut,
String target)
throws TraceRouteException
traceRoute in class ATraceRoutemaxHops - The maximum number of hops between the source and targed hosttimeOut - The time in ms between sending and receiving of a requesttarget - The target host IP in string representation (xxx.xxx.xxx.xxx)
TraceRouteExceptionprivate String waitForResponse(jpcap.packet.ICMPPacket icmp)
icmp - The request packet. (For resend after time out)
ATraceRoute.UNREACHABLE_HOST_IP.private String treatTimxceed(jpcap.packet.ICMPPacket p)
protected void abort()
abort in class ATraceRoute
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||