author | mickeyl <mickeyl> | 2003-04-04 13:46:27 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-04-04 13:46:27 (UTC) |
commit | 2349ef8fd3999798a2cbbb62a88e71807f25ae40 (patch) (side-by-side diff) | |
tree | 25dc954dcb7028de379247cb8266b3c980505368 | |
parent | b2153d44e64c1ade3ee141ea24075add1fd33777 (diff) | |
download | opie-2349ef8fd3999798a2cbbb62a88e71807f25ae40.zip opie-2349ef8fd3999798a2cbbb62a88e71807f25ae40.tar.gz opie-2349ef8fd3999798a2cbbb62a88e71807f25ae40.tar.bz2 |
detect and warn if switching device into monitor mode doesn't work
-rw-r--r-- | noncore/net/wellenreiter/gui/wellenreiter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/wellenreiter.cpp b/noncore/net/wellenreiter/gui/wellenreiter.cpp index e294eb8..d80a6e6 100644 --- a/noncore/net/wellenreiter/gui/wellenreiter.cpp +++ b/noncore/net/wellenreiter/gui/wellenreiter.cpp @@ -198,6 +198,12 @@ void Wellenreiter::startStopClicked() iface->setMonitorMode( true ); + if ( !iface->monitorMode() ) + { + QMessageBox::warning( this, "Wellenreiter II", "Can't set device into monitor mode." ); + return; + } + // open pcap and start sniffing pcap->open( interface ); |