SGSN: some more comments
diff --git a/openbsc/src/gprs/sgsn_libgtp.c b/openbsc/src/gprs/sgsn_libgtp.c
index 3d52c5b..5278e4d 100644
--- a/openbsc/src/gprs/sgsn_libgtp.c
+++ b/openbsc/src/gprs/sgsn_libgtp.c
@@ -208,6 +208,7 @@
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 @@
/* 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 @@
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);