diff options
-rw-r--r-- | src/pcu_l1_if.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp index 75071f27..d7f5ec44 100644 --- a/src/pcu_l1_if.cpp +++ b/src/pcu_l1_if.cpp @@ -25,6 +25,7 @@ #include <assert.h> #include <sys/socket.h> #include <sys/un.h> +#include <arpa/inet.h> extern "C" { #include <osmocom/core/talloc.h> #include <osmocom/core/select.h> @@ -342,6 +343,7 @@ static int pcu_rx_info_ind(struct gsm_pcu_if_info_ind *info_ind) { struct gprs_rlcmac_bts *bts = gprs_rlcmac_bts; struct gprs_rlcmac_pdch *pdch; + struct in_addr ia; int rc = 0; int trx, ts; int i; @@ -419,7 +421,8 @@ bssgp_failed: LOGP(DL1IF, LOGL_DEBUG, " nsvci=%d\n", info_ind->nsvci[0]); LOGP(DL1IF, LOGL_DEBUG, " local_port=%d\n", info_ind->local_port[0]); LOGP(DL1IF, LOGL_DEBUG, " remote_port=%d\n", info_ind->remote_port[0]); - LOGP(DL1IF, LOGL_DEBUG, " remote_ip=%d\n", info_ind->remote_ip[0]); + ia.s_addr = htonl(info_ind->remote_ip[0]); + LOGP(DL1IF, LOGL_DEBUG, " remote_ip=%s\n", inet_ntoa(ia)); rc = gprs_bssgp_create(info_ind->local_port[0], info_ind->remote_ip[0], info_ind->remote_port[0], |