Actions
Bug #2442
closedosmo-trx always bind to 127.0.0.1
Start date:
08/15/2017
Due date:
% Done:
100%
Spec Reference:
Description
I tried changing the address to which osmo-bts-trx listens to, by passing -i "A.B.C.D", but it's not working:
-i IP address of GSM core
netstat -l -n -u -p:
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name udp 0 0 127.0.0.1:5700 0.0.0.0:* 30377/osmo-trx udp 0 0 127.0.0.1:5701 0.0.0.0:* 30377/osmo-trx udp 0 0 127.0.0.1:5702 0.0.0.0:* 30377/osmo-trx
It looks like in UDPSocket::open, the following is being used:
address.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
Updated by pespin over 6 years ago
The variable from "-i" parameter seems to be used to send UDP packets, not receive them.
I guess the best would be adding a "-l" parameter to set the IP to listen to? Actually -l is already taken, but another parameter. Any opinions?
Updated by pespin over 6 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 90
Patch available, waiting for merge: https://gerrit.osmocom.org/#/c/3539/
Updated by pespin over 6 years ago
- Status changed from Feedback to Resolved
- % Done changed from 90 to 100
PAtch merged and feature is already being used in osmo-gsm-tester
Actions