From adfaa57b536bc59f3a03e0e92ebea4f3d6f6fe83 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 5 Sep 2017 17:41:20 +0200 Subject: 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 --- ggsn/ggsn.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ggsn/ggsn.h') 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) */ -- cgit v1.2.3