diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 01:59:16 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 01:59:16 +0000 |
commit | 69ea23ed7175d5c34a21bba1ef9262f311c69284 (patch) | |
tree | e2e604e83659be7f58596e80b3cf18e9d7d06dae /net/rtptools/files/patch-rtpsend.c | |
parent | Stage net-mgmt/routers2 and cleanup (diff) |
Rename net/ patch-xy patches to reflect the files they modify.
Approve by: portmgr (not really, but one of these is modifying
an unstaged port)
Notes
Notes:
svn path=/head/; revision=363285
Diffstat (limited to 'net/rtptools/files/patch-rtpsend.c')
-rw-r--r-- | net/rtptools/files/patch-rtpsend.c | 27 |
1 files changed, 27 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..130804a6b732 --- /dev/null +++ b/net/rtptools/files/patch-rtpsend.c @@ -0,0 +1,27 @@ + +$FreeBSD$ + +--- rtpsend.c.orig Tue Sep 10 13:24:10 2002 ++++ rtpsend.c Sat Aug 16 08:58:12 2003 +@@ -353,9 +353,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) +@@ -919,6 +919,8 @@ + local = (struct in_addr *)host->h_addr_list[0];
+ sin.sin_addr = *local;
+ } ++ } else { ++ usage(argv[0]); + } + + /* create/connect sockets */ |