mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 23:37:22 +00:00
net_accept(): Inherit PPID from listening socket
When we call accept() on a listening socket, we need to inherit the sctp PPID from the master socket to the new socket of the just-accepted connection. Otherwise any sent packets (such as S1AP) will be sent to PPID=0 rather than the configured PPID (e.g. 18 for S1AP).
This commit is contained in:
parent
92ecad5118
commit
1c64000431
1 changed files with 1 additions and 0 deletions
|
|
@ -638,6 +638,7 @@ int net_accept(net_sock_t **new_accept_sock, net_sock_t *net_sock, int timeout)
|
|||
|
||||
node->sock_id = new_sock;
|
||||
node->proto = net_sock->proto;
|
||||
node->ppid = net_sock->ppid;
|
||||
*new_accept_sock = node;
|
||||
|
||||
/* Save local and remote address */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue