dexter submitted this change.
mgcp_network: use an uint16_t to store the port number
The comment in struct mgcp_rtp_end says that the RTCP port number has to
be stored in network byte order. Such a port number is 16 bit long, so
let's use an uint16_t instead of an int here.
Related: OS#6527
Change-Id: I392b07b243389a78d4ad1d784cdfdc28ec59b487
---
M include/osmocom/mgcp/mgcp_network.h
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/osmocom/mgcp/mgcp_network.h b/include/osmocom/mgcp/mgcp_network.h
index 8f6505c..453fbe9 100644
--- a/include/osmocom/mgcp/mgcp_network.h
+++ b/include/osmocom/mgcp/mgcp_network.h
@@ -94,7 +94,7 @@
struct osmo_sockaddr addr;
/* in network byte order */
- int rtcp_port;
+ uint16_t rtcp_port;
/* currently selected audio codec */
struct mgcp_rtp_codec *codec;
To view, visit change 37776. To unsubscribe, or for help writing mail filters, visit settings.