mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-01 21:00:19 +00:00
Fixes UE IPv6 BUG (#808)
This commit is contained in:
parent
0270c0e340
commit
37e0a714f9
110 changed files with 3089 additions and 3524 deletions
|
|
@ -28,6 +28,31 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define OGS_SETUP_PFCP_SERVER \
|
||||
do { \
|
||||
ogs_pfcp_node_t *pfcp_node = NULL; \
|
||||
\
|
||||
ogs_pfcp_self()->pfcp_sock = \
|
||||
ogs_socknode_sock_first(&ogs_pfcp_self()->pfcp_list); \
|
||||
ogs_pfcp_self()->pfcp_sock6 = \
|
||||
ogs_socknode_sock_first(&ogs_pfcp_self()->pfcp_list6); \
|
||||
\
|
||||
ogs_assert(ogs_pfcp_self()->pfcp_sock || ogs_pfcp_self()->pfcp_sock6); \
|
||||
\
|
||||
if (ogs_pfcp_self()->pfcp_sock) \
|
||||
ogs_pfcp_self()->pfcp_addr = \
|
||||
&ogs_pfcp_self()->pfcp_sock->local_addr; \
|
||||
if (ogs_pfcp_self()->pfcp_sock6) \
|
||||
ogs_pfcp_self()->pfcp_addr6 = \
|
||||
&ogs_pfcp_self()->pfcp_sock6->local_addr; \
|
||||
\
|
||||
ogs_assert(ogs_pfcp_self()->pfcp_addr || ogs_pfcp_self()->pfcp_addr6); \
|
||||
\
|
||||
ogs_list_for_each(&ogs_pfcp_self()->pfcp_peer_list, pfcp_node) \
|
||||
pfcp_node_fsm_init(pfcp_node, true); \
|
||||
\
|
||||
} while(0)
|
||||
|
||||
typedef struct ogs_pfcp_xact_s ogs_pfcp_xact_t;
|
||||
|
||||
ogs_sock_t *ogs_pfcp_server(ogs_socknode_t *node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue