Skip to content

Commit 2fd11af

Browse files
gasbytesdanielinux
authored andcommitted
update tcp_process_ts in the unit tests with the new frame_len argument
1 parent 175e41d commit 2fd11af

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/unit/unit.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7587,7 +7587,7 @@ START_TEST(test_tcp_process_ts_uses_ecr)
75877587
opt->eoo = TCP_OPTION_EOO;
75887588

75897589
s.last_tick = 1000;
7590-
ck_assert_int_eq(tcp_process_ts(ts, tcp), 0);
7590+
ck_assert_int_eq(tcp_process_ts(ts, tcp, sizeof(buf)), 0);
75917591
ck_assert_uint_eq(ts->sock.tcp.rtt, 100);
75927592
}
75937593
END_TEST
@@ -7618,7 +7618,7 @@ START_TEST(test_tcp_process_ts_nop_then_ts)
76187618
opt->eoo = TCP_OPTION_EOO;
76197619

76207620
s.last_tick = 120;
7621-
ck_assert_int_eq(tcp_process_ts(ts, tcp), 0);
7621+
ck_assert_int_eq(tcp_process_ts(ts, tcp, sizeof(buf)), 0);
76227622
}
76237623
END_TEST
76247624

@@ -7651,7 +7651,7 @@ START_TEST(test_tcp_process_ts_skips_unknown_option)
76517651
opt->eoo = TCP_OPTION_EOO;
76527652

76537653
s.last_tick = 250;
7654-
ck_assert_int_eq(tcp_process_ts(ts, tcp), 0);
7654+
ck_assert_int_eq(tcp_process_ts(ts, tcp, sizeof(buf)), 0);
76557655
}
76567656
END_TEST
76577657

@@ -7678,7 +7678,7 @@ START_TEST(test_tcp_process_ts_no_ecr)
76787678
opt->pad = TCP_OPTION_NOP;
76797679
opt->eoo = TCP_OPTION_EOO;
76807680

7681-
ck_assert_int_eq(tcp_process_ts(ts, tcp), -1);
7681+
ck_assert_int_eq(tcp_process_ts(ts, tcp, sizeof(buf)), -1);
76827682
}
76837683
END_TEST
76847684

@@ -7709,7 +7709,7 @@ START_TEST(test_tcp_process_ts_updates_rtt_when_set)
77097709
opt->eoo = TCP_OPTION_EOO;
77107710

77117711
s.last_tick = 120;
7712-
ck_assert_int_eq(tcp_process_ts(ts, tcp), 0);
7712+
ck_assert_int_eq(tcp_process_ts(ts, tcp, sizeof(buf)), 0);
77137713
ck_assert_uint_ne(ts->sock.tcp.rtt, old_rtt);
77147714
}
77157715
END_TEST

0 commit comments

Comments
 (0)