aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-07 15:39:16 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-07 22:51:37 +0200
commit54fa7991295d64a01a39f7863f585ff8ab08ed13 (patch)
tree430e16c605983d015422f8aca0e2cffa889ee508 /openbsc/src/vty_interface.c
parent3c71232b112a40bf09bd9687f1bc6aed12e863a3 (diff)
vty: Fix the byteorder... of the bound_ip
We are storing the bound_ip in host byteorder but when using ntohl we need to convert it back to to network byte order.
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r--openbsc/src/vty_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index 897ed2f69..b5bdbc8c2 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -616,7 +616,7 @@ static void lchan_dump_vty(struct vty *vty, struct gsm_lchan *lchan)
vty_out(vty, " No Subscriber%s", VTY_NEWLINE);
if (is_ipaccess_bts(lchan->ts->trx->bts)) {
struct in_addr ia;
- ia.s_addr = lchan->abis_ip.bound_ip;
+ ia.s_addr = htonl(lchan->abis_ip.bound_ip);
vty_out(vty, " Bound IP: %s Port %u RTP_TYPE2=%u CONN_ID=%u%s",
inet_ntoa(ia), lchan->abis_ip.bound_port,
lchan->abis_ip.rtp_payload2, lchan->abis_ip.conn_id,