61 lines
2.5 KiB
Plaintext
61 lines
2.5 KiB
Plaintext
*** rtpdump.c.orig Thu Aug 7 13:13:53 1997
|
|
--- rtpdump.c Wed Sep 9 19:06:02 1998
|
|
***************
|
|
*** 36,44 ****
|
|
#include <stdio.h>
|
|
#include <signal.h>
|
|
#include <errno.h>
|
|
- #if !defined(nextstep)
|
|
- #include <values.h>
|
|
- #endif
|
|
#include <unistd.h> /* select(), perror() */
|
|
#include <stdlib.h> /* getopt(), atoi() */
|
|
#include <math.h> /* fmod() */
|
|
--- 36,41 ----
|
|
***************
|
|
*** 395,404 ****
|
|
ntohl(r->r.sr.psent),
|
|
ntohl(r->r.sr.osent));
|
|
for (i = 0; i < r->common.count; i++) {
|
|
! printf(" (ssrc=%0lx fraction=%g lost=%lu last_seq=%lu jit=%lu lsr=%lu dlsr=%lu)\n",
|
|
ntohl(r->r.sr.rr[i].ssrc),
|
|
! r->r.sr.rr[i].fraction / 256.,
|
|
! ntohl(r->r.sr.rr[i].lost), /* XXX I'm pretty sure this is wrong */
|
|
ntohl(r->r.sr.rr[i].last_seq),
|
|
ntohl(r->r.sr.rr[i].jitter),
|
|
ntohl(r->r.sr.rr[i].lsr),
|
|
--- 392,401 ----
|
|
ntohl(r->r.sr.psent),
|
|
ntohl(r->r.sr.osent));
|
|
for (i = 0; i < r->common.count; i++) {
|
|
! printf(" (ssrc=0x%lx fraction=%g lost=%ld last_seq=%lu jit=%lu lsr=%lu dlsr=%lu)\n",
|
|
ntohl(r->r.sr.rr[i].ssrc),
|
|
! RTCP_FRACTION(ntohl(r->r.sr.rr[i].fraclost)) / 256.,
|
|
! RTCP_LOST(ntohl(r->r.sr.rr[i].fraclost)),
|
|
ntohl(r->r.sr.rr[i].last_seq),
|
|
ntohl(r->r.sr.rr[i].jitter),
|
|
ntohl(r->r.sr.rr[i].lsr),
|
|
***************
|
|
*** 412,421 ****
|
|
ntohl(r->r.rr.ssrc), r->common.p, r->common.count,
|
|
ntohs(r->common.length));
|
|
for (i = 0; i < r->common.count; i++) {
|
|
! printf("(ssrc=%0lx fraction=%g lost=%lu last_seq=%lu jit=%lu lsr=%lu dlsr=%lu)\n",
|
|
ntohl(r->r.rr.rr[i].ssrc),
|
|
! r->r.rr.rr[i].fraction / 256.,
|
|
! ntohl(r->r.rr.rr[i].lost),
|
|
ntohl(r->r.rr.rr[i].last_seq),
|
|
ntohl(r->r.rr.rr[i].jitter),
|
|
ntohl(r->r.rr.rr[i].lsr),
|
|
--- 409,418 ----
|
|
ntohl(r->r.rr.ssrc), r->common.p, r->common.count,
|
|
ntohs(r->common.length));
|
|
for (i = 0; i < r->common.count; i++) {
|
|
! printf(" (ssrc=0x%lx fraction=%g lost=%ld last_seq=%lu jit=%lu lsr=%lu dlsr=%lu)\n",
|
|
ntohl(r->r.rr.rr[i].ssrc),
|
|
! RTCP_FRACTION(ntohl(r->r.rr.rr[i].fraclost)) / 256.,
|
|
! RTCP_LOST(ntohl(r->r.rr.rr[i].fraclost)),
|
|
ntohl(r->r.rr.rr[i].last_seq),
|
|
ntohl(r->r.rr.rr[i].jitter),
|
|
ntohl(r->r.rr.rr[i].lsr),
|