aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-19 10:07:41 +0000
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-19 10:14:56 +0000
commit74f89c6119d7a4daecf643946cba5a40b6dd93da (patch)
treeb2e931c2384e7b4d61881f951e907e6a486919b3
parentf42bbbc27895cc60ac11794f35345419e002d38e (diff)
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.
-rw-r--r--src/osmo_client_core.c5
1 files changed, 5 insertions, 0 deletions
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)