This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgPau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/10006 Change subject: gtp: Avoid freeing pdp contexts during DEL CTX REQ ...................................................................... gtp: Avoid freeing pdp contexts during DEL CTX REQ This may still be useful during REPLY time, for instance to hook to delete_cb in order to know when the pdp ctx has really been deleted. Change-Id: I29d366253bb98dcba328c7ce8aa3e4daf8f75e6c --- M gtp/gtp.c 1 file changed, 0 insertions(+), 32 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/06/10006/1 diff --git a/gtp/gtp.c b/gtp/gtp.c index 1309cb5..77d7c56 100644 --- a/gtp/gtp.c +++ b/gtp/gtp.c @@ -2346,7 +2346,6 @@ get_default_gtp(pdp->version, GTP_DELETE_PDP_REQ, &packet); struct in_addr addr; struct pdp_t *linked_pdp; - struct pdp_t *secondary_pdp; int n; int count = 0; @@ -2383,37 +2382,6 @@ gtp_req(gsn, pdp->version, pdp, &packet, length, &addr, cbp); - if (teardown) { /* Remove all contexts */ - for (n = 0; n < PDP_MAXNSAPI; n++) { - if (linked_pdp->secondary_tei[n]) { - if (pdp_getgtp1 - (&secondary_pdp, - linked_pdp->secondary_tei[n])) { - LOGP(DLGTP, LOGL_ERROR, - "Unknown secondary PDP context\n"); - return EOF; - } - if (linked_pdp != secondary_pdp) { - if (gsn->cb_delete_context) - gsn->cb_delete_context - (secondary_pdp); - pdp_freepdp(secondary_pdp); - } - } - } - if (gsn->cb_delete_context) - gsn->cb_delete_context(linked_pdp); - pdp_freepdp(linked_pdp); - } else { - if (gsn->cb_delete_context) - gsn->cb_delete_context(pdp); - if (pdp == linked_pdp) { - linked_pdp->secondary_tei[pdp->nsapi & 0xf0] = 0; - linked_pdp->nodata = 1; - } else - pdp_freepdp(pdp); - } - return 0; } -- To view, visit https://gerrit.osmocom.org/10006 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I29d366253bb98dcba328c7ce8aa3e4daf8f75e6c Gerrit-Change-Number: 10006 Gerrit-PatchSet: 1 Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180716/fe285900/attachment.htm>