|
|
|
|
@ -147,7 +147,8 @@ int main(void) {
|
|
|
|
|
|
|
|
|
|
struct nat_check_status status; |
|
|
|
|
assert(nat_detection_get_status(owner->nat_det, socket, &status) == 0); |
|
|
|
|
assert(status.helper_reselections > 0 && status.helper == helper->node_id && status.observer == observer->node_id); |
|
|
|
|
assert(status.group_id == TOPO_GROUP_UTUN && status.helper == helper->node_id); |
|
|
|
|
assert(status.observer == observer->node_id || status.observer == same_ip->node_id); |
|
|
|
|
struct nat_check_status second_status; |
|
|
|
|
assert(nat_detection_get_status(owner->nat_det, second_socket, &second_status) == 0); |
|
|
|
|
assert(status.round != second_status.round); |
|
|
|
|
|