From 3d2428efd418ec960c90725ad9588056ace5ec5c Mon Sep 17 00:00:00 2001 From: russell Date: Mon, 30 Apr 2007 16:16:26 +0000 Subject: Add support for setting the CoS for VLAN traffic (802.1p) in Linux. The file doc/qos.tex has been updated to document the new functionality. (issue #9540, patch submitted by IgorG) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@62457 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_dundi.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'pbx/pbx_dundi.c') diff --git a/pbx/pbx_dundi.c b/pbx/pbx_dundi.c index ee28d596f..16cf4eb2a 100644 --- a/pbx/pbx_dundi.c +++ b/pbx/pbx_dundi.c @@ -68,6 +68,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/sched.h" #include "asterisk/io.h" #include "asterisk/utils.h" +#include "asterisk/netsock.h" #include "asterisk/crypto.h" #include "asterisk/astdb.h" #include "asterisk/acl.h" @@ -4763,12 +4764,8 @@ static int load_module(void) ast_inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), strerror(errno)); return AST_MODULE_LOAD_FAILURE; } - - if (option_verbose > 1) - ast_verbose(VERBOSE_PREFIX_2 "Using TOS bits %d\n", tos); - - if (setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))) - ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos); + + ast_netsock_set_qos(netsocket, tos, 0); if (start_network_thread()) { ast_log(LOG_ERROR, "Unable to start network thread\n"); -- cgit v1.2.3