diff options
author | Bill Fenner <fenner@FreeBSD.org> | 2001-04-22 04:59:46 +0000 |
---|---|---|
committer | Bill Fenner <fenner@FreeBSD.org> | 2001-04-22 04:59:46 +0000 |
commit | cb1b258cb8b17269ee219bb927424337f010501f (patch) | |
tree | 5b2aa9d6881a722589e63c7611a05036529e196a /net/rtptools/files/patch-ad | |
parent | Initial import. (diff) |
Update to rtptools 1.17
Notes
Notes:
svn path=/head/; revision=41786
Diffstat (limited to 'net/rtptools/files/patch-ad')
-rw-r--r-- | net/rtptools/files/patch-ad | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net/rtptools/files/patch-ad b/net/rtptools/files/patch-ad new file mode 100644 index 000000000000..e7bbdd966728 --- /dev/null +++ b/net/rtptools/files/patch-ad @@ -0,0 +1,24 @@ +--- rtpsend.c.orig Fri Apr 6 18:18:26 2001 ++++ rtpsend.c Sat Apr 21 21:59:35 2001 +@@ -351,9 +351,9 @@ + 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) +@@ -899,6 +899,8 @@ + + if (optind < argc) { + if (hpt(argv[optind], (struct sockaddr *)&sin, &ttl) < 0) usage(argv[0]); ++ } else { ++ usage(argv[0]); + } + + /* create/connect sockets */ |