From 6782cea4bf33f4142fd4aa65467149a34c35725a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 2 May 2010 19:28:59 +0800 Subject: 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. --- openbsc/include/openbsc/bsc_nat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbsc/include/openbsc') 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; }; -- cgit v1.2.3