fixes for TOS

This commit is contained in:
mom040267 2015-02-04 08:10:18 +00:00
parent 2e0b8aefcc
commit 1afe1e977b
2 changed files with 5 additions and 0 deletions

View File

@ -762,6 +762,9 @@ static int create_server_socket(dtls_listener_relay_server_type* server, int rep
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO,"Cannot bind listener socket to device %s\n",server->ifname);
}
set_raw_socket_ttl_options(udp_listen_fd, server->addr.ss.sa_family);
set_raw_socket_tos_options(udp_listen_fd, server->addr.ss.sa_family);
{
const int max_binding_time = 60;
int addr_bind_cycle = 0;

View File

@ -1605,6 +1605,8 @@ ioa_socket_handle detach_ioa_socket(ioa_socket_handle s)
close(udp_fd);
return ret;
}
set_raw_socket_ttl_options(udp_fd, s->local_addr.ss.sa_family);
set_raw_socket_tos_options(udp_fd, s->local_addr.ss.sa_family);
}
detach_socket_net_data(s);