open5gs/lib/pfcp
Sukchan Lee a667525041 [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043)
If eg. PCRF or AAA diameter link is not yet ready (eg. PCRF crashed), and
a client sends a CreateSessionRequest announcing its ow F-TEID,
then open5gs-smfd answers with Create Session Response Cause=
"Remote peer not responding", but it is not setting the received F-TEID
in the header of the response, instead it sends with TEI=0.

As a result, the peer cannot match the CreateSessionResponse, and needs
to rely on its own timeout timer to figure out that specific request failed.

This also happens in PFCP, so to solve this problem, I added teid/seid_presence
to the interface that sends the error message as shown below.

void ogs_gtp2_send_error_message(ogs_gtp_xact_t *xact,
        int teid_presence, uint32_t teid, uint8_t type, uint8_t cause_value);
void ogs_pfcp_send_error_message(
    ogs_pfcp_xact_t *xact, int seid_presence, uint64_t seid, uint8_t type,
    uint8_t cause_value, uint16_t offending_ie_value);
2024-03-23 10:06:16 +09:00
..
support [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
build.c [SMF] Added Bi-Directional Flow (#2909) 2024-02-17 20:43:15 +01:00
build.h [PFCP] F-TEID allocation by SMF (#1466) 2022-04-16 14:08:56 +09:00
context.c [SMF] Check config file for overlapping UE subnets for subnets with no DNN 2024-02-28 12:06:02 +00:00
context.h [SMF] Added Bi-Directional Flow (#2909) 2024-02-17 20:43:15 +01:00
conv.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
conv.h [PFCP] Support PFCP advertise address in F-SEID 2023-05-25 22:46:52 +09:00
handler.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
handler.h [GTPU] Fixed PDCP SN handling (#2584, #2477) 2023-09-10 22:37:42 +09:00
meson.build [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
message.c [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
message.h [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
ogs-pfcp.h [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
path.c [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
path.h [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
rule-match.c [AMF/SMF] Fixed a crash (#2030, #2074, #2085) 2023-02-20 20:49:48 +09:00
rule-match.h Fixes UE IPv6 BUG (#808) 2021-03-15 10:01:55 +09:00
types.c [PFCP] Fix calculation of AMBR 2023-06-03 09:19:52 +09:00
types.h [PFCP] Implement the Restoration Indication 2023-04-16 12:30:36 +09:00
xact.c [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
xact.h [PFCP] Implement the Restoration Indication 2023-04-16 12:30:36 +09:00