diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-09-05 17:41:20 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-09-06 12:22:31 +0200 |
commit | 98146776dddb986fda78b5f028e79f041460ee4c (patch) | |
tree | 9ba1e9c37d07489d404d60d52d933196c9bb0d18 /ggsn/ggsn.h | |
parent | b5b02c2a513b46143179494d2ba156f27c7adcd1 (diff) |
ggsn: Add ability to specify local IP addresses for GTP-C and GTP-U
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.h | 4 |
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) */ |