forked from simsong/tcpflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
277 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
New Primary Maintainer: | ||
Simson L. Garfinkel <[email protected]> | ||
http://www.simson.net/ | ||
MAINTAINER | ||
========== | ||
Simson L. Garfinkel <[email protected]> | ||
|
||
Original author: | ||
Jeremy Elson <[email protected]> | ||
http://www.circlemud.org/~jelson | ||
|
||
ACKNOWLEDGEMENTS | ||
================ | ||
Thanks to: | ||
* Jeffrey Pang, for the radiotap implementation | ||
* Doug Madory, for the Wifi parser | ||
* Jeremy Elson, for the original idea and initial tcp/ip implementation | ||
|
||
Contributions were made by: | ||
Additional and thanks: | ||
|
||
-- Johnny Tevessen <[email protected]>, for Linux systems still | ||
using libc5. | ||
* Johnny Tevessen <[email protected]>, for Linux systems still using libc5. | ||
|
||
-- Ross Golder <[email protected]>, for a spec file for generating | ||
tcpflow RPMs. | ||
* Ross Golder <[email protected]>, for a spec file for generating tcpflow RPMs. | ||
|
||
-- Jose M. Alcaide <[email protected]>, patch for the -r option | ||
* Jose M. Alcaide <[email protected]>, patch for the -r option | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
2013-11-18 Basic <[email protected]> | ||
|
||
* src/wifipcap/wifipcap.cpp (WifipcapCallbacks::decode_data_frame): now calls Handle80211Data() for all data packets | ||
|
||
* configure.ac: changes to test per Ryan Schmidt <[email protected]> | ||
|
||
2013-11-17 Basic <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#ifndef DATALINK_WIFI_H | ||
#define DATALINK_WIFI_H | ||
|
||
#include <algorithm> | ||
#include <map> | ||
#include "wifipcap.h" | ||
|
||
//#define DEBUG_WIFI | ||
|
||
class TFCB : public WifipcapCallbacks { | ||
private: | ||
|
||
public: | ||
bool fcs_ok; // framechecksum is okay! | ||
bool opt_enforce_80211_frame_checksum; | ||
|
||
typedef struct mac_ssid { | ||
mac_ssid(const WifipcapCallbacks::MAC &mac_,const std::string &ssid_):mac(mac_),ssid(ssid_){} | ||
const WifipcapCallbacks::MAC mac; | ||
const std::string ssid; | ||
bool operator<(const struct mac_ssid &b) const{ | ||
if (mac < b.mac) return true; | ||
if (b.mac < mac) return false; | ||
return ssid < b.ssid; | ||
}; | ||
} mac_ssid_t; | ||
|
||
|
||
|
||
typedef struct { | ||
bool operator() (const struct mac_ssid &a, const struct mac_ssid &b) const { | ||
if (a.mac < b.mac) return true; | ||
if (b.mac < a.mac) return false; | ||
return a.ssid < b.ssid; | ||
} | ||
} mac_ssid_lt; | ||
typedef std::set<mac_ssid_t,mac_ssid_lt> mac_ssid_set_t; | ||
typedef std::map<mac_ssid_t,uint64_t> mac_ssid_map_t; | ||
mac_ssid_map_t mac_to_ssid; // mapping of macs to SSIDs | ||
|
||
static TFCB theTFCB; | ||
TFCB():fcs_ok(),opt_enforce_80211_frame_checksum(true),mac_to_ssid(){} | ||
|
||
#ifdef DEBUG_WIFI | ||
void PacketBegin(const struct timeval& t, const u_char *pkt, u_int len, int origlen) { | ||
cout << t << " {"; | ||
} | ||
void PacketEnd() { | ||
cout << "}" << std::endl; | ||
} | ||
#endif | ||
|
||
bool Check80211FCS() { return true; } // always check the frame checksums | ||
void Handle80211(const struct timeval& t, u_int16_t fc, const MAC& sa, const MAC& da, const MAC& ra, const MAC& ta, | ||
const u_char *ptr, u_int len, bool flag); | ||
|
||
void HandleLLC(const struct timeval& t, const struct llc_hdr_t *hdr, const u_char *rest, u_int len); | ||
void Handle80211MgmtBeacon(const struct timeval& t, const mgmt_header_t *hdr, const mgmt_body_t *body); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,17 @@ | ||
MAINTAINER | ||
========== | ||
Simson L. Garfinkel <[email protected]> | ||
|
||
|
||
ACKNOWLEDGEMENTS | ||
================ | ||
Thanks to: | ||
* Jeffrey Pang, for the radiotap implementation | ||
* Doug Madory, for the Wifi parser | ||
* Jeremy Elson, for the original idea and initial tcp/ip implementation | ||
|
||
Title: Wifipcap Library | ||
Authors: Jeff Pang <[email protected]> | ||
Authors: Jeff Pang, | ||
Simson L. Garfinkel | ||
|
||
Description: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ copyright : (C) 2003 Jeff Pang ( [email protected] ) | |
#include <cstdio> | ||
#include "TimeVal.h" | ||
|
||
using namespace std; | ||
//using namespace std; | ||
|
||
TimeVal TIME_NONE = {0,0}; | ||
|
Oops, something went wrong.