osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/36789?usp=email )
Change subject: gtp/gtp.c: move gtp_create_context_resp down ...................................................................... gtp/gtp.c: move gtp_create_context_resp down Move gtp_create_context_resp below gtp_create_pdp_resp, which it calls. In a follow-up commit, we can make gtp_create_pdp_resp static and remove the additional declaration. Change-Id: I34efe7592013a8423f4f280758272d81f24b65fa --- M gtp/gtp.c 1 file changed, 26 insertions(+), 13 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/89/36789/1 diff --git a/gtp/gtp.c b/gtp/gtp.c index bdf7e7d..2d18fab 100644 --- a/gtp/gtp.c +++ b/gtp/gtp.c @@ -990,19 +990,6 @@ return 0; } -/* API: Application response to context indication */ -int gtp_create_context_resp(struct gsn_t *gsn, struct pdp_t *pdp, int cause) -{ - - /* Now send off a reply to the peer */ - gtp_create_pdp_resp(gsn, pdp->version, pdp, cause); - - if (!gtp_cause_successful(cause)) - gtp_freepdp(gsn, pdp); - - return 0; -} - /* Send Create PDP Context Response */ int gtp_create_pdp_resp(struct gsn_t *gsn, int version, struct pdp_t *pdp, uint8_t cause) @@ -1066,6 +1053,19 @@ pdp->fd, pdp->seq, pdp->tid); } +/* API: Application response to context indication */ +int gtp_create_context_resp(struct gsn_t *gsn, struct pdp_t *pdp, int cause) +{ + + /* Now send off a reply to the peer */ + gtp_create_pdp_resp(gsn, pdp->version, pdp, cause); + + if (!gtp_cause_successful(cause)) + gtp_freepdp(gsn, pdp); + + return 0; +} + /* Handle Create PDP Context Request */ int gtp_create_pdp_ind(struct gsn_t *gsn, int version, struct sockaddr_in *peer, int fd, -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/36789?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: I34efe7592013a8423f4f280758272d81f24b65fa Gerrit-Change-Number: 36789 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osm...@sysmocom.de> Gerrit-MessageType: newchange