aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsabelle Kraemer <isabelle.kraemer@gmail.com>2011-07-29 16:41:38 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-29 16:41:38 +0200
commitfe5040967513616731d8151b22d26bdf74d65111 (patch)
tree4a5692c1adf60d3f609c27adf670705910a36637
parentf5cbbc9558ce4907736ede5d3475889155ce3332 (diff)
GTP: Fix bug in update PDP context procedure
I use OpenGGSN to create/update/delete PDP context and I found a bug in the implementation: when the sgsnemu sends an "update PDP context" request, it receives back a "create PDP context" response. Below is the correction I made, I hope it helps.
-rw-r--r--gtp/gtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtp/gtp.c b/gtp/gtp.c
index 922fcb7..2516f50 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -1852,7 +1852,7 @@ int gtp_update_pdp_resp(struct gsn_t *gsn, int version,
struct pdp_t *pdp, uint8_t cause) {
union gtp_packet packet;
- unsigned int length = get_default_gtp(version, GTP_CREATE_PDP_RSP, &packet);
+ unsigned int length = get_default_gtp(version, GTP_UPDATE_PDP_RSP, &packet);
gtpie_tv1(&packet, &length, GTP_MAX, GTPIE_CAUSE, cause);