aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_nat.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-05-27 17:14:15 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-06-01 20:45:03 +0200
commit9c20571280fb7cf61bb7211cce0dbbfed9fad7b9 (patch)
tree8fa179b3cc133b597f45687df502bef54c699207 /openbsc/include/openbsc/bsc_nat.h
parent2e2ff340216b015c71537daf3a4103bacc95cc14 (diff)
nat: Patch the destination SMS address of a message
Use the same filtering infrasturcture to patch the SMSC address in a CP-DATA/RP-DATA message. Add a very simple testcase for this code.
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat.h')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index bf88e0af4..4506160e6 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -269,6 +269,9 @@ struct bsc_nat {
char *num_rewr_name;
struct llist_head num_rewr;
+ char *smsc_rewr_name;
+ struct llist_head smsc_rewr;
+
/* USSD messages we want to match */
char *ussd_lst_name;
char *ussd_query;
@@ -406,6 +409,6 @@ struct bsc_nat_num_rewr_entry {
char *replace;
};
-void bsc_nat_num_rewr_entry_adapt(struct bsc_nat *nat, const struct osmo_config_list *);
+void bsc_nat_num_rewr_entry_adapt(void *ctx, struct llist_head *head, const struct osmo_config_list *);
#endif