Home
last modified time | relevance | path

Searched refs:setsockopt_int (Results 1 – 25 of 27) sorted by relevance

12

/systemd-251/src/resolve/
Dresolved-llmnr.c165 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 …]
Dresolved-mdns.c454 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 …]
Dresolved-dns-stub.c1098 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()
Dresolved-manager.c1662 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()
Dresolved-dns-scope.c422 r = setsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, true); in dns_scope_socket()
/systemd-251/src/libsystemd-network/
Dicmp6-util.c54 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()
Ddhcp6-network.c38 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()
Ddhcp-network.c90 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/
Dsocket-label.c63 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()
Dask-password-api.c692 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSCRED, true); in create_socket()
/systemd-251/src/basic/
Dsocket-util.c727 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 …]
Dsocket-util.h260 static inline int setsockopt_int(int fd, int level, int optname, int value) { in setsockopt_int() function
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-socket.c78 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()
Dsd-netlink.c114 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/
Djournald-native.c482 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()
Djournald-syslog.c482 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()
Djournald-audit.c536 r = setsockopt_int(s->audit_fd, SOL_SOCKET, SO_PASSCRED, true); in server_open_audit()
Djournald-stream.c671 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSCRED, true); in stdout_stream_install()
/systemd-251/src/core/
Dsocket.c973 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/
Dudev-ctrl.c248 r = setsockopt_int(sock, SOL_SOCKET, SO_PASSCRED, true); in udev_ctrl_event_handler()
Dudevd.c1988 r = setsockopt_int(fd_worker, SOL_SOCKET, SO_PASSCRED, true); in main_loop()
/systemd-251/src/timesync/
Dtimesyncd-manager.c660 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/
Ddevice-monitor.c320 r = setsockopt_int(m->sock, SOL_SOCKET, SO_PASSCRED, true); in device_monitor_enable_receiving()
/systemd-251/src/import/
Dimportd.c658 r = setsockopt_int(m->notify_fd, SOL_SOCKET, SO_PASSCRED, true); in manager_new()
/systemd-251/src/home/
Dhomed-manager.c1189 r = setsockopt_int(fd, SOL_SOCKET, SO_PASSCRED, true); in manager_listen_notify()

12