aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 17:30:50 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-30 17:30:50 +0800
commit35948551fd07441af1fa3a9d4985b08fdbdc7a33 (patch)
treec0b9b8e6fcd14762c606ea98a7ba28bc896ec509 /src/main.c
parent1cb634a1e22987559f3d347c9e404b5eeb21cd73 (diff)
bsc: Move more sccp code into the bsc_sccp.c
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/main.c b/src/main.c
index 4e97aec..8005666 100644
--- a/src/main.c
+++ b/src/main.c
@@ -214,16 +214,6 @@ static void handle_local_sccp(struct mtp_link *link, struct msgb *inpt, struct s
return;
}
-/*
- * remove data
- */
-static void free_con(struct active_sccp_con *con)
-{
- llist_del(&con->entry);
- bsc_del_timer(&con->rlc_timeout);
- talloc_free(con);
-}
-
static void clear_connections(struct bsc_data *bsc)
{
struct active_sccp_con *tmp, *con;
@@ -364,24 +354,6 @@ void bsc_link_up(struct link_data *data)
/**
* update the connection state and helpers below
*/
-static struct active_sccp_con *find_con_by_dest_ref(struct sccp_source_reference *ref)
-{
- struct active_sccp_con *con;
-
- if (!ref) {
- LOGP(DINP, LOGL_ERROR, "Dest Reference is NULL. No connection found.\n");
- return NULL;
- }
-
- llist_for_each_entry(con, &bsc.sccp_connections, entry) {
- if (memcmp(&con->dst_ref, ref, sizeof(*ref)) == 0)
- return con;
- }
-
- LOGP(DINP, LOGL_ERROR, "No connection fond with: 0x%x as dest\n", sccp_src_ref_to_int(ref));
- return NULL;
-}
-
static void send_rlc_to_bsc(unsigned int sls, struct sccp_source_reference *src, struct sccp_source_reference *dst)
{
struct msgb *msg;