summaryrefslogtreecommitdiff
path: root/net/rtptools
diff options
context:
space:
mode:
Diffstat (limited to 'net/rtptools')
-rw-r--r--net/rtptools/Makefile2
-rw-r--r--net/rtptools/files/patch-rtp.h6
-rw-r--r--net/rtptools/files/patch-rtpdump.c8
-rw-r--r--net/rtptools/files/patch-rtpsend.c12
4 files changed, 15 insertions, 13 deletions
diff --git a/net/rtptools/Makefile b/net/rtptools/Makefile
index 04c651b10ba1..ad129ac5df8d 100644
--- a/net/rtptools/Makefile
+++ b/net/rtptools/Makefile
@@ -9,6 +9,8 @@ MASTER_SITES= http://www.cs.columbia.edu/IRT/software/rtptools/download/
MAINTAINER= cpm@fbsd.es
COMMENT= Set of tools to record, playback, and monitor RTPv2 data streams
+USES= dos2unix
+DOS2UNIX_GLOB= *.c
GNU_CONFIGURE= yes
PLIST_FILES= bin/rtpdump bin/rtpplay bin/rtpsend bin/rtptrans
diff --git a/net/rtptools/files/patch-rtp.h b/net/rtptools/files/patch-rtp.h
index c1d142b4a914..456bb3dce34c 100644
--- a/net/rtptools/files/patch-rtp.h
+++ b/net/rtptools/files/patch-rtp.h
@@ -1,6 +1,6 @@
---- rtp.h.orig Thu Mar 9 07:35:26 2000
-+++ rtp.h Sat Apr 21 21:52:49 2001
-@@ -110,13 +110,18 @@
+--- rtp.h.orig 2001-12-29 12:48:24 UTC
++++ rtp.h
+@@ -112,13 +112,18 @@ typedef struct {
#define RTCP_VALID_MASK (0xc000 | 0x2000 | 0xfe)
#define RTCP_VALID_VALUE ((RTP_VERSION << 14) | RTCP_SR)
diff --git a/net/rtptools/files/patch-rtpdump.c b/net/rtptools/files/patch-rtpdump.c
index 28056951ca69..e353f478436a 100644
--- a/net/rtptools/files/patch-rtpdump.c
+++ b/net/rtptools/files/patch-rtpdump.c
@@ -1,6 +1,6 @@
---- rtpdump.c.orig Sat Apr 7 08:02:13 2001
-+++ rtpdump.c Sat Apr 21 21:54:10 2001
-@@ -429,8 +429,8 @@
+--- rtpdump.c.orig 2016-06-20 15:59:04 UTC
++++ rtpdump.c
+@@ -441,8 +441,8 @@ static int parse_control(FILE *out, char
for (i = 0; i < r->common.count; i++) {
fprintf(out, " (ssrc=0x%lx fraction=%g lost=%lu last_seq=%lu jit=%lu lsr=%lu dlsr=%lu )\n",
(unsigned long)ntohl(r->r.sr.rr[i].ssrc),
@@ -11,7 +11,7 @@
(unsigned long)ntohl(r->r.sr.rr[i].last_seq),
(unsigned long)ntohl(r->r.sr.rr[i].jitter),
(unsigned long)ntohl(r->r.sr.rr[i].lsr),
-@@ -446,8 +446,8 @@
+@@ -458,8 +458,8 @@ static int parse_control(FILE *out, char
for (i = 0; i < r->common.count; i++) {
fprintf(out, " (ssrc=0x%lx fraction=%g lost=%lu last_seq=%lu jit=%lu lsr=%lu dlsr=%lu )\n",
(unsigned long)ntohl(r->r.rr.rr[i].ssrc),
diff --git a/net/rtptools/files/patch-rtpsend.c b/net/rtptools/files/patch-rtpsend.c
index 2003e898f0ab..1153d0816ca1 100644
--- a/net/rtptools/files/patch-rtpsend.c
+++ b/net/rtptools/files/patch-rtpsend.c
@@ -1,6 +1,6 @@
---- rtpsend.c.orig Tue Sep 10 13:24:10 2002
-+++ rtpsend.c Sat Aug 16 08:58:12 2003
-@@ -353,9 +353,9 @@
+--- rtpsend.c.orig 2016-06-20 15:59:04 UTC
++++ rtpsend.c
+@@ -354,9 +354,9 @@ static int rtcp_rr(node_t *list, char *p
if (strcmp(n->type, "ssrc") == 0)
rr->ssrc = htonl(n->num);
else if (strcmp(n->type, "fraction") == 0)
@@ -13,9 +13,9 @@
else if (strcmp(n->type, "last_seq") == 0)
rr->last_seq = htonl(n->num);
else if (strcmp(n->type, "jit") == 0)
-@@ -919,6 +919,8 @@
- local = (struct in_addr *)host->h_addr_list[0];
- sin.sin_addr = *local;
+@@ -926,6 +926,8 @@ int main(int argc, char *argv[])
+ local = (struct in_addr *)host->h_addr_list[0];
+ sin.sin_addr = *local;
}
+ } else {
+ usage(argv[0]);