path: root/tests
diff options
authorHolger Hans Peter Freyther <>2010-08-25 11:56:57 +0800
committerHolger Hans Peter Freyther <>2010-08-25 12:01:12 +0800
commit27cdccf74a08005663c01e7e995bf62c2435b9ee (patch)
treea76b2d77db6ac57fd1e69a035656084aa7c508f7 /tests
parente9acdc861c466b434e4261781ff2a674613e642c (diff)
sccp: Pass the sccp_connection down to the send method if it exists0.0.3
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.
Diffstat (limited to 'tests')
1 files changed, 3 insertions, 3 deletions
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 */