aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2012-08-02 20:24:31 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2012-08-02 20:24:31 +0200
commit52c7649e2379e3c8c9acafa7351fa6838532834a (patch)
treea0da144d6c5150d4750b25cf17d2193a2ff40478 /src
parent4aa55450a36aaab09228e0e078218262f8fe73a4 (diff)
osmux: fix wrong maximum batch size
Missing UDP header in calculation.
Diffstat (limited to 'src')
-rw-r--r--src/osmux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmux.c b/src/osmux.c
index 8145905..f59bdf1 100644
--- a/src/osmux.c
+++ b/src/osmux.c
@@ -28,7 +28,8 @@
/* XXX: this needs to be defined in libosmocore */
#define DOSMUX 0
-#define OSMUX_BATCH_MAX 1480 /* XXX: MTU - iphdr (20 bytes) */
+/* XXX: MTU - iphdr (20 bytes) - udphdr (8 bytes) */
+#define OSMUX_BATCH_MAX 1472
struct osmux_hdr *osmux_xfrm_output_pull(struct msgb *msg)
{