diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-19 17:48:13 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-19 17:48:13 +0200 |
commit | a25d579ab90305e6742e96b715ffd2e7fea0ef39 (patch) | |
tree | d8a43ffbaaad70c8d2ffb599aabdd9f67a51abc8 /openbsc/src/nat/bsc_nat.c | |
parent | 7e8da1379eb73e6a3b50837b049f0d34450cf89c (diff) |
nat: Convert the ip to host order to allow to bind to other ips
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 1baf3c928..b8a6cfc7b 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -1257,7 +1257,7 @@ int main(int argc, char **argv) bsc_msc_connect(nat->msc_con); /* wait for the BSC */ - rc = make_sock(&bsc_listen, IPPROTO_TCP, local_addr.s_addr, + rc = make_sock(&bsc_listen, IPPROTO_TCP, ntohl(local_addr.s_addr), 5000, ipaccess_listen_bsc_cb); if (rc != 0) { fprintf(stderr, "Failed to listen for BSC.\n"); |