aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-12-24 19:21:13 +0100
committerHarald Welte <laforge@gnumonks.org>2010-12-26 19:19:56 +0100
commit3357add225140a2e87a9d69150bf19cf578e24f7 (patch)
tree53118c79bce99c8eb9b9dcea0267a79bde173811 /openbsc/src/gprs
parentc407ba5ed27afefb238b8211067defa72746ac50 (diff)
SGSN: some more comments
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r--openbsc/src/gprs/sgsn_libgtp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index 3d52c5b32..5278e4d88 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -208,6 +208,7 @@ struct sgsn_pdp_ctx *sgsn_create_pdp_ctx(struct sgsn_ggsn_ctx *ggsn,
return pctx;
}
+/* SGSN wants to delete a PDP context */
int sgsn_delete_pdp_ctx(struct sgsn_pdp_ctx *pctx)
{
LOGP(DGPRS, LOGL_ERROR, "Delete PDP Context\n");
@@ -331,6 +332,8 @@ static int echo_conf(int recovery)
/* FIXME: if version == 1, retry with version 0 */
} else {
DEBUGP(DGPRS, "GTP Rx Echo Response\n");
+ /* FIXME: check if recovery counter has incremented and
+ * release all PDP context (if it has) */
}
return 0;
}
@@ -347,6 +350,7 @@ static int cb_conf(int type, int cause, struct pdp_t *pdp, void *cbp)
switch (type) {
case GTP_ECHO_REQ:
+ /* libgtp hands us the RECOVERY number instead of a cause */
return echo_conf(cause);
case GTP_CREATE_PDP_REQ:
return create_pdp_conf(pdp, cbp, cause);