fixes for TOS
This commit is contained in:
parent
2e0b8aefcc
commit
1afe1e977b
@ -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;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user