aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 01:12:03 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-18 02:40:31 +0800
commita380c89a9c7bb753ecc5e557373ac675cb5d0ac0 (patch)
treeda29aa899346362296b7aaf1b3aa6eb7971e1f5e
parentbedaf5da64df4ee816a278f267b9c1ba9f251bd8 (diff)
nat: Add new connections to the end of the list
By adding them to the end the VTY interface will only append connections and not change the order on each invocation.
-rw-r--r--openbsc/src/nat/bsc_sccp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_sccp.c b/openbsc/src/nat/bsc_sccp.c
index ff98b1b6c..075a8f6ad 100644
--- a/openbsc/src/nat/bsc_sccp.c
+++ b/openbsc/src/nat/bsc_sccp.c
@@ -99,7 +99,7 @@ int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc
return -1;
}
- llist_add(&conn->list_entry, &bsc->nat->sccp_connections);
+ llist_add_tail(&conn->list_entry, &bsc->nat->sccp_connections);
counter_inc(bsc->cfg->stats.sccp.conn);
counter_inc(bsc->cfg->nat->stats.sccp.conn);