]> mj.ucw.cz Git - netgrind.git/blobdiff - netgrind/tcp.c
HTTP parsing. Detecting partial closes.
[netgrind.git] / netgrind / tcp.c
index b90838d513c32fbe591f6cd375963c6f0653c0bc..7ca74ee4c44a9460de918279f53b0f5ace30f826 100644 (file)
@@ -393,6 +393,9 @@ void tcp_got_packet(struct iphdr *iph, struct pkt *p)
          else if (b->state == FLOW_FIN_SENT && b->syn_or_fin_seq+1 == ack)
            {
              b->state = FLOW_FINISHED;
+             q = pkt_new(0, 0);
+             q->timestamp = p->timestamp;
+             f->appl->input(f, (b == &f->pipe[0]), q);
              if (a->state == FLOW_FINISHED)
                {
                  DBG("CLOSED BOTH WAYS\n");