diff options
author | Libor Peltan <libor.peltan@nic.cz> | 2021-09-20 18:50:24 +0200 |
---|---|---|
committer | Daniel Salzman <daniel.salzman@nic.cz> | 2022-03-16 13:41:23 +0100 |
commit | d95b63b8c177b77f804278b4d8e8f8757e11b0fb (patch) | |
tree | a1b700fd9a439eb3388d26b0fe1c04cd166e4c24 /tests/libknot/test_xdp_tcp.c | |
parent | xdp-tcp: major refactoring + store outgoing buffers (diff) | |
download | knot-d95b63b8c177b77f804278b4d8e8f8757e11b0fb.tar.xz knot-d95b63b8c177b77f804278b4d8e8f8757e11b0fb.zip |
xdp-tcp: honor foreign TCP window size
Diffstat (limited to 'tests/libknot/test_xdp_tcp.c')
-rw-r--r-- | tests/libknot/test_xdp_tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libknot/test_xdp_tcp.c b/tests/libknot/test_xdp_tcp.c index 4d3f7303e..09a1525b3 100644 --- a/tests/libknot/test_xdp_tcp.c +++ b/tests/libknot/test_xdp_tcp.c @@ -507,6 +507,7 @@ void test_obufs(void) size_t DATA_LEN = 65535; // with 2-byte len prefix, this is > 64k == window_size uint8_t *data = calloc(DATA_LEN, 1); rl.conn->mss = TEST_MSS; + rl.conn->window_size = 65536; send2_mss = TEST_MSS; int ret = knot_tcp_reply_data(&rl, test_table, data, DATA_LEN), i = 0; @@ -538,6 +539,7 @@ void test_obufs(void) prepare_seqack(&msg, 0, TEST_MSS); ret = knot_tcp_recv(&rl, &msg, 1, test_table, NULL); is_int(KNOT_EOK, ret, "obufs: ACKed data"); + rl.conn->window_size = 65536; struct tcp_outbuf *surv_ob = rl.conn->outbufs.bufs; ok(surv_ob != NULL, "obufs: unACKed survived"); ok(surv_ob->next == NULL, "obufs: just one survived"); |