aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-06-08 11:00:09 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:21 +0800
commit26c3a358d62f32bd1bc4db774b9db0d9a20dd0e1 (patch)
tree35caf60d39b789367964268183bff31a794b0fde /openbsc
parentd77c8171aa22585a46cc9fdff4734a2b6b4f35f1 (diff)
nat: Add both entries to the tail to keep the order they are inserted
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index 5bb8fb9ac..9fc057d9a 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -468,7 +468,7 @@ struct bsc_nat_acc_lst *bsc_nat_acc_lst_get(struct bsc_nat *nat, const char *nam
INIT_LLIST_HEAD(&lst->fltr_list);
lst->name = talloc_strdup(lst, name);
- llist_add(&lst->list, &nat->access_lists);
+ llist_add_tail(&lst->list, &nat->access_lists);
return lst;
}
@@ -486,6 +486,6 @@ struct bsc_nat_acc_lst_entry *bsc_nat_acc_lst_entry_create(struct bsc_nat_acc_ls
if (!entry)
return NULL;
- llist_add(&entry->list, &lst->fltr_list);
+ llist_add_tail(&entry->list, &lst->fltr_list);
return entry;
} \ No newline at end of file