Changeset 995 for vic/trunk/net/pktbuf.h

Show
Ignore:
Timestamp:
12/15/99 17:27:32 (15 years ago)
Author:
piers
Message:

Introduced factor of 2 into the PKTBUF_SIZE as the H261 codec seems to over-run
the buffer a bit - causing random errors. This was the size in the vic before
but in MASH (where the new pktbuf stuff came from) the size was:
#define PKTBUF_SIZE (MAXHDR + 2 * 1024 + PKTBUF_PAD)
Now it is:
#define PKTBUF_SIZE (2 * 1024)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/trunk/net/pktbuf.h

    r994 r995  
    7979#define MAXHDR 128 
    8080#define PKTBUF_PAD 256 
    81 /* Introduced factor of 2 as the H261 codec seems to over-run the buffer a bit*/ 
    82 #define PKTBUF_SIZE (MAXHDR + 2 * 1024 + PKTBUF_PAD) 
     81#define RTP_MTU 1024 
     82/* Introduced factor of 2 as the H261 codec seems to over-run the buffer a bit 
     83#define PKTBUF_SIZE (MAXHDR + 1024 + PKTBUF_PAD) from MASH */ 
     84#define PKTBUF_SIZE (2 * RTP_MTU) 
    8385 
    8486class pktbuf : public Buffer {