aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_nat.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-01 06:48:52 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-01 07:41:23 +0200
commitc57575bea80c901823f22983cb49ba03da5b21e5 (patch)
tree15581904c0607596d73612b4aa3c399c16d40a03 /openbsc/include/openbsc/bsc_nat.h
parent8cdfe9fc37819051187ad02dca20d8b75c701b0b (diff)
nat: Test rewriting of MGCP messages to patch ip and port
Add code to change the ip and port for audio data inside MGCP messages. This is needed because the BSS might be behind the NAT and can not reach the network directly and might be behind a nat so the announced sourceport is not the one as we see it.
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat.h')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index 412d9a841..068ef68fb 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -184,5 +184,6 @@ void bsc_mgcp_free_endpoints(struct bsc_nat *nat);
int bsc_mgcp_init(struct bsc_nat *nat);
struct bsc_connection *bsc_mgcp_find_con(struct bsc_nat *, int endpoint_number);
+struct msgb *bsc_mgcp_rewrite(struct msgb *msg, const char *ip, int port);
#endif