diff options
author | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-29 15:20:56 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@soleta.eu> | 2014-08-29 15:30:29 +0200 |
commit | 0316aa6060ccadde9a2efb3b3aa41dc1282dd3ad (patch) | |
tree | 6ddcbca3a8e9a1745d244df4b71333017ead102b /src/osmux.c | |
parent | 9de1521ca977c6df7718a64bb82530500141b712 (diff) |
osmux: export OSMUX_BATCH_DEFAULT_MAX
This allows you to set the default batch size when initializing the
osmux input handle.
Diffstat (limited to 'src/osmux.c')
-rw-r--r-- | src/osmux.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/osmux.c b/src/osmux.c index 4affd23..eb2c683 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -33,9 +33,6 @@ #define DEBUG_MSG 0 #endif -/* Default: MTU - iphdr (20 bytes) - udphdr (8 bytes) */ -#define OSMUX_BATCH_MAX 1472 - /* delta time between two RTP messages */ #define DELTA_RTP_MSG 16000 #define DELTA_RTP_TIMESTAMP 160 @@ -600,7 +597,7 @@ void osmux_xfrm_input_init(struct osmux_in_handle *h) /* Default to osmux packet size if not specified */ if (h->batch_size == 0) - h->batch_size = OSMUX_BATCH_MAX; + h->batch_size = OSMUX_BATCH_DEFAULT_MAX; batch = talloc_zero(osmux_ctx, struct osmux_batch); if (batch == NULL) |