mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
name changes
This commit is contained in:
parent
7d7e9f154b
commit
92fc35861f
17 changed files with 110 additions and 111 deletions
|
|
@ -133,7 +133,7 @@ static void sock_test3(abts_case *tc, void *data)
|
|||
|
||||
size = core_recvfrom(udp, str, STRLEN, 0, &sa);
|
||||
ABTS_INT_EQUAL(tc, strlen(DATASTR), size);
|
||||
ABTS_STR_EQUAL(tc, "127.0.0.1", CORE_NTOP(&sa, buf));
|
||||
ABTS_STR_EQUAL(tc, "127.0.0.1", CORE_ADDR(&sa, buf));
|
||||
|
||||
thread_join(&rv, test3_thread);
|
||||
ABTS_INT_EQUAL(tc, strlen(DATASTR), rv);
|
||||
|
|
@ -185,7 +185,7 @@ static void sock_test4(abts_case *tc, void *data)
|
|||
|
||||
size = core_recvfrom(udp, str, STRLEN, 0, &sa);
|
||||
ABTS_INT_EQUAL(tc, strlen(DATASTR), size);
|
||||
ABTS_STR_EQUAL(tc, "127.0.0.1", CORE_NTOP(&sa, buf));
|
||||
ABTS_STR_EQUAL(tc, "127.0.0.1", CORE_ADDR(&sa, buf));
|
||||
|
||||
size = core_sendto(udp, DATASTR, strlen(DATASTR), 0, &sa);
|
||||
ABTS_INT_EQUAL(tc, strlen(DATASTR), size);
|
||||
|
|
@ -246,7 +246,7 @@ static void sock_test5(abts_case *tc, void *data)
|
|||
|
||||
size = core_recvfrom(udp, str, STRLEN, 0, &sa);
|
||||
ABTS_INT_EQUAL(tc, strlen(DATASTR), size);
|
||||
ABTS_STR_EQUAL(tc, "::1", CORE_NTOP(&sa, buf));
|
||||
ABTS_STR_EQUAL(tc, "::1", CORE_ADDR(&sa, buf));
|
||||
|
||||
size = core_send(udp, DATASTR, strlen(DATASTR), 0);
|
||||
ABTS_INT_EQUAL(tc, strlen(DATASTR), size);
|
||||
|
|
@ -278,11 +278,11 @@ static void sock_test7(abts_case *tc, void *data)
|
|||
|
||||
rv = core_inet_pton(AF_INET, "127.0.0.1", &sa);
|
||||
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
||||
ABTS_STR_EQUAL(tc, "127.0.0.1", CORE_NTOP(&sa, buf));
|
||||
ABTS_STR_EQUAL(tc, "127.0.0.1", CORE_ADDR(&sa, buf));
|
||||
|
||||
rv = core_inet_pton(AF_INET6, "::1", &sa);
|
||||
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
||||
ABTS_STR_EQUAL(tc, "::1", CORE_NTOP(&sa, buf));
|
||||
ABTS_STR_EQUAL(tc, "::1", CORE_ADDR(&sa, buf));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue