/systemd-251/src/test/ |
D | test-parse-helpers.c | 44 test_valid_item("tcp", AF_UNSPEC, IPPROTO_TCP, 0, 0); in TEST() 46 test_valid_item("tcp:any", AF_UNSPEC, IPPROTO_TCP, 0, 0); in TEST() 52 test_valid_item("ipv4:tcp", AF_INET, IPPROTO_TCP, 0, 0); in TEST() 54 test_valid_item("ipv6:tcp", AF_INET6, IPPROTO_TCP, 0, 0); in TEST() 58 test_valid_item("tcp:6666", AF_UNSPEC, IPPROTO_TCP, 1, 6666); in TEST() 60 test_valid_item("ipv4:tcp:6666", AF_INET, IPPROTO_TCP, 1, 6666); in TEST() 61 test_valid_item("ipv6:tcp:6666", AF_INET6, IPPROTO_TCP, 1, 6666); in TEST() 63 test_valid_item("ipv6:tcp:any", AF_INET6, IPPROTO_TCP, 0, 0); in TEST()
|
D | test-firewall-util.c | 37 r = fw_add_local_dnat(&ctx, true, AF_INET6, IPPROTO_TCP, 4711, &u1, 815, NULL); in test_v6() 44 assert_se(fw_add_local_dnat(&ctx, true, AF_INET6, IPPROTO_TCP, 4711, &u2, 815, &u1) >= 0); in test_v6() 45 assert_se(fw_add_local_dnat(&ctx, false, AF_INET6, IPPROTO_TCP, 4711, &u2, 815, NULL) >= 0); in test_v6() 90 …assert_se(fw_add_local_dnat(&ctx, true, AF_INET, IPPROTO_TCP, 4711, parse_addr("1.2.3.4", &u), 815… in test_v4() 91 …assert_se(fw_add_local_dnat(&ctx, true, AF_INET, IPPROTO_TCP, 4711, parse_addr("1.2.3.4", &u), 815… in test_v4() 92 …assert_se(fw_add_local_dnat(&ctx, true, AF_INET, IPPROTO_TCP, 4711, parse_addr("1.2.3.5", &u), 815… in test_v4() 93 …assert_se(fw_add_local_dnat(&ctx, false, AF_INET, IPPROTO_TCP, 4711, parse_addr("1.2.3.5", &u), 81… in test_v4()
|
D | test-ip-protocol-list.c | 44 test_int(IPPROTO_TCP); in TEST()
|
/systemd-251/src/basic/linux/ |
D | in.h | 37 IPPROTO_TCP = 6, /* Transmission Control Protocol */ enumerator 38 #define IPPROTO_TCP IPPROTO_TCP macro
|
/systemd-251/src/shared/ |
D | ip-protocol-list.c | 70 return IN_SET(id, IPPROTO_TCP, IPPROTO_UDP) ? in ip_protocol_to_tcp_udp() 76 return IN_SET(id, IPPROTO_TCP, IPPROTO_UDP) ? id : -EINVAL; in ip_protocol_from_tcp_udp()
|
D | firewall-util-iptables.c | 186 if (!IN_SET(protocol, IPPROTO_TCP, IPPROTO_UDP)) in fw_iptables_add_local_dnat() 205 if (protocol == IPPROTO_TCP) in fw_iptables_add_local_dnat() 229 if (protocol == IPPROTO_TCP) { in fw_iptables_add_local_dnat() 268 if (protocol == IPPROTO_TCP) in fw_iptables_add_local_dnat()
|
D | firewall-util-nft.c | 964 if (!IN_SET(protocol, IPPROTO_TCP, IPPROTO_UDP)) in fw_nftables_add_local_dnat_internal()
|
/systemd-251/src/nspawn/ |
D | nspawn-expose-ports.c | 29 protocol = IPPROTO_TCP; in expose_port_parse() 34 protocol = IPPROTO_TCP; in expose_port_parse()
|
/systemd-251/src/resolve/ |
D | resolved-llmnr.c | 332 …r = setsockopt_int(fd, IPPROTO_TCP, TCP_FASTOPEN, 5); /* Everybody appears to pick qlen=5, let's d… in set_llmnr_common_tcp_socket_options() 336 r = setsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, true); in set_llmnr_common_tcp_socket_options()
|
D | resolved-dns-server.c | 264 } else if (protocol == IPPROTO_TCP) { in dns_server_packet_received() 302 else if (protocol == IPPROTO_TCP) { in dns_server_packet_lost()
|
D | resolved-dns-packet.h | 131 if (p->ipproto == IPPROTO_TCP) /* we ignore EDNS(0) size data on TCP, like everybody else */ in DNS_PACKET_PAYLOAD_SIZE_MAX()
|
D | resolved-dns-stub.c | 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-dns-stream.c | 389 s->read_packet->ipproto = IPPROTO_TCP; in on_stream_io()
|
D | resolved-dns-transaction.c | 634 dns_server_packet_lost(t->server, IPPROTO_TCP, t->current_feature_level); in on_stream_complete() 1105 if (p->ipproto == IPPROTO_TCP) { in dns_transaction_process_reply() 1535 …dns_server_packet_lost(t->server, t->stream ? IPPROTO_TCP : IPPROTO_UDP, t->current_feature_level); in on_transaction_timeout()
|
D | resolved-dns-scope.c | 422 r = setsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, true); in dns_scope_socket()
|
/systemd-251/src/core/ |
D | dbus-cgroup.c | 1935 if (!IN_SET(ip_protocol, 0, IPPROTO_TCP, IPPROTO_UDP)) in bus_cgroup_set_property()
|