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-rtp.h | |
| 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)
Diffstat (limited to 'net/rtptools/files/patch-rtp.h')
| -rw-r--r-- | net/rtptools/files/patch-rtp.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net/rtptools/files/patch-rtp.h b/net/rtptools/files/patch-rtp.h new file mode 100644 index 000000000000..c1d142b4a914 --- /dev/null +++ b/net/rtptools/files/patch-rtp.h @@ -0,0 +1,23 @@ +--- rtp.h.orig Thu Mar 9 07:35:26 2000 ++++ rtp.h Sat Apr 21 21:52:49 2001 +@@ -110,13 +110,18 @@ + #define RTCP_VALID_MASK (0xc000 | 0x2000 | 0xfe) + #define RTCP_VALID_VALUE ((RTP_VERSION << 14) | RTCP_SR) + ++#define RTCP_FRACTION(x) (((x) >> 24) & 0xFF) ++#define RTCP_LOST(x) ((((x) & 0xFFFFFF) < 0x800000) ? \ ++ ((x) & 0xFFFFFF) \ ++ : (((x) & 0xFFFFFF) - 0x1000000)) ++ + /* + * Reception report block + */ + typedef struct { + u_int32 ssrc; /* data source being reported */ +- unsigned int fraction:8; /* fraction lost since last SR/RR */ +- int lost:24; /* cumul. no. pkts lost (signed!) */ ++ u_int32 fraclost; /* fraction lost since last SR/RR and */ ++ /* cumul. no. pkts lost (signed!) */ + u_int32 last_seq; /* extended last seq. no. received */ + u_int32 jitter; /* interarrival jitter */ + u_int32 lsr; /* last SR packet from this source */ |
