From 4123764a481151d9328d177bc687341a3573b3f1 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sun, 14 Feb 2016 08:56:25 -0800 Subject: [PATCH] Execute out of order callback even for seq < current_seq --- src/tcp_ip/flow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tcp_ip/flow.cpp b/src/tcp_ip/flow.cpp index 01d8f81..2650bbe 100644 --- a/src/tcp_ip/flow.cpp +++ b/src/tcp_ip/flow.cpp @@ -173,6 +173,9 @@ void Flow::process_packet(PDU& pdu) { } } } + else if (on_out_of_order_callback_) { + on_out_of_order_callback_(*this, tcp->seq(), raw->payload()); + } } void Flow::store_payload(uint32_t seq, payload_type payload) {