Pau Espin Pedrol has uploaded this change for review. (
https://gerrit.osmocom.org/14020
Change subject: cosmetic: osmux: Document network byte order in port variable
......................................................................
cosmetic: osmux: Document network byte order in port variable
Change-Id: Ia367ef08625265bc9cbdfcc693720a9b88852f4a
---
M src/libosmo-mgcp/mgcp_osmux.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/20/14020/1
diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c
index 149f27b..d91cf68 100644
--- a/src/libosmo-mgcp/mgcp_osmux.c
+++ b/src/libosmo-mgcp/mgcp_osmux.c
@@ -35,7 +35,7 @@
struct llist_head head;
struct osmux_in_handle *in;
struct in_addr rem_addr;
- int rem_port;
+ int rem_port; /* network byte order */
int refcnt;
};
@@ -543,7 +543,7 @@
* \param[in] endp mgcp endpoint (configuration)
* \param[in] conn connection to disable
* \param[in] addr IP address of remote OSMUX endpoint
- * \param[in] port portnumber of the remote OSMUX endpoint
+ * \param[in] port portnumber of the remote OSMUX endpoint (in network byte
order)
* \returns 0 on success, -1 on ERROR */
int osmux_enable_conn(struct mgcp_endpoint *endp, struct mgcp_conn_rtp *conn,
struct in_addr *addr, uint16_t port)
--
To view, visit https://gerrit.osmocom.org/14020
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia367ef08625265bc9cbdfcc693720a9b88852f4a
Gerrit-Change-Number: 14020
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>