aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-12 14:55:09 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-12 18:23:25 +0200
commit2ab8d03dd371d4ad42f3379be9e77bc88a0e07f2 (patch)
treebe78dc251a55ac8942c4021f1d20ee6c7e7c0284
parentdefa657404df72fe10152abbeb1cf4db8d3ed79d (diff)
libgtp: Add back-reference to gsn from pdp context
This is required once one wants to support multiple GSNs in a single application. WARNING: This breaks ABI compatibility, LIBVERSION must be adjusted Change-Id: I68ae49a765828fa681054c68bf7f5e74dbe48ad2
-rw-r--r--gtp/pdp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtp/pdp.h b/gtp/pdp.h
index 217b1d6..7191ffd 100644
--- a/gtp/pdp.h
+++ b/gtp/pdp.h
@@ -12,6 +12,8 @@
#ifndef _PDP_H
#define _PDP_H
+struct gsn_t;
+
#define PDP_MAX 1024 /* Max number of PDP contexts */
#define PDP_MAXNSAPI 16 /* Max number of NSAPI */
@@ -221,6 +223,8 @@ struct pdp_t {
/* to be used by libgtp callers/users (to attach their own private state) */
void *priv;
+
+ struct gsn_t *gsn;
};
/* functions related to pdp_t management */