aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-02 19:28:59 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-02 19:31:14 +0800
commit6782cea4bf33f4142fd4aa65467149a34c35725a (patch)
tree581bb27bb2c68588e16ce2cf173785dcdc69b455 /openbsc/include
parentec7ecab66f530bb00f6d9d166a2cbb1e89bbd713 (diff)
nat: Send a IPA PING down the stream and wait for the pong.
We will send a ping every 20 seconds and if we have no pong within 5 seconds we will close down the BSC connection and wait for a reconnect. We will start this after having authenticated the BSC and we stop the timer when destructing the BSC connection.
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index 28ed4e804..d72e3b4ba 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -93,6 +93,10 @@ struct bsc_connection {
/* a timeout node */
struct timer_list id_timeout;
+ /* pong timeout */
+ struct timer_list ping_timeout;
+ struct timer_list pong_timeout;
+
/* a back pointer */
struct bsc_nat *nat;
};