From 7a3d5517521461183da8671d69b6c86dc1f0ed7e Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Sat, 26 Aug 2023 16:35:27 +0900 Subject: [PATCH] [TLV] Oops! Fixed my mistake on pull #2549 --- lib/gtp/v1/message.c | 4 +++- lib/gtp/v1/message.h | 2 +- lib/gtp/v1/support/gtp1-tlv.py | 2 +- lib/gtp/v2/message.c | 3 ++- lib/gtp/v2/message.h | 2 +- lib/gtp/v2/support/gtp-tlv.py | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/gtp/v1/message.c b/lib/gtp/v1/message.c index c55d751a8..5dc5746e2 100644 --- a/lib/gtp/v1/message.c +++ b/lib/gtp/v1/message.c @@ -22,7 +22,7 @@ /******************************************************************************* * This file had been created by gtp1-tlv.py script v0.1.0 * Please do not modify this file but regenerate it via script. - * Created on: 2023-08-26 16:26:00.627882 by acetcom + * Created on: 2023-08-26 16:35:02.182792 by acetcom * from 29060-h40.docx ******************************************************************************/ @@ -2314,6 +2314,7 @@ int ogs_gtp1_parse_msg(ogs_gtp1_message_t *gtp1_message, ogs_pkbuf_t *pkbuf) switch(gtp1_message->h.type) { case OGS_GTP1_ECHO_REQUEST_TYPE: + break; case OGS_GTP1_ECHO_RESPONSE_TYPE: rv = ogs_tlv_parse_msg_desc(>p1_message->echo_response, &ogs_gtp1_tlv_desc_echo_response, pkbuf, OGS_TLV_MODE_T1_L2); @@ -2423,6 +2424,7 @@ int ogs_gtp1_parse_msg(ogs_gtp1_message_t *gtp1_message, ogs_pkbuf_t *pkbuf) &ogs_gtp1_tlv_desc_forward_relocation_response, pkbuf, OGS_TLV_MODE_T1_L2); break; case OGS_GTP1_FORWARD_RELOCATION_COMPLETE_TYPE: + break; case OGS_GTP1_RELOCATION_CANCEL_REQUEST_TYPE: rv = ogs_tlv_parse_msg_desc(>p1_message->relocation_cancel_request, &ogs_gtp1_tlv_desc_relocation_cancel_request, pkbuf, OGS_TLV_MODE_T1_L2); diff --git a/lib/gtp/v1/message.h b/lib/gtp/v1/message.h index 93962847e..7908cece6 100644 --- a/lib/gtp/v1/message.h +++ b/lib/gtp/v1/message.h @@ -22,7 +22,7 @@ /******************************************************************************* * This file had been created by gtp1-tlv.py script v0.1.0 * Please do not modify this file but regenerate it via script. - * Created on: 2023-08-26 16:26:00.621752 by acetcom + * Created on: 2023-08-26 16:35:02.176563 by acetcom * from 29060-h40.docx ******************************************************************************/ diff --git a/lib/gtp/v1/support/gtp1-tlv.py b/lib/gtp/v1/support/gtp1-tlv.py index 913aeb398..7e5024781 100644 --- a/lib/gtp/v1/support/gtp1-tlv.py +++ b/lib/gtp/v1/support/gtp1-tlv.py @@ -638,7 +638,7 @@ for (k, v) in sorted_msg_list: if k != "Echo Request" and k != "Forward Relocation Complete": f.write(" rv = ogs_tlv_parse_msg_desc(>p1_message->%s,\n" % v_lower(k)) f.write(" &ogs_gtp1_tlv_desc_%s, pkbuf, OGS_TLV_MODE_T1_L2);\n" % v_lower(k)) - f.write(" break;\n") + f.write(" break;\n") f.write(""" default: ogs_warn("Not implemented(type:%d)", gtp1_message->h.type); break; diff --git a/lib/gtp/v2/message.c b/lib/gtp/v2/message.c index 852caea1f..31c79a3f8 100644 --- a/lib/gtp/v2/message.c +++ b/lib/gtp/v2/message.c @@ -20,7 +20,7 @@ /******************************************************************************* * This file had been created by gtp-tlv.py script v0.1.0 * Please do not modify this file but regenerate it via script. - * Created on: 2023-08-26 16:22:05.130327 by acetcom + * Created on: 2023-08-26 16:35:12.648272 by acetcom * from 29274-h70.docx ******************************************************************************/ @@ -2983,6 +2983,7 @@ int ogs_gtp2_parse_msg(ogs_gtp2_message_t *gtp2_message, ogs_pkbuf_t *pkbuf) &ogs_gtp2_tlv_desc_create_indirect_data_forwarding_tunnel_response, pkbuf, OGS_TLV_MODE_T1_L2_I1); break; case OGS_GTP2_DELETE_INDIRECT_DATA_FORWARDING_TUNNEL_REQUEST_TYPE: + break; case OGS_GTP2_DELETE_INDIRECT_DATA_FORWARDING_TUNNEL_RESPONSE_TYPE: rv = ogs_tlv_parse_msg(>p2_message->delete_indirect_data_forwarding_tunnel_response, &ogs_gtp2_tlv_desc_delete_indirect_data_forwarding_tunnel_response, pkbuf, OGS_TLV_MODE_T1_L2_I1); diff --git a/lib/gtp/v2/message.h b/lib/gtp/v2/message.h index 0ccdec9c6..a6fcb161b 100644 --- a/lib/gtp/v2/message.h +++ b/lib/gtp/v2/message.h @@ -20,7 +20,7 @@ /******************************************************************************* * This file had been created by gtp-tlv.py script v0.1.0 * Please do not modify this file but regenerate it via script. - * Created on: 2023-08-26 16:22:05.124502 by acetcom + * Created on: 2023-08-26 16:35:12.642445 by acetcom * from 29274-h70.docx ******************************************************************************/ diff --git a/lib/gtp/v2/support/gtp-tlv.py b/lib/gtp/v2/support/gtp-tlv.py index 61cc8a2c7..fafd12268 100644 --- a/lib/gtp/v2/support/gtp-tlv.py +++ b/lib/gtp/v2/support/gtp-tlv.py @@ -726,7 +726,7 @@ for (k, v) in sorted_msg_list: if k != "Delete Indirect Data Forwarding Tunnel Request": f.write(" rv = ogs_tlv_parse_msg(>p2_message->%s,\n" % v_lower(k)) f.write(" &ogs_gtp2_tlv_desc_%s, pkbuf, OGS_TLV_MODE_T1_L2_I1);\n" % v_lower(k)) - f.write(" break;\n") + f.write(" break;\n") f.write(""" default: ogs_warn("Not implemented(type:%d)", gtp2_message->h.type); break;