diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-01 15:20:18 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2015-12-03 11:44:37 +0100 |
commit | bc44330671c019be92b335149a2aefa3cc08b8f7 (patch) | |
tree | a5b828611af084a1c7df00256d9ecaf72298e2e3 /openbsc/include/openbsc/gtphub.h | |
parent | 3fdba2ed5ab7ad6e0814aac37f440ea1e72c906b (diff) |
gtphub: monitor GSNs' restart counters.
If a GSN indicates that it has reset, tear down each known tunnel for that GSN
individually (don't send the GSNs on the other side a different restart
counter, because they represent more than just this GSN).
Sponsored-by: On-Waves ehi
Diffstat (limited to 'openbsc/include/openbsc/gtphub.h')
-rw-r--r-- | openbsc/include/openbsc/gtphub.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gtphub.h b/openbsc/include/openbsc/gtphub.h index ea0f964a6..a260fed75 100644 --- a/openbsc/include/openbsc/gtphub.h +++ b/openbsc/include/openbsc/gtphub.h @@ -388,7 +388,8 @@ struct gtphub_peer_port { struct gtphub_peer_addr *peer_addr; uint16_t port; unsigned int ref_count; /* references from other peers' seq_maps */ - struct osmo_sockaddr sa; + struct osmo_sockaddr sa; /* a "cache" for (peer_addr->addr, port) */ + int last_restart_count; /* 0..255 = valid, all else means unknown */ }; struct gtphub_tunnel_endpoint { |