diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-29 10:06:15 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-10-29 10:11:21 +0100 |
commit | db64f2e45adf7ac95070361f5b7ec76a44e084fb (patch) | |
tree | f0c0c198d982ac419bb39d154b5eba01889f855b /openbsc/src/osmo-bsc/osmo_bsc_api.c | |
parent | 76606d3473b61963a4d87bdad9f002e6191b9ece (diff) |
bsc: Allow to disable sending ping/pong to the MSC
Some switches do not like to receive the IPA PING/PONG messages.
Allow to disable the handling with "no timeout-ping" and create
test cases that verify the switching between the modes. Change the
code to trat <= 0 as an invalid timeout.
Fixes: SYS#713
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_api.c')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_api.c b/openbsc/src/osmo-bsc/osmo_bsc_api.c index 6bda3d430..2c661b3cf 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_api.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_api.c @@ -167,7 +167,7 @@ static int complete_layer3(struct gsm_subscriber_connection *conn, /* Advanced ping/pong handling */ if (osmo_timer_pending(&msc->pong_timer)) send_ping = 0; - if (msc->ping_timeout == 0) + if (msc->ping_timeout <= 0) send_ping = 0; if (send_ping && osmo_timer_remaining(&msc->ping_timer, NULL, &tv) == -1) send_ping = 0; |