aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 16:10:17 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 16:10:17 +0800
commit1cb634a1e22987559f3d347c9e404b5eeb21cd73 (patch)
treebc9cd3a2bfe20ecc9eb8b9f3e39b931cf44563fa /src/main.c
parent0e4e35fdd6a29d7269a25f11b3ac3ee11c88a297 (diff)
bsc: Refactor and move SCCP ConTrack to bsc_sccp.c
Move the code, update Makefile.am, add includes.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/main.c b/src/main.c
index 948d71b..4e97aec 100644
--- a/src/main.c
+++ b/src/main.c
@@ -382,47 +382,6 @@ static struct active_sccp_con *find_con_by_dest_ref(struct sccp_source_reference
return NULL;
}
-static struct active_sccp_con *find_con_by_src_ref(struct sccp_source_reference *src_ref)
-{
- struct active_sccp_con *con;
-
- /* it is quite normal to not find this one */
- if (!src_ref)
- return NULL;
-
- llist_for_each_entry(con, &bsc.sccp_connections, entry) {
- if (memcmp(&con->src_ref, src_ref, sizeof(*src_ref)) == 0)
- return con;
- }
-
- return NULL;
-}
-
-static struct active_sccp_con *find_con_by_src_dest_ref(struct sccp_source_reference *src_ref,
- struct sccp_source_reference *dst_ref)
-{
- struct active_sccp_con *con;
-
- llist_for_each_entry(con, &bsc.sccp_connections, entry) {
- if (memcmp(src_ref, &con->src_ref, sizeof(*src_ref)) == 0 &&
- memcmp(dst_ref, &con->dst_ref, sizeof(*dst_ref)) == 0) {
- return con;
- }
- }
-
- return NULL;
-}
-
-unsigned int sls_for_src_ref(struct sccp_source_reference *ref)
-{
- struct active_sccp_con *con;
-
- con = find_con_by_src_ref(ref);
- if (!con)
- return 13;
- return con->sls;
-}
-
static void send_rlc_to_bsc(unsigned int sls, struct sccp_source_reference *src, struct sccp_source_reference *dst)
{
struct msgb *msg;