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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user