aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-16 16:16:41 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-17 17:16:44 +0100
commit81a12be317bb5d2ad13bc27be1b2b1cb1605f4de (patch)
treeb97f4f2af47cf95c3ceb4559ab4343f8585d0be7
parent050ace2fb47fc6b490a09512efbad4c902044dea (diff)
Fix: Correctly display SGSN remote IP at debugging
-rw-r--r--src/pcu_l1_if.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index 75071f2..d7f5ec4 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],