open5gs/src/upf
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
..
app.c A minor typo fix (#2707) 2023-10-28 22:11:58 +09:00
arp-nd.cpp fix tap mode arp table poisoning 2023-07-22 06:41:44 +09:00
arp-nd.h fix tap mode arp table poisoning 2023-07-22 06:41:44 +09:00
context.c [UPF] Report after Session was Deleted (#2936) 2024-02-04 09:32:33 +09:00
context.h Merge branch 'main' into gh_upf_metrics_wrong_dnn 2023-04-17 06:47:15 +02:00
event.c Oops! MacOSX is not working due to previous commit! 2020-08-26 09:53:37 -04:00
event.h SCP(Model D) is now the default setting. 2022-10-22 11:26:04 +09:00
gtp-path.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
gtp-path.h re-order packet buffer clear #568 2020-10-03 21:18:08 -04:00
init.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
meson.build [UPF] Add metrics support 2022-12-06 22:57:24 +09:00
metrics.c Follow-up #2551 2023-04-22 07:53:22 +09:00
metrics.h [METRICS] Re-order init/final (#1985, #2001) 2023-01-20 21:16:45 +09:00
n4-build.c [PFCP] Support PFCP advertise address in F-SEID 2023-05-25 22:46:52 +09:00
n4-build.h Split SGW into SGW-C/SGW-U 2020-08-12 20:31:22 -04:00
n4-handler.c [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
n4-handler.h 5gc: Paging was added 2021-01-18 11:48:35 -05:00
pfcp-path.c [GTP/PFCP]] incorrect dst TEI=0/SEID=0 (#3043) 2024-03-23 10:06:16 +09:00
pfcp-path.h [ALL] Add protection of message encoding (#991) 2021-05-16 12:22:10 +09:00
pfcp-sm.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
rule-match.c [AMF/SMF] Fixed a crash (#2030, #2074, #2085) 2023-02-20 20:49:48 +09:00
rule-match.h [SMF] Apply 5G Core into GSM (#1498) 2022-05-15 06:27:54 +09:00
timer.c [SCP] Support of Indirect Communication 2022-07-16 13:27:18 +09:00
timer.h Synchronize all timers [#512] 2020-07-26 21:02:40 -04:00
upf-sm.c Continue to fix alpine stack overflow (#1911) 2022-11-27 00:11:34 +09:00
upf-sm.h Initial proposal CUPS using PFCP 2020-04-26 15:36:05 -04:00