verinec.importer.analysis.traceroute
Class TRTCPLinux
java.lang.Object
java.lang.Thread
verinec.importer.analysis.traceroute.ATraceRoute
verinec.importer.analysis.traceroute.ATRShellCommand
verinec.importer.analysis.traceroute.TRTCPLinux
- All Implemented Interfaces:
- Runnable
public class TRTCPLinux
- extends ATRShellCommand
This class provides a traceroute by using the tcptraceroute tool for linux.
tcptraceroute is expeted to be relative to the current directory at location PATH
- Author:
- martial.seifriz at unifr.ch
| Fields inherited from class verinec.importer.analysis.traceroute.ATRShellCommand |
p |
|
Method Summary |
Vector |
traceRoute(int maxHops,
int timeOut,
String target)
The traceroute algorithm using the extern tcptraceroute programm. |
| 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 |
PATH
private static final File PATH
- The path of the extern tcptraceroute porgramm
trace_exec
private static final String trace_exec
- See Also:
- Constant Field Values
TRTCPLinux
public TRTCPLinux()
traceRoute
public Vector traceRoute(int maxHops,
int timeOut,
String target)
- The traceroute algorithm using the extern tcptraceroute programm.
Parsing is delegated to the super class.
- Specified by:
traceRoute in class ATraceRoute
- Parameters:
maxHops - 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)
- Returns:
- a vector containing the IPs