From 9c20571280fb7cf61bb7211cce0dbbfed9fad7b9 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 27 May 2011 17:14:15 +0200 Subject: 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. --- openbsc/include/openbsc/bsc_nat.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openbsc/include') 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 -- cgit v1.2.3