diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-13 15:22:20 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-13 15:22:20 +0100 |
commit | 3d947e6d678e87377fec684a90c08fdcfde5f69b (patch) | |
tree | dbbc48e4b02ad5f8672a51b42545ec84fbfdb0a2 /openbsc | |
parent | b62c9a19cfca6a8230e33eea2140720ee4518686 (diff) |
[nat] Use the right len for the packages..
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index 9af8467c6..6aed7c982 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -103,7 +103,7 @@ static void forward_sccp_to_bts(struct msgb *msg) /* currently send this to every BSC connected */ llist_for_each_entry(bsc, &bsc_connections, list_entry) { - write(bsc->bsc_fd.fd, msg->data, msg->data_len); + write(bsc->bsc_fd.fd, msg->data, msg->len); } } @@ -161,7 +161,7 @@ static int forward_sccp_to_msc(struct msgb *msg) /* FIXME: We need to filter out certain messages */ /* send the non-filtered but maybe modified msg */ - return write(msc_connection.fd, msg->data, msg->data_len); + return write(msc_connection.fd, msg->data, msg->len); } static int ipaccess_bsc_cb(struct bsc_fd *bfd, unsigned int what) |