From bb3d6785e1a32a651bdb9b32707245e1c126c536 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 9 Nov 2015 15:12:25 +0100 Subject: gtphub: fix Echo behavior: respond directly. Up to now I used the Echo as a test for sequence nr mappings. But Echos should be handled differently: they are scoped on the link and an Echo response should be sent right back to the requester. Sponsored-by: On-Waves ehi --- openbsc/include/openbsc/gtphub.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/gtphub.h b/openbsc/include/openbsc/gtphub.h index 05eee851e..514b1a375 100644 --- a/openbsc/include/openbsc/gtphub.h +++ b/openbsc/include/openbsc/gtphub.h @@ -396,6 +396,8 @@ struct gtphub { struct osmo_timer_list gc_timer; struct expiry expire_seq_maps; struct expiry expire_tei_maps; + + uint16_t restart_counter; }; struct gtp_packet_desc; @@ -425,6 +427,7 @@ int gtphub_from_sgsns_handle_buf(struct gtphub *hub, uint8_t *buf, size_t received, time_t now, + uint8_t **reply_buf, struct osmo_fd **to_ofd, struct osmo_sockaddr *to_addr); @@ -434,6 +437,7 @@ int gtphub_from_ggsns_handle_buf(struct gtphub *hub, uint8_t *buf, size_t received, time_t now, + uint8_t **reply_buf, struct osmo_fd **to_ofd, struct osmo_sockaddr *to_addr); -- cgit v1.2.3