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

Added TCPStreamFollower class. It seems to be working right.

This commit is contained in:
Matias Fontanini
2012-09-04 23:20:32 -03:00
parent 832a79a1e1
commit 2aa4e10b91
8 changed files with 542 additions and 139 deletions

View File

@@ -45,7 +45,7 @@ typedef std::pair<Sniffer*, std::string> sniffer_data;
* the scanned port's status.
*/
bool handler(PDU *pdu) {
TCP *tcp = pdu->find_inner_pdu<TCP>();
TCP *tcp = pdu->find_pdu<TCP>();
if(tcp) {
// Ok, it's a TCP PDU. Is RST flag on? Then port is closed.
if(tcp->get_flag(TCP::RST)) {