Skip to content

Commit 5c86dca

Browse files
authored
Merge pull request #1677 from private-octopus/clean-up-multipath
Clean up multipath
2 parents f673c4a + 02cbfae commit 5c86dca

27 files changed

+472
-829
lines changed

UnitTest1/unittest1.cpp

Lines changed: 2 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,12 +2417,6 @@ namespace UnitTest1
24172417
Assert::AreEqual(ret, 0);
24182418
}
24192419

2420-
TEST_METHOD(monopath_unique) {
2421-
int ret = monopath_unique_test();
2422-
2423-
Assert::AreEqual(ret, 0);
2424-
}
2425-
24262420
TEST_METHOD(monopath_0rtt) {
24272421
int ret = monopath_0rtt_test();
24282422

@@ -2434,7 +2428,6 @@ namespace UnitTest1
24342428

24352429
Assert::AreEqual(ret, 0);
24362430
}
2437-
24382431
TEST_METHOD(multipath_aead) {
24392432
int ret = multipath_aead_test();
24402433

@@ -2561,68 +2554,8 @@ namespace UnitTest1
25612554
Assert::AreEqual(ret, 0);
25622555
}
25632556

2564-
TEST_METHOD(m_unip_basic) {
2565-
int ret = m_unip_basic_test();
2566-
2567-
Assert::AreEqual(ret, 0);
2568-
}
2569-
2570-
TEST_METHOD(m_unip_drop_first) {
2571-
int ret = m_unip_drop_first_test();
2572-
2573-
Assert::AreEqual(ret, 0);
2574-
}
2575-
2576-
TEST_METHOD(m_unip_drop_second) {
2577-
int ret = m_unip_drop_second_test();
2578-
2579-
Assert::AreEqual(ret, 0);
2580-
}
2581-
2582-
TEST_METHOD(m_unip_sat_plus) {
2583-
int ret = m_unip_sat_plus_test();
2584-
2585-
Assert::AreEqual(ret, 0);
2586-
}
2587-
2588-
TEST_METHOD(m_unip_renew) {
2589-
int ret = m_unip_renew_test();
2590-
2591-
Assert::AreEqual(ret, 0);
2592-
}
2593-
2594-
TEST_METHOD(m_unip_rotation) {
2595-
int ret = m_unip_rotation_test();
2596-
2597-
Assert::AreEqual(ret, 0);
2598-
}
2599-
2600-
TEST_METHOD(m_unip_nat) {
2601-
int ret = m_unip_nat_test();
2602-
2603-
Assert::AreEqual(ret, 0);
2604-
}
2605-
2606-
TEST_METHOD(m_unip_standby) {
2607-
int ret = m_unip_standby_test();
2608-
2609-
Assert::AreEqual(ret, 0);
2610-
}
2611-
2612-
TEST_METHOD(m_unip_standup) {
2613-
int ret = m_unip_standup_test();
2614-
2615-
Assert::AreEqual(ret, 0);
2616-
}
2617-
2618-
TEST_METHOD(m_unip_tunnel) {
2619-
int ret = m_unip_tunnel_test();
2620-
2621-
Assert::AreEqual(ret, 0);
2622-
}
2623-
2624-
TEST_METHOD(m_unip_abandon) {
2625-
int ret = m_unip_abandon_test();
2557+
TEST_METHOD(multipath_tunnel) {
2558+
int ret = multipath_tunnel_test();
26262559

26272560
Assert::AreEqual(ret, 0);
26282561
}

picoquic/bbr.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,15 +2005,7 @@ static picoquic_packet_context_t* BBRAccessEcnPacketContext(picoquic_path_t* pat
20052005
picoquic_packet_context_t* pkt_ctx = &path_x->cnx->pkt_ctx[picoquic_packet_context_application];
20062006

20072007
if (path_x->cnx->is_multipath_enabled) {
2008-
/* TODO: if the RCID index has changed, reset the counters. */
2009-
picoquic_remote_cnxid_t* r_cid = path_x->p_remote_cnxid;
2010-
2011-
if (r_cid != NULL) {
2012-
pkt_ctx = &r_cid->pkt_ctx;
2013-
}
2014-
else {
2015-
pkt_ctx = NULL;
2016-
}
2008+
pkt_ctx = &path_x->pkt_ctx;
20172009
}
20182010
else if (path_x != path_x->cnx->path[0]) {
20192011
/* When doing simple multipath, or when preparing transitions,

picoquic/config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static option_table_line_t option_table[] = {
6767
"Use the specified congestion control algorithm: reno, cubic, bbr or fast. Defaults to bbr." },
6868
{ picoquic_option_SPINBIT, 'P', "spinbit", 1, "number", "Set the default spinbit policy" },
6969
{ picoquic_option_LOSSBIT, 'O', "lossbit", 1, "number", "Set the default lossbit policy" },
70-
{ picoquic_option_MULTIPATH, 'M', "multipath", 1, "number", "Multipath option: none(0), full(1), simple(2), both(3), unique(4), all (7)" },
70+
{ picoquic_option_MULTIPATH, 'M', "multipath", 1, "number", "Multipath option: none(0), full(1), simple(2), both(3)" },
7171
{ picoquic_option_DEST_IF, 'e', "dest_if", 1, "if", "Send on interface (default: -1)" },
7272
{ picoquic_option_CIPHER_SUITE, 'C', "cipher_suite", 1, "cipher_suite_id", "specify cipher suite (e.g. -C 20 = chacha20)" },
7373
{ picoquic_option_INIT_CNXID, 'i', "cnxid_params", 1, "per-text-lb-spec", "See documentation for LB compatible CID configuration" },
@@ -375,7 +375,7 @@ static int config_set_option(option_table_line_t* option_desc, option_param_t* p
375375
}
376376
case picoquic_option_MULTIPATH: {
377377
int v = config_atoi(params, nb_params, 0, &ret);
378-
if (ret != 0 || v < 0 || v > 7) {
378+
if (ret != 0 || v < 0 || v > 3) {
379379
fprintf(stderr, "Invalid multipath option: %s\n", config_optval_param_string(opval_buffer, 256, params, nb_params, 0));
380380
ret = (ret == 0) ? -1 : ret;
381381
}

0 commit comments

Comments
 (0)