aboutsummaryrefslogtreecommitdiffstats
path: root/ggsn/ggsn.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-09-05 17:41:20 +0200
committerHarald Welte <laforge@gnumonks.org>2017-09-05 22:43:45 +0200
commitadfaa57b536bc59f3a03e0e92ebea4f3d6f6fe83 (patch)
tree0e330d551e52c299a736499e0a147118160a1786 /ggsn/ggsn.h
parent76bd17bba01eaeabc2ba689ec651714fc6754fa7 (diff)
ggsn: Add ability to specify local IP addresses for GTP-C and GTP-Ulaforge/osmo-ggsn
In case the GGSN is behind some kind of DNAT, the public GTP-C and GTP-U IP addresses as exposed inside the GTP payload information elements are different from the (internal, behind-nat) IP address to which it listens/binds. Change-Id: I548c9011c9abd66d46f963b1def61575f3dabb89
Diffstat (limited to 'ggsn/ggsn.h')
-rw-r--r--ggsn/ggsn.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ggsn/ggsn.h b/ggsn/ggsn.h
index bab6cf7..2dd963c 100644
--- a/ggsn/ggsn.h
+++ b/ggsn/ggsn.h
@@ -99,6 +99,10 @@ struct ggsn_ctx {
struct apn_ctx *default_apn;
/* ADdress to which we listen for GTP */
struct in46_addr listen_addr;
+ /* Local GTP-C address advertised in GTP */
+ struct in46_addr gtpc_addr;
+ /* Local GTP-U address advertised in GTP */
+ struct in46_addr gtpu_addr;
/* directory for state file */
char *state_dir;
/* administratively shut-down (true) or not (false) */