tcpflow  1.6.1
About: tcpflow is a TCP/IP packet demultiplexer that captures data transmitted as part of TCP connections (flows), and stores the data in a way that is convenient for protocol analysis and debugging.
  Fossies Dox: tcpflow-1.6.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

scan_wifiviz.cpp
Go to the documentation of this file.
1 /**
2  * scan_wifiviz:
3  *
4  * Use the wifipcap and do some basic visualizations
5  */
6 
7 #include "config.h"
8 #include <iostream>
9 #include <sys/types.h>
10 
11 #include "bulk_extractor_i.h"
12 #include "datalink_wifi.h"
13 
14 extern "C"
15 void scan_wifiviz(const class scanner_params &sp,const recursion_control_block &rcb)
16 {
18  std::cout << "scan_timehistogram requires sp version "
20  << "got version " << sp.sp_version << "\n";
21  exit(1);
22  }
23 
25  sp.info->name = "wifiviz";
27  sp.info->author= "Simson Garfinkel";
28  sp.info->packet_user = 0;
29  sp.info->description = "Performs wifi isualization";
30  sp.info->get_config("check_fcs",&TFCB::theTFCB.opt_check_fcs,"Require valid Frame Check Sum (FCS)");
31  }
33  if(sp.sxml){
34  (*sp.sxml) << "<ssids>\n";
35  for(TFCB::mac_ssid_map_t::const_iterator it=TFCB::theTFCB.mac_to_ssid.begin();
36  it!=TFCB::theTFCB.mac_to_ssid.end();it++){
37  (*sp.sxml) << " <ssid mac='" << (*it).first.mac <<"' ssid='" << dfxml_writer::xmlescape((*it).first.ssid) << "' count='" <<
38  (*it).second << "'/>\n";
39  }
40  (*sp.sxml) << "</ssids>\n";
41  }
42  }
43 }
44 
static TFCB theTFCB
Definition: datalink_wifi.h:38
mac_ssid_map_t mac_to_ssid
Definition: datalink_wifi.h:36
std::string name
static const int CURRENT_SP_VERSION
virtual void get_config(const scanner_info::config_t &c, const std::string &name, std::string *val, const std::string &help)
Definition: plugin.cpp:415
std::stringstream * sxml
std::string author
scanner_info * info
static const int SCANNER_DISABLED
std::string description
const int sp_version
const phase_t phase
void scan_wifiviz(const class scanner_params &sp, const recursion_control_block &rcb)