diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-08 11:00:09 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-08 11:00:09 +0800 |
commit | cd4afce470bc448972359403c0d6a13fced5a0f4 (patch) | |
tree | a184e49aac41ef68b6fe62d5b0c4d05912efbfa6 /openbsc | |
parent | 299d5aa2a4edd54c9fb08c0343b8f685499439eb (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.c | 4 |
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 335b0e374..6cbf4a511 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; } |