summaryrefslogtreecommitdiff
path: root/net/rtptools/files/patch-rtpsend.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-01-21 20:48:12 +0000
committerStefan Eßer <se@FreeBSD.org>2020-01-21 20:48:12 +0000
commit638dad5ddd9d898d54465db7bfc115a80620cb45 (patch)
treed50996a031f26fadbb058902669df0562cbf8a24 /net/rtptools/files/patch-rtpsend.c
parentResurrect tcptrace (diff)
Resurrect rtptools
This port has been deleted on 2019-10-16 as un-fetchable, but there is a repository on GitHub that provides the sources as last used by the port. Approved by: antoine (mentor)
Notes
Notes: svn path=/head/; revision=523740
Diffstat (limited to 'net/rtptools/files/patch-rtpsend.c')
-rw-r--r--net/rtptools/files/patch-rtpsend.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/net/rtptools/files/patch-rtpsend.c b/net/rtptools/files/patch-rtpsend.c
new file mode 100644
index 000000000000..1153d0816ca1
--- /dev/null
+++ b/net/rtptools/files/patch-rtpsend.c
@@ -0,0 +1,24 @@
+--- 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)
+- rr->fraction = (n->num)*256;
+- else if (strcmp(n->type, "lost") == 0) /* PP: alignment OK? */
+- rr->lost = htonl(n->num);
++ rr->fraclost = htonl((ntohl(rr->fraclost) & 0x00ffffff) | ((n->num)*256 << 24));
++ else if (strcmp(n->type, "lost") == 0)
++ rr->fraclost = htonl((ntohl(rr->fraclost) & 0xff000000) | n->num);
+ else if (strcmp(n->type, "last_seq") == 0)
+ rr->last_seq = htonl(n->num);
+ else if (strcmp(n->type, "jit") == 0)
+@@ -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]);
+ }
+
+ /* create/connect sockets */