aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2015-08-19 00:19:53 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2015-08-19 00:21:43 +0200
commite479f25a9bc83a39d9dc4c94abd3a0a5684e7a9c (patch)
tree324fe8304512730143f07602419ad97474d51231
parent0d90dd1563739a1db2af30737f9f8e76bfb4120e (diff)
osmux: rename batch->dummy field to batch->ndummy
This is basically a counter that tells us how many circuits need the padding, so better rename this to ndummy. Suggested by Holger.
-rw-r--r--src/osmux.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osmux.c b/src/osmux.c
index eedae69..8025d5d 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -186,7 +186,7 @@ struct osmux_batch {
unsigned int remaining_bytes;
uint8_t seq;
uint32_t nmsgs;
- int dummy;
+ int ndummy;
};
struct osmux_circuit {
@@ -392,7 +392,7 @@ void osmux_xfrm_input_deliver(struct osmux_in_handle *h)
osmo_timer_del(&batch->timer);
batch->remaining_bytes = h->batch_size;
- if (batch->dummy) {
+ if (batch->ndummy) {
osmo_timer_schedule(&batch->timer, 0,
h->batch_factor * DELTA_RTP_MSG);
}
@@ -525,7 +525,7 @@ osmux_batch_add_circuit(struct osmux_batch *batch, int ccid, int dummy,
if (dummy) {
circuit->dummy = dummy;
- batch->dummy++;
+ batch->ndummy++;
if (!osmo_timer_pending(&batch->timer))
osmo_timer_schedule(&batch->timer, 0,
batch_factor * DELTA_RTP_MSG);
@@ -542,7 +542,7 @@ static void osmux_batch_del_circuit(struct osmux_batch *batch, int ccid)
return;
if (circuit->dummy)
- batch->dummy--;
+ batch->ndummy--;
llist_del(&circuit->head);
talloc_free(circuit);
}
@@ -562,7 +562,7 @@ osmux_batch_add(struct osmux_batch *batch, int batch_factor, struct msgb *msg,
/* We've seen the first RTP message, disable dummy padding */
if (circuit->dummy) {
circuit->dummy = 0;
- batch->dummy--;
+ batch->ndummy--;
}
amr_payload_len = osmux_rtp_amr_payload_len(msg, rtph);
if (amr_payload_len < 0)