Change in osmo-msc[master]: ran_peer: Move rx_reset_ack logic into its own func

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon May 13 18:03:07 UTC 2019


Pau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/14037


Change subject: ran_peer: Move rx_reset_ack logic into its own func
......................................................................

ran_peer: Move rx_reset_ack logic into its own func

Later on we want to do extra steps upon receiving a Rx Reset Ack
(checking for Osmux support from peer). Let's move handling of this
message into its own function to have handling implementation in one
place.

Change-Id: I516c4baf6071d26f6c530726d93677bed968efd1
---
M src/libmsc/ran_peer.c
1 file changed, 6 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/37/14037/1

diff --git a/src/libmsc/ran_peer.c b/src/libmsc/ran_peer.c
index 40040a2..9ec157e 100644
--- a/src/libmsc/ran_peer.c
+++ b/src/libmsc/ran_peer.c
@@ -152,6 +152,11 @@
 	ran_peer_state_chg(rp, RAN_PEER_ST_READY);
 }
 
+static void ran_peer_rx_reset_ack(struct ran_peer *rp)
+{
+	ran_peer_state_chg(rp, RAN_PEER_ST_READY);
+}
+
 void ran_peer_reset(struct ran_peer *rp)
 {
 	struct msgb *reset;
@@ -269,7 +274,7 @@
 	switch (event) {
 
 	case RAN_PEER_EV_RX_RESET_ACK:
-		ran_peer_state_chg(rp, RAN_PEER_ST_READY);
+		ran_peer_rx_reset_ack(rp);
 		return;
 
 	case RAN_PEER_EV_MSG_UP_CO:

-- 
To view, visit https://gerrit.osmocom.org/14037
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I516c4baf6071d26f6c530726d93677bed968efd1
Gerrit-Change-Number: 14037
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190513/a077c42b/attachment.html>


More information about the gerrit-log mailing list