mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 02:55:15 +00:00
Updated window test for modified ACK behaviour
This commit is contained in:
parent
1c1f0b76ba
commit
9fae60d241
@ -50,10 +50,10 @@ START_TEST(test_window_everything)
|
||||
// warnx("Nothing to send.");
|
||||
continue;
|
||||
}
|
||||
fail_if((a = window_process_incoming_fragment(in, f)) != f->seqID, "Did not ACK last seqId!");
|
||||
fail_if(window_process_incoming_fragment(in, f) < 0, "Dropped fragment!");
|
||||
// warnx("Received fragment with seqid %u, remaining space %lu.", f->seqID, window_buffer_available(in));
|
||||
window_tick(in);
|
||||
window_ack(out, a);
|
||||
window_ack(out, f->seqID);
|
||||
window_tick(out);
|
||||
fail_if(out->start_seq_id != in->start_seq_id, "in/out windows have different start IDs!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user