open5gs/src
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
..
amf [AMF] ran_ue can be NULL in IMPLICIT Dereg (#2999) 2024-03-22 06:51:09 +09:00
ausf [NRF] Fixed crash due to invalid PATCH body (#2735) 2023-11-25 22:03:28 +09:00
bsf [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
hss fix mismatch of parameters between prototype and declaration 2024-01-22 17:34:59 +09:00
mme [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
nrf UE context transfer (#3052) 2024-03-21 07:07:25 +09:00
nssf [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
pcf [ASN1C] Fixed asn1c library on 32bit (#2934) 2024-02-12 14:00:06 +09:00
pcrf Document Gx interface spec references 2024-01-25 07:05:33 +09:00
scp UE context transfer (#3052) 2024-03-21 07:07:25 +09:00
sepp fix mismatch of parameters between prototype and declaration 2024-01-22 17:34:59 +09:00
sgwc [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
sgwu [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
smf [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
udm Introduce ability for multiple SDM_Subscriptions 2024-01-21 13:16:21 +09:00
udr [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
upf [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
main.c Fixed dynamic-stack-buffer-overflow (#2578, #2577) 2023-09-05 21:58:05 +09:00
meson.build [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00