diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-11-30 00:07:02 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-03 11:43:49 +0100 |
commit | ff4b630de9b8cb760e3d30861fda807f708351d9 (patch) | |
tree | 9d96b2ca10b1c9f31860ce9f2a9cd3fa564da19d | |
parent | 817bc32696422ac4662b4b706c6e03961e45257b (diff) |
gtphub: add two stubs for Delete PDP msgs
Sponsored-by: On-Waves ehi
-rw-r--r-- | openbsc/src/gprs/gtphub.c | 29 |
1 files changed, 29 insertions, 0 deletions
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; |