diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-18 23:39:34 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-18 23:44:49 +0100 |
commit | f358964fb2496b3ce78ecc2ded3dfd48f560020f (patch) | |
tree | c19aa58dcd71aa3e865e91c2ddedb0eee317c38d /openbsc | |
parent | 91fa850791c86d9645529fe4069c2f9b79e65f34 (diff) |
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.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/bsc/osmo_bsc_msc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |