aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
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 15:39:16 +0200
commitcf3f1c8b3d847e4134dc2cd932c583ebc9650882 (patch)
treed67aac3196ee6d351ac53f5760d3aad5f2415ff4 /openbsc
parent984f3b8047ba29dea8c1077721eef0e07a12ed8f (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')
-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 94b177ef3..a420e302f 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -652,7 +652,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,