1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Removed debug messages.

This commit is contained in:
Matias Fontanini
2011-08-25 00:36:44 -03:00
parent c752fa36f5
commit 69d9bea655
2 changed files with 0 additions and 6 deletions

View File

@@ -22,7 +22,6 @@
#include <cassert>
#include <cstring>
#include <stdexcept>
#include <iostream> //borrame
#ifndef WIN32
#include <net/ethernet.h>
#include <netpacket/packet.h>
@@ -332,8 +331,6 @@ void Tins::IEEE802_11_Beacon::rsn_information(const RSNInformation& info) {
std::string Tins::IEEE802_11_Beacon::essid() const {
const IEEE802_11::IEEE802_11_Option *option = lookup_option(SSID);
if(option)
cout << "Length of option: " << (int)option->length << "\n";
return (option) ? string((const char*)option->value, option->length) : 0;
}

View File

@@ -20,7 +20,6 @@
*/
#include <iostream> //borrame
#include <stdexcept>
#include "sniffer.h"
#include "ethernetII.h"
@@ -71,7 +70,6 @@ Tins::PDU *Tins::Sniffer::next_packet(const string &filter) {
set_filter(filter);
pcap_pkthdr header;
PDU *ret = 0;
std::cout << "Wired: " << wired << "\n";
while(!ret) {
const u_char *content = pcap_next(handle, &header);
try {
@@ -81,7 +79,6 @@ Tins::PDU *Tins::Sniffer::next_packet(const string &filter) {
ret = new RadioTap((const uint8_t*)content, header.caplen);
}
catch(...) {
std::cout << "Except!\n";
ret = 0;
}
}