Home
last modified time | relevance | path

Searched refs:IPPROTO_TCP (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/test/
Dtest-parse-helpers.c44 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()
Dtest-firewall-util.c37 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()
Dtest-ip-protocol-list.c44 test_int(IPPROTO_TCP); in TEST()
/systemd-251/src/basic/linux/
Din.h37 IPPROTO_TCP = 6, /* Transmission Control Protocol */ enumerator
38 #define IPPROTO_TCP IPPROTO_TCP macro
/systemd-251/src/shared/
Dip-protocol-list.c70 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()
Dfirewall-util-iptables.c186 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()
Dfirewall-util-nft.c964 if (!IN_SET(protocol, IPPROTO_TCP, IPPROTO_UDP)) in fw_nftables_add_local_dnat_internal()
/systemd-251/src/nspawn/
Dnspawn-expose-ports.c29 protocol = IPPROTO_TCP; in expose_port_parse()
34 protocol = IPPROTO_TCP; in expose_port_parse()
/systemd-251/src/resolve/
Dresolved-llmnr.c332 …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()
Dresolved-dns-server.c264 } else if (protocol == IPPROTO_TCP) { in dns_server_packet_received()
302 else if (protocol == IPPROTO_TCP) { in dns_server_packet_lost()
Dresolved-dns-packet.h131 if (p->ipproto == IPPROTO_TCP) /* we ignore EDNS(0) size data on TCP, like everybody else */ in DNS_PACKET_PAYLOAD_SIZE_MAX()
Dresolved-dns-stub.c1118 …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-dns-stream.c389 s->read_packet->ipproto = IPPROTO_TCP; in on_stream_io()
Dresolved-dns-transaction.c634 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()
Dresolved-dns-scope.c422 r = setsockopt_int(fd, IPPROTO_TCP, TCP_NODELAY, true); in dns_scope_socket()
/systemd-251/src/core/
Ddbus-cgroup.c1935 if (!IN_SET(ip_protocol, 0, IPPROTO_TCP, IPPROTO_UDP)) in bus_cgroup_set_property()