Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/comms/echolinux/files/patch-echolinux_rtpacket.c
18157 views
1
--- echolinux/rtpacket.c.orig 2002-12-22 03:10:48 UTC
2
+++ echolinux/rtpacket.c
3
@@ -1,4 +1,8 @@
4
#include <stdio.h>
5
+#include <stdlib.h>
6
+#include <string.h>
7
+#include <strings.h>
8
+#include <arpa/inet.h>
9
#include "rtp.h"
10
#include "rtpacket.h"
11
12
@@ -11,6 +15,16 @@ extern char callsign[], name[];
13
14
/*************** RTP_MAKE_SDES *************/
15
16
+static unsigned char *ap;
17
+static void addSDES(unsigned char item, char *text)
18
+{
19
+ int l;
20
+ *ap++ = item;
21
+ *ap++ = l = strlen(text);
22
+ bcopy(text, ap, l);
23
+ ap += l;
24
+}
25
+
26
int rtp_make_sdes(pkt, ssrc_i, strict)
27
char **pkt;
28
unsigned long ssrc_i;
29
@@ -19,20 +33,11 @@ int rtp_make_sdes(pkt, ssrc_i, strict)
30
unsigned char zp[1500];
31
unsigned char *p = zp;
32
rtcp_t *rp;
33
- unsigned char *ap;
34
char *sp, *ep;
35
char line[180];
36
int l, hl, i;
37
struct passwd *pw;
38
char s[256], ev[1024];
39
-
40
- void addSDES(unsigned char item, char *text){
41
- *ap++ = item;
42
- *ap++ = l = strlen(text);
43
- bcopy(text, ap, l);
44
- ap += l;
45
- }
46
-
47
48
hl = 0;
49
if (strict) {
50
51