neels has uploaded this change for review.

View Change

silence misleading error: "HEARTBEAT_REQ: Unknown message type"

Heartbeat is handled in libosmo-pfcp, osmo-upf does not need to take any
action.

Related: SYS#5599
Change-Id: Id81556129b528fa3a1f11ae4d01ad8b89a9be2f9
---
M src/osmo-upf/up_endpoint.c
1 file changed, 6 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-upf refs/changes/45/30045/1
diff --git a/src/osmo-upf/up_endpoint.c b/src/osmo-upf/up_endpoint.c
index f687f4c..db765a4 100644
--- a/src/osmo-upf/up_endpoint.c
+++ b/src/osmo-upf/up_endpoint.c
@@ -221,6 +221,12 @@
case OSMO_PFCP_MSGT_SESSION_REP_REQ:
up_ep_rx_session_rep_req(up_ep, m);
return;
+ case OSMO_PFCP_MSGT_HEARTBEAT_REQ:
+ case OSMO_PFCP_MSGT_HEARTBEAT_RESP:
+ /* Heartbeat is already handled in osmo_pfcp_endpoint_handle_rx() in pfcp_endpoint.c. The heartbeat
+ * messages are also dispatched here, to the rx_cb, "on informtional basis", nothing needs to happen
+ * here. */
+ return;
default:
OSMO_LOG_PFCP_MSG(m, LOGL_ERROR, "Unknown message type\n");
return;

To view, visit change 30045. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-upf
Gerrit-Branch: master
Gerrit-Change-Id: Id81556129b528fa3a1f11ae4d01ad8b89a9be2f9
Gerrit-Change-Number: 30045
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr@sysmocom.de>
Gerrit-MessageType: newchange