From ff4b630de9b8cb760e3d30861fda807f708351d9 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 30 Nov 2015 00:07:02 +0100 Subject: gtphub: add two stubs for Delete PDP msgs Sponsored-by: On-Waves ehi --- openbsc/src/gprs/gtphub.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'openbsc/src/gprs/gtphub.c') diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index 110438cc3..809c55522 100644 --- a/openbsc/src/gprs/gtphub.c +++ b/openbsc/src/gprs/gtphub.c @@ -1537,6 +1537,24 @@ static int gtphub_handle_create_pdp_ctx(struct gtphub *hub, return 0; } +static int gtphub_handle_delete_pdp_ctx(struct gtphub *hub, + struct gtp_packet_desc *p, + struct gtphub_peer_port *from_ctrl, + struct gtphub_peer_port *to_ctrl) +{ + /* TODO */ + return 0; +} + +static int gtphub_handle_update_pdp_ctx(struct gtphub *hub, + struct gtp_packet_desc *p, + struct gtphub_peer_port *from_ctrl, + struct gtphub_peer_port *to_ctrl) +{ + /* TODO */ + return 0; +} + /* Read GSN address IEs from p, and make sure these peer addresses exist in * bind[plane_idx] with default ports, in their respective planes (both Ctrl * and User). Map TEIs announced in IEs, and write mapped TEIs in-place into @@ -1553,6 +1571,17 @@ static int gtphub_handle_pdp_ctx(struct gtphub *hub, case GTP_CREATE_PDP_RSP: return gtphub_handle_create_pdp_ctx(hub, p, from_ctrl, to_ctrl); + + case GTP_DELETE_PDP_REQ: + case GTP_DELETE_PDP_RSP: + return gtphub_handle_delete_pdp_ctx(hub, p, + from_ctrl, to_ctrl); + + case GTP_UPDATE_PDP_REQ: + case GTP_UPDATE_PDP_RSP: + return gtphub_handle_update_pdp_ctx(hub, p, + from_ctrl, to_ctrl); + default: /* Nothing to do for this message type. */ return 0; -- cgit v1.2.3