/systemd-251/src/resolve/ |
D | resolved-llmnr.c | 165 r = setsockopt_int(s, IPPROTO_IP, IP_MULTICAST_TTL, 255); in manager_llmnr_ipv4_udp_fd() 169 r = setsockopt_int(s, IPPROTO_IP, IP_MULTICAST_LOOP, true); in manager_llmnr_ipv4_udp_fd() 174 r = setsockopt_int(s, IPPROTO_IP, IP_MTU_DISCOVER, IP_PMTUDISC_DONT); in manager_llmnr_ipv4_udp_fd() 187 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in manager_llmnr_ipv4_udp_fd() 196 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in manager_llmnr_ipv4_udp_fd() 236 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 255); in manager_llmnr_ipv6_udp_fd() 240 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, true); in manager_llmnr_ipv6_udp_fd() 244 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_V6ONLY, true); in manager_llmnr_ipv6_udp_fd() 257 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in manager_llmnr_ipv6_udp_fd() 266 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in manager_llmnr_ipv6_udp_fd() [all …]
|
D | resolved-mdns.c | 454 r = setsockopt_int(s, IPPROTO_IP, IP_TTL, 255); in manager_mdns_ipv4_fd() 458 r = setsockopt_int(s, IPPROTO_IP, IP_MULTICAST_TTL, 255); in manager_mdns_ipv4_fd() 462 r = setsockopt_int(s, IPPROTO_IP, IP_MULTICAST_LOOP, true); in manager_mdns_ipv4_fd() 466 r = setsockopt_int(s, IPPROTO_IP, IP_PKTINFO, true); in manager_mdns_ipv4_fd() 470 r = setsockopt_int(s, IPPROTO_IP, IP_RECVTTL, true); in manager_mdns_ipv4_fd() 475 r = setsockopt_int(s, IPPROTO_IP, IP_MTU_DISCOVER, IP_PMTUDISC_DONT); in manager_mdns_ipv4_fd() 489 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in manager_mdns_ipv4_fd() 498 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in manager_mdns_ipv4_fd() 529 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS, 255); in manager_mdns_ipv6_fd() 534 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 255); in manager_mdns_ipv6_fd() [all …]
|
D | resolved-dns-stub.c | 1098 r = setsockopt_int(fd, SOL_SOCKET, SO_REUSEADDR, true); in set_dns_stub_common_socket_options() 1118 …r = setsockopt_int(fd, IPPROTO_TCP, TCP_FASTOPEN, 5); /* Everybody appears to pick qlen=5, let's d… in set_dns_stub_common_tcp_socket_options() 1122 r = setsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, true); in set_dns_stub_common_tcp_socket_options()
|
D | resolved-manager.c | 1662 r = setsockopt_int(fd, IPPROTO_IP, IP_MTU_DISCOVER, IP_PMTUDISC_OMIT); in socket_disable_pmtud() 1675 r = setsockopt_int(fd, IPPROTO_IPV6, IPV6_MTU, IPV6_MIN_MTU); in socket_disable_pmtud()
|
D | resolved-dns-scope.c | 422 r = setsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, true); in dns_scope_socket()
|
/systemd-251/src/libsystemd-network/ |
D | icmp6-util.c | 54 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_MULTICAST_IF, ifindex); in icmp6_bind_router_message() 58 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, false); in icmp6_bind_router_message() 62 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 255); in icmp6_bind_router_message() 66 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_UNICAST_HOPS, 255); in icmp6_bind_router_message() 70 r = setsockopt_int(s, SOL_IPV6, IPV6_RECVHOPLIMIT, true); in icmp6_bind_router_message() 74 r = setsockopt_int(s, SOL_SOCKET, SO_TIMESTAMP, true); in icmp6_bind_router_message()
|
D | dhcp6-network.c | 38 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_V6ONLY, true); in dhcp6_network_bind_udp_socket() 42 r = setsockopt_int(s, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, false); in dhcp6_network_bind_udp_socket() 46 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in dhcp6_network_bind_udp_socket() 50 r = setsockopt_int(s, SOL_SOCKET, SO_TIMESTAMP, true); in dhcp6_network_bind_udp_socket()
|
D | dhcp-network.c | 90 r = setsockopt_int(s, SOL_PACKET, PACKET_AUXDATA, true); in _bind_raw_socket() 175 r = setsockopt_int(s, IPPROTO_IP, IP_TOS, ip_service_type); in dhcp_network_bind_udp_socket() 177 r = setsockopt_int(s, IPPROTO_IP, IP_TOS, IPTOS_CLASS_CS6); in dhcp_network_bind_udp_socket() 181 r = setsockopt_int(s, SOL_SOCKET, SO_REUSEADDR, true); in dhcp_network_bind_udp_socket() 192 r = setsockopt_int(s, SOL_SOCKET, SO_BROADCAST, true); in dhcp_network_bind_udp_socket() 199 r = setsockopt_int(s, IPPROTO_IP, IP_PKTINFO, true); in dhcp_network_bind_udp_socket() 204 r = setsockopt_int(s, IPPROTO_IP, IP_FREEBIND, true); in dhcp_network_bind_udp_socket()
|
/systemd-251/src/shared/ |
D | socket-label.c | 63 r = setsockopt_int(fd, IPPROTO_IPV6, IPV6_V6ONLY, only == SOCKET_ADDRESS_IPV6_ONLY); in socket_address_listen() 76 r = setsockopt_int(fd, SOL_SOCKET, SO_REUSEPORT, true); in socket_address_listen() 94 r = setsockopt_int(fd, SOL_SOCKET, SO_REUSEADDR, true); in socket_address_listen()
|
D | ask-password-api.c | 692 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSCRED, true); in create_socket()
|
/systemd-251/src/basic/ |
D | socket-util.c | 727 r = setsockopt_int(fd, SOL_SOCKET, SO_SNDBUF, n); in fd_set_sndbuf() 739 r = setsockopt_int(fd, SOL_SOCKET, SO_SNDBUFFORCE, n); in fd_set_sndbuf() 758 r = setsockopt_int(fd, SOL_SOCKET, SO_RCVBUF, n); in fd_set_rcvbuf() 770 r = setsockopt_int(fd, SOL_SOCKET, SO_RCVBUFFORCE, n); in fd_set_rcvbuf() 1280 r = setsockopt_int(fd, SOL_SOCKET, SO_BINDTOIFINDEX, ifindex); in socket_bind_to_ifindex() 1337 return setsockopt_int(fd, IPPROTO_IP, IP_PKTINFO, b); in socket_set_recvpktinfo() 1340 return setsockopt_int(fd, IPPROTO_IPV6, IPV6_RECVPKTINFO, b); in socket_set_recvpktinfo() 1343 return setsockopt_int(fd, SOL_NETLINK, NETLINK_PKTINFO, b); in socket_set_recvpktinfo() 1346 return setsockopt_int(fd, SOL_PACKET, PACKET_AUXDATA, b); in socket_set_recvpktinfo() 1388 return setsockopt_int(fd, IPPROTO_IP, opt_ipv4, val); in socket_set_option() [all …]
|
D | socket-util.h | 260 static inline int setsockopt_int(int fd, int level, int optname, int value) { in setsockopt_int() function
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-socket.c | 78 r = setsockopt_int(nl->fd, SOL_NETLINK, NETLINK_PKTINFO, true); in socket_bind() 118 return setsockopt_int(nl->fd, SOL_NETLINK, NETLINK_ADD_MEMBERSHIP, group); in broadcast_group_join() 151 return setsockopt_int(nl->fd, SOL_NETLINK, NETLINK_DROP_MEMBERSHIP, group); in broadcast_group_leave()
|
D | sd-netlink.c | 114 r = setsockopt_int(fd, SOL_NETLINK, NETLINK_EXT_ACK, true); in sd_netlink_open_fd() 118 r = setsockopt_int(fd, SOL_NETLINK, NETLINK_GET_STRICT_CHK, true); in sd_netlink_open_fd()
|
/systemd-251/src/journal/ |
D | journald-native.c | 482 r = setsockopt_int(s->native_fd, SOL_SOCKET, SO_PASSCRED, true); in server_open_native_socket() 487 r = setsockopt_int(s->native_fd, SOL_SOCKET, SO_PASSSEC, true); in server_open_native_socket() 492 r = setsockopt_int(s->native_fd, SOL_SOCKET, SO_TIMESTAMP, true); in server_open_native_socket()
|
D | journald-syslog.c | 482 r = setsockopt_int(s->syslog_fd, SOL_SOCKET, SO_PASSCRED, true); in server_open_syslog_socket() 487 r = setsockopt_int(s->syslog_fd, SOL_SOCKET, SO_PASSSEC, true); in server_open_syslog_socket() 492 r = setsockopt_int(s->syslog_fd, SOL_SOCKET, SO_TIMESTAMP, true); in server_open_syslog_socket()
|
D | journald-audit.c | 536 r = setsockopt_int(s->audit_fd, SOL_SOCKET, SO_PASSCRED, true); in server_open_audit()
|
D | journald-stream.c | 671 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSCRED, true); in stdout_stream_install()
|
/systemd-251/src/core/ |
D | socket.c | 973 r = setsockopt_int(fd, SOL_SOCKET, SO_KEEPALIVE, true); in socket_apply_socket_options() 979 r = setsockopt_int(fd, SOL_TCP, TCP_KEEPIDLE, s->keep_alive_time / USEC_PER_SEC); in socket_apply_socket_options() 985 … r = setsockopt_int(fd, SOL_TCP, TCP_KEEPINTVL, s->keep_alive_interval / USEC_PER_SEC); in socket_apply_socket_options() 991 r = setsockopt_int(fd, SOL_TCP, TCP_KEEPCNT, s->keep_alive_cnt); in socket_apply_socket_options() 997 r = setsockopt_int(fd, SOL_TCP, TCP_DEFER_ACCEPT, s->defer_accept / USEC_PER_SEC); in socket_apply_socket_options() 1004 r = setsockopt_int(fd, SOL_SCTP, SCTP_NODELAY, true); in socket_apply_socket_options() 1008 r = setsockopt_int(fd, SOL_TCP, TCP_NODELAY, true); in socket_apply_socket_options() 1015 r = setsockopt_int(fd, SOL_SOCKET, SO_BROADCAST, true); in socket_apply_socket_options() 1021 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSCRED, true); in socket_apply_socket_options() 1027 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSSEC, true); in socket_apply_socket_options() [all …]
|
/systemd-251/src/udev/ |
D | udev-ctrl.c | 248 r = setsockopt_int(sock, SOL_SOCKET, SO_PASSCRED, true); in udev_ctrl_event_handler()
|
D | udevd.c | 1988 r = setsockopt_int(fd_worker, SOL_SOCKET, SO_PASSCRED, true); in main_loop()
|
/systemd-251/src/timesync/ |
D | timesyncd-manager.c | 660 r = setsockopt_int(m->server_socket, SOL_SOCKET, SO_TIMESTAMPNS, true); in manager_listen_setup() 665 (void) setsockopt_int(m->server_socket, IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY); in manager_listen_setup()
|
/systemd-251/src/libsystemd/sd-device/ |
D | device-monitor.c | 320 r = setsockopt_int(m->sock, SOL_SOCKET, SO_PASSCRED, true); in device_monitor_enable_receiving()
|
/systemd-251/src/import/ |
D | importd.c | 658 r = setsockopt_int(m->notify_fd, SOL_SOCKET, SO_PASSCRED, true); in manager_new()
|
/systemd-251/src/home/ |
D | homed-manager.c | 1189 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSCRED, true); in manager_listen_notify()
|