[Asterisk-cvs] zaptel zaptel.c,1.30,1.31 zaptel.h,1.12,1.13
markster at lists.digium.com
markster at lists.digium.com
Fri Oct 24 14:25:27 CDT 2003
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv12935
Modified Files:
zaptel.c zaptel.h
Log Message:
Increase max buffer size
Index: zaptel.c
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- zaptel.c 26 Aug 2003 19:36:15 -0000 1.30
+++ zaptel.c 24 Oct 2003 19:51:33 -0000 1.31
@@ -3049,6 +3049,8 @@
return -EINVAL;
if (bi.bufsize < 16)
return -EINVAL;
+ if (bi.bufsize * bi.numbufs > ZT_MAX_BUF_SPACE)
+ return -EINVAL;
chan->rxbufpolicy = bi.rxbufpolicy & 0x1;
chan->txbufpolicy = bi.txbufpolicy & 0x1;
if ((rv = zt_reallocbufs(chan, bi.bufsize, bi.numbufs)))
Index: zaptel.h
===================================================================
RCS file: /usr/cvsroot/zaptel/zaptel.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- zaptel.h 18 Jul 2003 18:58:41 -0000 1.12
+++ zaptel.h 24 Oct 2003 19:51:33 -0000 1.13
@@ -118,7 +118,8 @@
#define ZT_MAX_BLOCKSIZE 8192
#define ZT_DEFAULT_NUM_BUFS 2
-#define ZT_MAX_NUM_BUFS 8
+#define ZT_MAX_NUM_BUFS 32
+#define ZT_MAX_BUF_SPACE 32768
#define ZT_DEFAULT_BLOCKSIZE 1024
#define ZT_DEFAULT_MTR_MRU 2048
More information about the svn-commits
mailing list