From f358964fb2496b3ce78ecc2ded3dfd48f560020f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 18 Feb 2011 23:39:34 +0100 Subject: bsc: Use msg->data and msg->len for the hexdump, pick a better name Rename the method as we send everything to the MSC and not just SCCP. Put alink into the function name. Also use msg->data and msg->len in hexdump as this is what we are sending to the server. --- openbsc/src/bsc/osmo_bsc_msc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbsc') diff --git a/openbsc/src/bsc/osmo_bsc_msc.c b/openbsc/src/bsc/osmo_bsc_msc.c index b0c00444b..2e8cf0579 100644 --- a/openbsc/src/bsc/osmo_bsc_msc.c +++ b/openbsc/src/bsc/osmo_bsc_msc.c @@ -174,12 +174,12 @@ int msc_queue_write(struct bsc_msc_connection *conn, struct msgb *msg, int proto return 0; } -static int msc_sccp_do_write(struct bsc_fd *fd, struct msgb *msg) +static int msc_alink_do_write(struct bsc_fd *fd, struct msgb *msg) { int ret; LOGP(DMSC, LOGL_DEBUG, "Sending SCCP to MSC: %u\n", msgb_l2len(msg)); - LOGP(DMI, LOGL_DEBUG, "MSC TX %s\n", hexdump(msg->l2h, msgb_l2len(msg))); + LOGP(DMI, LOGL_DEBUG, "MSC TX %s\n", hexdump(msg->data, msg->len)); ret = write(fd->fd, msg->data, msg->len); if (ret < msg->len) @@ -361,7 +361,7 @@ int osmo_bsc_msc_init(struct gsm_network *network) data->msc_con->connection_loss = msc_connection_was_lost; data->msc_con->connected = msc_connection_connected; data->msc_con->write_queue.read_cb = ipaccess_a_fd_cb; - data->msc_con->write_queue.write_cb = msc_sccp_do_write; + data->msc_con->write_queue.write_cb = msc_alink_do_write; bsc_msc_connect(data->msc_con); return 0; -- cgit v1.2.3