aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-04-16 09:53:13 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-04-16 09:53:13 +0200
commitc279e39c128615286a50e440179b6957158ceadb (patch)
tree464a39aaf603ad875ad07b786a5a0f591c71ec0b /openbsc/tests
parent0e5f5aeaad5234a6ce22ad10fd3d0801d17cea9f (diff)
nat: Rename "struct sccp_connections" to "struct nat_sccp_connection"
The name sccp_connection is used in the osmo-sccp code, sccp_connections was used in the NAT for tracking a sccp_connection. Rename it so it is obvious that the struct belongs to the nat. The rename was done with sed: $ sed -i s,"struct sccp_connections","struct nat_sccp_connection",g \ include/openbsc/*.h src/osmo-bsc_nat/* tests/*/*
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index 6148a375d..18668bb4b 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -305,8 +305,8 @@ static void test_contrack()
{
struct bsc_nat *nat;
struct bsc_connection *con;
- struct sccp_connections *con_found;
- struct sccp_connections *rc_con;
+ struct nat_sccp_connection *con_found;
+ struct nat_sccp_connection *rc_con;
struct bsc_nat_parsed *parsed;
struct msgb *msg;
@@ -457,7 +457,7 @@ static void test_mgcp_allocations(void)
#if 0
struct bsc_connection *bsc;
struct bsc_nat *nat;
- struct sccp_connections con;
+ struct nat_sccp_connection con;
int i, j, multiplex;
printf("Testing MGCP.\n");
@@ -501,7 +501,7 @@ static void test_mgcp_ass_tracking(void)
{
struct bsc_connection *bsc;
struct bsc_nat *nat;
- struct sccp_connections con;
+ struct nat_sccp_connection con;
struct bsc_nat_parsed *parsed;
struct msgb *msg;
@@ -581,7 +581,7 @@ static void test_mgcp_find(void)
{
struct bsc_nat *nat;
struct bsc_connection *con;
- struct sccp_connections *sccp_con;
+ struct nat_sccp_connection *sccp_con;
printf("Testing finding of a BSC Connection\n");
@@ -589,7 +589,7 @@ static void test_mgcp_find(void)
con = bsc_connection_alloc(nat);
llist_add(&con->list_entry, &nat->bsc_connections);
- sccp_con = talloc_zero(con, struct sccp_connections);
+ sccp_con = talloc_zero(con, struct nat_sccp_connection);
sccp_con->msc_endp = 12;
sccp_con->bsc_endp = 12;
sccp_con->bsc = con;
@@ -832,7 +832,7 @@ static void test_dt_filter()
struct bsc_nat *nat = bsc_nat_alloc();
struct bsc_connection *bsc = bsc_connection_alloc(nat);
- struct sccp_connections *con = talloc_zero(0, struct sccp_connections);
+ struct nat_sccp_connection *con = talloc_zero(0, struct nat_sccp_connection);
bsc->cfg = bsc_config_alloc(nat, "foo");
bsc_config_add_lac(bsc->cfg, 23);