aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gtphub.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-09 15:12:25 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-16 15:16:32 +0100
commitbb3d6785e1a32a651bdb9b32707245e1c126c536 (patch)
tree5ce8fb16ee6346649af965461dbcd10158e0eade /openbsc/include/openbsc/gtphub.h
parent30f7bcbd79ad1b661dff844a43f0ccbf4f07cebf (diff)
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
Diffstat (limited to 'openbsc/include/openbsc/gtphub.h')
-rw-r--r--openbsc/include/openbsc/gtphub.h4
1 files changed, 4 insertions, 0 deletions
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);