From 74f89c6119d7a4daecf643946cba5a40b6dd93da Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 19 Nov 2015 10:07:41 +0000 Subject: gprs: Do not collect BVC FLOW CONTROL / ACK messages These generate a high amount of traffic. They are good to debug ip.access nanoBTS GPRS crashes/service outage but in general cause too much traffic. --- src/osmo_client_core.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c index 1db8edc..721f881 100644 --- a/src/osmo_client_core.c +++ b/src/osmo_client_core.c @@ -70,6 +70,11 @@ static int check_gprs(const u_char *data, bpf_u_int32 len) return 1; bssgp_hdr = (struct bssgp_ud_hdr *) &hdr->data[3]; + /* BVC flow control is creating too much noise. Drop it */ + if (bssgp_hdr->pdu_type == BSSGP_PDUT_FLOW_CONTROL_BVC + || bssgp_hdr->pdu_type == BSSGP_PDUT_FLOW_CONTROL_BVC_ACK) + return 0; + /* We only need to check UL/DL messages for the sapi */ if (bssgp_hdr->pdu_type != BSSGP_PDUT_DL_UNITDATA && bssgp_hdr->pdu_type != BSSGP_PDUT_UL_UNITDATA) -- cgit v1.2.3