mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 23:37:22 +00:00
local_addr/remote_addr is added
This commit is contained in:
parent
7151a98f41
commit
5bf84f3b62
6 changed files with 51 additions and 13 deletions
|
|
@ -63,7 +63,6 @@ static void sctp_test2(abts_case *tc, void *data)
|
|||
{
|
||||
status_t rv;
|
||||
sock_id sctp, sctp2;
|
||||
c_sockaddr_t sa;
|
||||
ssize_t size;
|
||||
|
||||
rv = sctp_server(&sctp, AF_INET6, SOCK_STREAM, NULL, PORT);
|
||||
|
|
@ -72,7 +71,7 @@ static void sctp_test2(abts_case *tc, void *data)
|
|||
rv = thread_create(&test2_thread, NULL, test2_main, tc);
|
||||
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
||||
|
||||
rv = sock_accept(&sctp2, &sa, sctp);
|
||||
rv = sock_accept(&sctp2, sctp);
|
||||
ABTS_INT_EQUAL(tc, CORE_OK, rv);
|
||||
|
||||
size = core_sctp_sendmsg(sctp2, DATASTR, strlen(DATASTR), NULL, PPID, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue