summaryrefslogtreecommitdiff
path: root/net/asterisk-devel/files/patch-rtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/asterisk-devel/files/patch-rtp.c')
-rw-r--r--net/asterisk-devel/files/patch-rtp.c31
1 files changed, 25 insertions, 6 deletions
diff --git a/net/asterisk-devel/files/patch-rtp.c b/net/asterisk-devel/files/patch-rtp.c
index 06289f357208..36c4bea2f7ea 100644
--- a/net/asterisk-devel/files/patch-rtp.c
+++ b/net/asterisk-devel/files/patch-rtp.c
@@ -1,8 +1,5 @@
-
-$FreeBSD$
-
---- rtp.c.orig Sat Sep 18 16:56:28 2004
-+++ rtp.c Sun Oct 10 15:57:22 2004
+--- rtp.c.orig Tue Apr 26 10:00:28 2005
++++ rtp.c Tue Apr 26 10:06:35 2005
@@ -127,7 +127,7 @@
{
switch(buf & TYPE_MASK) {
@@ -12,7 +9,29 @@ $FreeBSD$
break;
case TYPE_SILENCE:
return 4;
-@@ -841,8 +841,10 @@
+@@ -351,9 +351,7 @@
+ 0, (struct sockaddr *)&sin, &len);
+
+ if (res < 0) {
+- if (errno == EAGAIN)
+- ast_log(LOG_NOTICE, "RTP: Received packet with bad UDP checksum\n");
+- else
++ if (errno != EAGAIN)
+ ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno));
+ if (errno == EBADF)
+ CRASH;
+@@ -431,9 +429,7 @@
+
+ rtpheader = (unsigned int *)(rtp->rawdata + AST_FRIENDLY_OFFSET);
+ if (res < 0) {
+- if (errno == EAGAIN)
+- ast_log(LOG_NOTICE, "RTP: Received packet with bad UDP checksum\n");
+- else
++ if (errno != EAGAIN)
+ ast_log(LOG_WARNING, "RTP Read error: %s\n", strerror(errno));
+ if (errno == EBADF)
+ CRASH;
+@@ -862,8 +858,10 @@
/* Must be an even port number by RTP spec */
rtp->us.sin_port = htons(x);
rtp->us.sin_addr = addr;