diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-02 20:24:31 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-02 20:24:31 +0200 |
commit | 52c7649e2379e3c8c9acafa7351fa6838532834a (patch) | |
tree | a0da144d6c5150d4750b25cf17d2193a2ff40478 /src | |
parent | 4aa55450a36aaab09228e0e078218262f8fe73a4 (diff) |
osmux: fix wrong maximum batch size
Missing UDP header in calculation.
Diffstat (limited to 'src')
-rw-r--r-- | src/osmux.c | 3 |
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) { |