From 27cdccf74a08005663c01e7e995bf62c2435b9ee Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 25 Aug 2010 11:56:57 +0800 Subject: sccp: Pass the sccp_connection down to the send method if it exists This allows to identify the sccp connection and send the SCCP payload down to a different stream depending on the connection. It will be used by the bsc_msc_ip to keep multiple MSC connections open. --- tests/sccp/sccp_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/sccp/sccp_test.c b/tests/sccp/sccp_test.c index f10caea..c5c6f4f 100644 --- a/tests/sccp/sccp_test.c +++ b/tests/sccp/sccp_test.c @@ -427,7 +427,7 @@ int sccp_read_cb(struct msgb *data, unsigned len, void *context) return 0; } -void sccp_write_cb(struct msgb *data, void *ctx) +void sccp_write_cb(struct sccp_connection *conn, struct msgb *data, void *ctx) { int i = 0; const uint8_t *got, *wanted; @@ -479,7 +479,7 @@ int sccp_accept_cb(struct sccp_connection *connection, void *user_data) return 0; } -static void sccp_udt_write_cb(struct msgb *data, void *context) +static void sccp_udt_write_cb(struct sccp_connection *conn, struct msgb *data, void *context) { const uint8_t *got, *wanted; int i; @@ -570,7 +570,7 @@ static int sccp_udt_read(struct msgb *data, unsigned int len, void *context) return 0; } -static void sccp_write_loop(struct msgb *data, void *context) +static void sccp_write_loop(struct sccp_connection *conn, struct msgb *data, void *context) { /* send it back to us */ sccp_system_incoming(data); -- cgit v1.2.3