[Asterisk-Dev] More include, IP TOS fixes
Thorsten Lockert
tholo at sigmasoft.com
Thu Apr 24 15:01:17 MST 2003
The following patch makes IP TOS stuff work on more systems.
Index: channels/chan_iax.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax.c,v
retrieving revision 1.5
diff -u -r1.5 chan_iax.c
--- channels/chan_iax.c 23 Apr 2003 20:22:14 -0000 1.5
+++ channels/chan_iax.c 24 Apr 2003 22:06:32 -0000
@@ -32,6 +32,7 @@
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/time.h>
#include <sys/signal.h>
@@ -45,6 +46,10 @@
#include "iax.h"
+#ifndef IPTOS_MINCOST
+#define IPTOS_MINCOST 0x02
+#endif
+
/*
* Uncomment to try experimental IAX bridge optimization,
* designed to reduce latency when IAX calls cannot
Index: channels/chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.14
diff -u -r1.14 chan_iax2.c
--- channels/chan_iax2.c 23 Apr 2003 20:22:14 -0000 1.14
+++ channels/chan_iax2.c 24 Apr 2003 22:06:43 -0000
@@ -34,6 +34,7 @@
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
+#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/time.h>
#include <sys/signal.h>
@@ -52,6 +53,10 @@
#include "iax2.h"
#include "iax2-parser.h"
+#ifndef IPTOS_MINCOST
+#define IPTOS_MINCOST 0x02
+#endif
+
/*
* Uncomment to try experimental IAX bridge optimization,
* designed to reduce latency when IAX calls cannot
Index: channels/chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.89
diff -u -r1.89 chan_sip.c
--- channels/chan_sip.c 23 Apr 2003 20:22:14 -0000 1.89
+++ channels/chan_sip.c 24 Apr 2003 22:07:09 -0000
@@ -45,8 +45,13 @@
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/signal.h>
+#include <netinet/in_systm.h>
#include <netinet/ip.h>
+#ifndef IPTOS_MINCOST
+#define IPTOS_MINCOST 0x02
+#endif
+
/* #define VOCAL_DATA_HACK */
#define SIPDUMPER
--
Thorsten Lockert | tholo at sigmasoft.com | Universe, n.:
2121 N. Lakeshore Dr. | tholo at openbsd.org | The problem.
Chapel Hill, NC 27514 | |
More information about the asterisk-dev
mailing list