aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2014-08-28 16:14:16 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2014-08-28 16:14:16 +0200
commit843c23098aba4c146c495af5f1dcfa35b579dc34 (patch)
treedfbd91c8615533dfba6fa76b651430e8fa84a921 /include
parent7a990e8e53d75fb58f72f5cc8dd613c528eda422 (diff)
osmux: add statistics to osmux_in_handle struct
Add statistics to the osmux input handle, which translates the RTP messages to osmux batch.
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/netif/osmux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h
index 2ee845c..03da1b6 100644
--- a/include/osmocom/netif/osmux.h
+++ b/include/osmocom/netif/osmux.h
@@ -45,6 +45,14 @@ struct osmux_in_handle {
uint8_t osmux_seq;
uint8_t batch_factor;
uint16_t batch_size;
+
+ struct {
+ uint32_t input_rtp_msgs;
+ uint32_t output_osmux_msgs;
+ uint64_t input_rtp_bytes;
+ uint64_t output_osmux_bytes;
+ } stats;
+
void (*deliver)(struct msgb *msg, void *data);
void *data;
char *internal_data; /* internal data to store batch */