summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trx_if.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-01 14:40:32 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-01 14:42:25 +0100
commit0d3030c76405fbcf3d8cbcb61547eee53aec02b3 (patch)
tree13fec2319a05829620f2a2568d6e694d42baad19 /src/host/trxcon/trx_if.h
parent380dc7e768c944ab0efc28f24205334a4c736a42 (diff)
trxcon: Fix '-i' to specify the "TRX IP address"
The command line help states '-i' is for 'TRX IP address', which is the remote IP address at which the TRX is to be found. Hoewever, it was used as the local (bind) IP address of the socket used towards the TRX. This is my attempt at fixing this. A more complete solution probably allows to specify both local (bind) and remote (connect) address, just to be clear. Change-Id: If0252b15e9c7942687c6dc470951d777f7af651c
Diffstat (limited to 'src/host/trxcon/trx_if.h')
-rw-r--r--src/host/trxcon/trx_if.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/trxcon/trx_if.h b/src/host/trxcon/trx_if.h
index dd84315e..6080dcee 100644
--- a/src/host/trxcon/trx_if.h
+++ b/src/host/trxcon/trx_if.h
@@ -52,7 +52,8 @@ struct trx_ctrl_msg {
int cmd_len;
};
-int trx_if_open(struct trx_instance **trx, const char *host, uint16_t port);
+int trx_if_open(struct trx_instance **trx, const char *local_host,
+ const char *remote_host, uint16_t port);
void trx_if_flush_ctrl(struct trx_instance *trx);
void trx_if_close(struct trx_instance *trx);