|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
simnet.Application
simnet.Traceroute
An application that performs traceroutes.
| Field Summary | |
private BPF |
bpf
|
private int |
last_ipid
The ipid of the last packet we sent out |
private boolean |
noresponse
Variable that is set when no ICMP Time Exceeded response is received |
private int |
resp_src
the source of the response |
private boolean |
running
|
| Fields inherited from class simnet.Application |
appid, appstart, frame, initialized, node, NODE_ID, pid, random, sim, win |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Traceroute()
|
|
| Method Summary | |
protected boolean |
check(ICMP_Packet icmpp)
Check if this packet was in response to our last packet. |
void |
inBPF(int bpf_id,
IP_Packet ip_packet)
Processes incoming IP packets from the previously loaded BPF rule. |
boolean |
prePlugout(java.lang.Object replacement)
A traceroute application can only be removed if it is not currently tracerout'ing |
void |
tr(java.lang.Integer dest)
Performs a traceroute to the specified Node. |
void |
tr(java.lang.String destination)
Performs a traceroute to the specified Node. |
void |
traceroute(int dest)
Performs a traceroute to the specified Node. |
void |
traceroute(java.lang.Integer destination)
Performs a traceroute to the specified Node. |
void |
traceroute(java.lang.String destination)
Performs a traceroute to the specified Node. |
| Methods inherited from class simnet.Application |
closeWindow, customInit, finalize, getTitleString, initialize, plugoutNotification, printout, printout, processWindowCommand, rawOut, run, window |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private boolean running
private boolean noresponse
private int resp_src
private BPF bpf
private int last_ipid
| Constructor Detail |
public Traceroute()
| Method Detail |
public void tr(java.lang.Integer dest)
dest - the ID of destination nodepublic void tr(java.lang.String destination)
destination - the ID of destination nodepublic void traceroute(java.lang.String destination)
destination - the ID of destination nodepublic void traceroute(java.lang.Integer destination)
destination - the ID of destination nodepublic void traceroute(int dest)
dest - the ID of destination nodepublic boolean prePlugout(java.lang.Object replacement)
prePlugout in interface Pluggable
public void inBPF(int bpf_id,
IP_Packet ip_packet)
inBPF in interface BPFConsumerbpf_id - the ID of the BPF rule that the ip_packet matchedip_packet - incoming IP packetprotected boolean check(ICMP_Packet icmpp)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||