mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 14:40:31 +00:00
timesyncd: don't attempt to call IP_TOS sockopt on IPv6 sockets
This commit is contained in:
@@ -647,7 +647,8 @@ static int manager_listen_setup(Manager *m) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
(void) setsockopt_int(m->server_socket, IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY);
|
||||
if (addr.sa.sa_family == AF_INET)
|
||||
(void) setsockopt_int(m->server_socket, IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY);
|
||||
|
||||
return sd_event_add_io(m->event, &m->event_receive, m->server_socket, EPOLLIN, manager_receive_response, m);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user