|
|
|
|
@ -111,7 +111,6 @@ static void test_all_groups_tcp(void) {
|
|
|
|
|
|
|
|
|
|
int main(void) { |
|
|
|
|
debug_config_init(); debug_set_level(DEBUG_LEVEL_WARN); debug_set_category_level(DEBUG_CATEGORY_NAT, DEBUG_LEVEL_DEBUG); |
|
|
|
|
debug_set_category_level(DEBUG_CATEGORY_BGP, DEBUG_LEVEL_DEBUG); |
|
|
|
|
struct nat_fixture fixture; nat_fixture_init(&fixture); |
|
|
|
|
struct SC_MYKEYS first, second; |
|
|
|
|
assert(sc_generate_keypair(&first) == SC_OK && sc_generate_keypair(&second) == SC_OK); |
|
|
|
|
@ -167,7 +166,7 @@ int main(void) {
|
|
|
|
|
nat_detection_request_check_all(owner->nat_det); |
|
|
|
|
uint64_t end = get_time_tb() + 180000; |
|
|
|
|
do { uasync_poll(fixture.ua, 10); assert(!nat_detection_get_status(owner->nat_det, socket, &status)); } |
|
|
|
|
while (get_time_tb() < end && (status.round == old_round || status.phase)); |
|
|
|
|
while (get_time_tb() < end && (status.round == old_round || status.phase || status.cycling)); |
|
|
|
|
assert(status.round != old_round && !status.phase && status.reason == NAT_REASON_CONTACT_HISTORY); |
|
|
|
|
assert(socket->address_profile.mapping == ADDRESS_MAP_UNCHANGED && socket->address_profile.inbound == ADDRESS_IN_OPEN); |
|
|
|
|
assert(snapshot->timestamp == old_timestamp && topo_node_verify(snapshot) == 0); |
|
|
|
|
|