mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
mgcp_client: Deprecate unused IPv4-only API
The API and related implementation fields are not used internally nor externally, and only support IPv4. Let's simply deprecate the API and drop all the uneeded implementation. Change-Id: I905d4c4efabb6b4a4bc5c02e956808777243cadc
This commit is contained in:
@@ -133,7 +133,7 @@ int mgcp_client_connect(struct mgcp_client *mgcp);
|
||||
|
||||
const char *mgcp_client_remote_addr_str(struct mgcp_client *mgcp);
|
||||
uint16_t mgcp_client_remote_port(struct mgcp_client *mgcp);
|
||||
uint32_t mgcp_client_remote_addr_n(struct mgcp_client *mgcp);
|
||||
uint32_t mgcp_client_remote_addr_n(struct mgcp_client *mgcp) OSMO_DEPRECATED("deprecated, returns 0");
|
||||
|
||||
const char *mgcp_client_endpoint_domain(const struct mgcp_client *mgcp);
|
||||
const char *mgcp_client_rtpbridge_wildcard(const struct mgcp_client *mgcp);
|
||||
|
@@ -6,7 +6,6 @@
|
||||
|
||||
struct mgcp_client {
|
||||
struct mgcp_client_conf actual;
|
||||
uint32_t remote_addr;
|
||||
struct osmo_wqueue wq;
|
||||
mgcp_trans_id_t next_trans_id;
|
||||
struct llist_head responses_pending;
|
||||
|
@@ -823,7 +823,6 @@ static int init_socket(struct mgcp_client *mgcp)
|
||||
* \returns 0 on success, -EINVAL on error. */
|
||||
int mgcp_client_connect(struct mgcp_client *mgcp)
|
||||
{
|
||||
struct sockaddr_in addr;
|
||||
struct osmo_wqueue *wq;
|
||||
int rc;
|
||||
|
||||
@@ -843,9 +842,6 @@ int mgcp_client_connect(struct mgcp_client *mgcp)
|
||||
goto error_close_fd;
|
||||
}
|
||||
|
||||
inet_aton(mgcp->actual.remote_addr, &addr.sin_addr);
|
||||
mgcp->remote_addr = htonl(addr.sin_addr.s_addr);
|
||||
|
||||
osmo_wqueue_init(wq, 1024);
|
||||
wq->bfd.when = OSMO_FD_READ;
|
||||
wq->bfd.data = mgcp;
|
||||
@@ -877,12 +873,13 @@ uint16_t mgcp_client_remote_port(struct mgcp_client *mgcp)
|
||||
return mgcp->actual.remote_port;
|
||||
}
|
||||
|
||||
/*! Get the IP-Aaddress of the associated MGW as its numeric representation.
|
||||
/*! Get the IP-Address of the associated MGW as its numeric representation.
|
||||
* DEPRECATED, DON'T USE.
|
||||
* \param[in] mgcp MGCP client descriptor.
|
||||
* \returns IP-Address as 32 bit integer (network byte order) */
|
||||
uint32_t mgcp_client_remote_addr_n(struct mgcp_client *mgcp)
|
||||
{
|
||||
return mgcp->remote_addr;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* To compose endpoint names, usually for CRCX, use this as domain name.
|
||||
|
Reference in New Issue
Block a user