diff options
author | Isabelle Kraemer <isabelle.kraemer@gmail.com> | 2011-07-29 16:41:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-29 16:41:38 +0200 |
commit | fe5040967513616731d8151b22d26bdf74d65111 (patch) | |
tree | 4a5692c1adf60d3f609c27adf670705910a36637 | |
parent | f5cbbc9558ce4907736ede5d3475889155ce3332 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |