38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
Index: rtp.h
|
|
--- 1.1.1.2 1997/12/17 03:37:05
|
|
+++ rtp.h 1997/12/17 04:26:01
|
|
@@ -93,13 +93,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 */
|
|
===================================================================
|
|
Index: rtpsend.c
|
|
--- 1.1.1.2 1997/12/17 03:37:11
|
|
+++ rtpsend.c 1997/12/17 04:25:11
|
|
@@ -599,6 +599,8 @@
|
|
|
|
if (optind < argc) {
|
|
if (hpt(argv[optind], (struct sockaddr *)&sin, &ttl) < 0) usage(argv[0]);
|
|
+ } else {
|
|
+ usage(argv[0]);
|
|
}
|
|
|
|
/* create/connect sockets */
|