Project

General

Profile

Bug #2442

osmo-trx always bind to 127.0.0.1

Added by pespin about 1 month ago. Updated 24 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
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);

History

#1 Updated by pespin about 1 month 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?

#2 Updated by pespin about 1 month ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 90

Patch available, waiting for merge: https://gerrit.osmocom.org/#/c/3539/

#3 Updated by pespin 24 days 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

Also available in: Atom PDF