|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.analysis.AAnalyserStartOperation
verinec.importer.analysis.sniffer.StartSniffer
public class StartSniffer
The StartSniffer controls the jpcap instances on the devices.
The creator instantiates a new SnifferThread thread for each active interface
configured to sniff.
Contrary to scanner and traceroute with their limited number of worker threads,
sniffing is done with one thread for each interface.
The sniff method starts the sniffing threads, waits for them to finish and
does the cleanup afterwards. It informs the ConfigPanel of having finished.
If no active interfaces are found, nothing will be done. (Sniffing is finished immediately.)
SnifferThread| Nested Class Summary | |
|---|---|
static class |
StartSniffer.ConfigPanel
Configuration for the sniffer. |
| Field Summary | |
|---|---|
private Logger |
logger
The logger for this object |
| Fields inherited from class verinec.importer.analysis.AAnalyserStartOperation |
|---|
analyser |
| Constructor Summary | |
|---|---|
StartSniffer(StartSniffer.ConfigPanel conf,
AnalysisThread a)
Create the Sniffer for each interface. |
|
| Method Summary | |
|---|---|
protected HostCommRenderer |
addToResult(String ip,
String mac)
Add a host to the result structure. |
void |
sniff()
Start all sniffer threads and waits for them to finish. |
protected static boolean |
testAccessRights()
This method tests if the user has sufficent rights for capturing, that is if he can set the device into promiscious mode. |
void |
updateState(int id)
Update the actual state of a SnifferThread and send this information to the AnalysisThread |
| Methods inherited from class verinec.importer.analysis.AAnalyserStartOperation |
|---|
abortOperation, getThread, joinThreads, printMessage, setThread, startThreads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Logger logger
| Constructor Detail |
|---|
public StartSniffer(StartSniffer.ConfigPanel conf,
AnalysisThread a)
Currently, we also sniff on the local interface, which is a bit problematic if we sniff for a number of packets: They may not arrive as fast as for the other interfaces.
conf - The configuration dialog with the configutation of the devices.a - The analysis information to get and create host information.| Method Detail |
|---|
public void sniff()
protected HostCommRenderer addToResult(String ip,
String mac)
ip - the ip of the hostmac - the mac address of the host
protected static boolean testAccessRights()
public void updateState(int id)
id - the identifier of the SnifferThread which calls this method
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||