Home
last modified time | relevance | path

Searched refs:tcp (Results 1 – 25 of 334) sorted by relevance

12345678910>>...14

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_tcp.c271 seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]); in tcp_print_conntrack()
515 struct ip_ct_tcp *state = &ct->proto.tcp; in tcp_in_window()
753 if (ct->proto.tcp.last_dir != dir && in nf_tcp_handle_invalid()
754 (ct->proto.tcp.last_index == TCP_FIN_SET || in nf_tcp_handle_invalid()
755 ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_tcp_handle_invalid()
769 index, dir, ct->proto.tcp.last_index, timeout); in nf_tcp_handle_invalid()
774 ct->proto.tcp.last_index = index; in nf_tcp_handle_invalid()
775 ct->proto.tcp.last_dir = dir; in nf_tcp_handle_invalid()
856 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new()
858 ct->proto.tcp.seen[0].td_end = in tcp_new()
[all …]
H A Dnft_synproxy.c24 const struct tcphdr *tcp, in nft_synproxy_tcp_options() argument
30 if (tcp->ece && tcp->cwr) in nft_synproxy_tcp_options()
47 const struct tcphdr *tcp, in nft_synproxy_eval_v4() argument
56 if (tcp->syn) { in nft_synproxy_eval_v4()
58 nft_synproxy_tcp_options(opts, tcp, snet, &info, priv); in nft_synproxy_eval_v4()
59 synproxy_send_client_synack(net, skb, tcp, opts); in nft_synproxy_eval_v4()
62 } else if (tcp->ack) { in nft_synproxy_eval_v4()
64 if (synproxy_recv_client_ack(net, skb, tcp, opts, in nft_synproxy_eval_v4()
65 ntohl(tcp->seq))) { in nft_synproxy_eval_v4()
78 const struct tcphdr *tcp, in nft_synproxy_eval_v6() argument
[all …]
H A Dnfnetlink_osf.c171 const struct tcphdr *tcp; in nf_osf_hdr_ctx_init() local
173 tcp = skb_header_pointer(skb, ip_hdrlen(skb), sizeof(struct tcphdr), _tcph); in nf_osf_hdr_ctx_init()
174 if (!tcp) in nf_osf_hdr_ctx_init()
177 if (!tcp->syn) in nf_osf_hdr_ctx_init()
182 ctx->window = ntohs(tcp->window); in nf_osf_hdr_ctx_init()
184 if (tcp->doff * 4 > sizeof(struct tcphdr)) { in nf_osf_hdr_ctx_init()
185 ctx->optsize = tcp->doff * 4 - sizeof(struct tcphdr); in nf_osf_hdr_ctx_init()
193 return tcp; in nf_osf_hdr_ctx_init()
209 const struct tcphdr *tcp; in nf_osf_match() local
214 tcp = nf_osf_hdr_ctx_init(&ctx, skb, ip, opts, &_tcph); in nf_osf_match()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c47 struct tcphdr tcp; member
54 struct tcphdr tcp; member
62 struct tcphdr tcp; member
68 struct tcphdr tcp; member
80 struct tcphdr tcp; member
90 struct tcphdr tcp; member
119 .tcp.doff = 5,
120 .tcp.source = 80,
121 .tcp.dest = 8080,
140 .tcp.doff = 5,
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_pkt_access.c89 struct tcphdr *tcp = NULL; in test_pkt_write_access_subprog() local
94 tcp = data + off; in test_pkt_write_access_subprog()
95 if (tcp + 1 > data_end) in test_pkt_write_access_subprog()
98 tcp->check++; in test_pkt_write_access_subprog()
108 struct tcphdr *tcp = NULL; in test_pkt_access() local
122 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in test_pkt_access()
130 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in test_pkt_access()
139 if (tcp) { in test_pkt_access()
140 if (test_pkt_write_access_subprog(skb, (void *)tcp - data)) in test_pkt_access()
142 if (((void *)(tcp) + 20) > data_end || proto != 6) in test_pkt_access()
[all …]
H A Dxdp_synproxy_kern.c369 struct tcphdr *tcp; member
395 hdr->tcp = (void *)hdr->ipv4 + hdr->ipv4->ihl * 4; in tcp_dissect()
412 hdr->tcp = (void *)hdr->ipv6 + sizeof(*hdr->ipv6); in tcp_dissect()
419 if (hdr->tcp + 1 > data_end) in tcp_dissect()
421 hdr->tcp_len = hdr->tcp->doff * 4; in tcp_dissect()
422 if (hdr->tcp_len < sizeof(*hdr->tcp)) in tcp_dissect()
447 tup.ipv4.sport = hdr->tcp->source; in tcp_lookup()
448 tup.ipv4.dport = hdr->tcp->dest; in tcp_lookup()
453 tup.ipv6.sport = hdr->tcp->source; in tcp_lookup()
454 tup.ipv6.dport = hdr->tcp->dest; in tcp_lookup()
[all …]
H A Dtest_migrate_reuseport.c50 struct tcphdr *tcp = NULL; in drop_ack() local
65 tcp = (struct tcphdr *)((void *)ip + ip->ihl * 4); in drop_ack()
77 tcp = (struct tcphdr *)(ipv6 + 1); in drop_ack()
84 if (tcp + 1 > data_end) in drop_ack()
87 if (tcp->dest != server_port) in drop_ack()
90 if (!tcp->syn && tcp->ack) in drop_ack()
H A Dskb_pkt_end.c32 struct tcphdr *tcp; in main_prog() local
43 tcp = (void*)(ip + 1); in main_prog()
44 if (tcp->dest != 0) in main_prog()
46 if (!tcp) in main_prog()
49 return tcp->urg_ptr; in main_prog()
H A Dbpf_iter_tcp6.c69 static bool tcp_in_initial_slowstart(const struct tcp_sock *tcp) in tcp_in_initial_slowstart() argument
71 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH; in tcp_in_initial_slowstart()
88 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock()
118 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq; in dump_tcp6_sock()
131 tp->tcp.write_seq - tp->tcp.snd_una, rx_queue, in dump_tcp6_sock()
143 tp->tcp.snd_cwnd, in dump_tcp6_sock()
145 : (tcp_in_initial_slowstart(&tp->tcp) ? -1 in dump_tcp6_sock()
146 : tp->tcp.snd_ssthresh) in dump_tcp6_sock()
H A Dxdpwall.c173 static __always_inline bool tcphdr_only_contains_flag(struct tcphdr *tcp, in tcphdr_only_contains_flag() argument
176 return (tcp_flag_word(tcp) & in tcphdr_only_contains_flag()
181 struct tcphdr *tcp) { in set_tcp_flags() argument
182 if (tcphdr_only_contains_flag(tcp, TCP_FLAG_SYN)) in set_tcp_flags()
184 else if (tcphdr_only_contains_flag(tcp, TCP_FLAG_ACK)) in set_tcp_flags()
186 else if (tcphdr_only_contains_flag(tcp, TCP_FLAG_RST)) in set_tcp_flags()
193 struct tcphdr *tcp = transport_hdr; in parse_tcp() local
195 if (tcp + 1 > data_end) in parse_tcp()
198 info->sport = bpf_ntohs(tcp->source); in parse_tcp()
199 info->dport = bpf_ntohs(tcp->dest); in parse_tcp()
[all …]
H A Dtest_assign_reuse.c20 struct tcphdr tcp; member
39 if (ctx->data + sizeof(headers.tcp) > ctx->data_end) in reuse_accept()
42 if (__builtin_memcmp(&headers.tcp, ctx->data, sizeof(headers.tcp)) != 0) in reuse_accept()
89 __builtin_memcpy(&headers.tcp, th, sizeof(headers.tcp)); in maybe_assign_tcp()
H A Dfexit_bpf2bpf.c162 struct tcphdr *tcp; in new_test_pkt_write_access_subprog() local
167 tcp = data + off; in new_test_pkt_write_access_subprog()
168 if (tcp + 1 > data_end) in new_test_pkt_write_access_subprog()
172 tcp->check++; in new_test_pkt_write_access_subprog()
173 tcp->syn = 0; in new_test_pkt_write_access_subprog()
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-bridge/
H A D50-gbmc-br-cn-redirect.rules15 tcp dport 10167-10168 mark set 0xff
16 mark 1 tcp dport 10166 tcp dport set 10167 notrack
17 mark 2 tcp dport 10166 tcp dport set 10168 notrack
21 tcp sport 10167 tcp sport set 10166 notrack
22 tcp sport 10168 tcp sport set 10166 notrack
/openbmc/qemu/tests/qemu-iotests/
H A D083.out4 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
8 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
12 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
16 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
20 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
24 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
28 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
32 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
36 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
40 qemu-io: can't open device nbd+tcp://127.0.0.1:PORT/foo
[all …]
/openbmc/bmcweb/http/
H A Dapp.hpp35 using ssl_socket_t = boost::asio::ssl::stream<boost::asio::ip::tcp::socket>;
36 using raw_socket_t = boost::asio::ip::tcp::socket;
87 std::optional<boost::asio::ip::tcp::acceptor> setupSocket() in setupSocket()
103 return boost::asio::ip::tcp::acceptor( in setupSocket()
104 *io, boost::asio::ip::tcp::v6(), SD_LISTEN_FDS_START); in setupSocket()
111 return boost::asio::ip::tcp::acceptor( in setupSocket()
112 *io, boost::asio::ip::tcp::endpoint( in setupSocket()
120 std::optional<boost::asio::ip::tcp::acceptor> acceptor = setupSocket(); in run()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dct_fs_smfs.c47 mlx5_ct_fs_smfs_fill_mask(struct mlx5_ct_fs *fs, struct mlx5_flow_spec *spec, bool ipv4, bool tcp, in mlx5_ct_fs_smfs_fill_mask() argument
76 if (likely(tcp)) { in mlx5_ct_fs_smfs_fill_mask()
91 bool tcp, bool gre, u32 priority) in mlx5_ct_fs_smfs_matcher_create() argument
100 mlx5_ct_fs_smfs_fill_mask(fs, spec, ipv4, tcp, gre); in mlx5_ct_fs_smfs_matcher_create()
112 mlx5_ct_fs_smfs_matcher_get(struct mlx5_ct_fs *fs, bool nat, bool ipv4, bool tcp, bool gre) in mlx5_ct_fs_smfs_matcher_get() argument
123 smfs_matcher = &matchers->smfs_matchers[ipv4 * 3 + tcp * 2 + gre]; in mlx5_ct_fs_smfs_matcher_get()
149 dr_matcher = mlx5_ct_fs_smfs_matcher_create(fs, tbl, ipv4, tcp, gre, prio); in mlx5_ct_fs_smfs_matcher_get()
153 nat, ipv4, tcp, gre, PTR_ERR(dr_matcher)); in mlx5_ct_fs_smfs_matcher_get()
252 struct flow_match_tcp tcp; in mlx5_ct_fs_smfs_ct_validate_flow_rule() local
267 flow_rule_match_tcp(flow_rule, &tcp); in mlx5_ct_fs_smfs_ct_validate_flow_rule()
[all …]
/openbmc/linux/samples/bpf/
H A Dparse_varlen.c22 static int tcp(void *data, uint64_t tp_off, void *data_end) in tcp() function
24 struct tcphdr *tcp = data + tp_off; in tcp() local
26 if (tcp + 1 > data_end) in tcp()
28 if (tcp->dest == htons(80) || tcp->source == htons(80)) in tcp()
72 return tcp(data, nh_off + ihl_len, data_end); in parse_ipv4()
106 return tcp(data, nh_off + ihl_len, data_end); in parse_ipv6()
/openbmc/bmcweb/http/routing/
H A Dsserule.hpp43 boost::asio::ip::tcp::socket&& adaptor) override in handleUpgrade()
46 crow::sse_socket::ConnectionImpl<boost::asio::ip::tcp::socket>> in handleUpgrade()
48 crow::sse_socket::ConnectionImpl<boost::asio::ip::tcp::socket>>( in handleUpgrade()
54 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>&& in handleUpgrade()
58 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>> in handleUpgrade()
60 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>>( in handleUpgrade()
H A Dwebsocketrule.hpp40 boost::asio::ip::tcp::socket&& adaptor) override in handleUpgrade()
44 crow::websocket::ConnectionImpl<boost::asio::ip::tcp::socket>> in handleUpgrade()
46 crow::websocket::ConnectionImpl<boost::asio::ip::tcp::socket>>( in handleUpgrade()
54 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>&& in handleUpgrade()
59 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>> in handleUpgrade()
61 boost::asio::ssl::stream<boost::asio::ip::tcp::socket>>>( in handleUpgrade()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/gensio/
H A Dgensio_2.8.7.bb16 PACKAGECONFIG ??= "openssl tcp-wrappers"
19 PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers, tcp-wrappers"
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/rsyslog/librelp/
H A D0001-tcp-fix-some-compiler-warnings-with-enable-tls-opens.patch4 Subject: [PATCH] tcp: fix some compiler warnings with enable-tls-openssl
10 | ../../git/src/tcp.c:3765:1: error: no previous declaration for 'relpTcpGetRtryDirection_gtls' [-W…
13 | ../../git/src/tcp.c:3583:1: error: 'relpTcpChkPeerName' defined but not used [-Werror=unused-func…
28 src/tcp.c | 11 ++++-------
31 diff --git a/src/tcp.c b/src/tcp.c
33 --- a/src/tcp.c
34 +++ b/src/tcp.c
/openbmc/linux/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_cm.c54 struct tcphdr *tcp = (struct tcphdr *) in cxgb_get_4tuple() local
60 ntohs(tcp->source), ntohs(tcp->dest)); in cxgb_get_4tuple()
67 ntohs(tcp->source), ntohs(tcp->dest)); in cxgb_get_4tuple()
72 *peer_port = tcp->source; in cxgb_get_4tuple()
73 *local_port = tcp->dest; in cxgb_get_4tuple()
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dsch_red.sh276 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
289 -a own -b $h3_mac -t tcp -q tos=0x01 &
312 -a own -b $h3_mac -t tcp -q tos=0x01 &
338 -a own -b $h3_mac -t tcp -q tos=0x01 &
342 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01)
350 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
412 -a own -b $h3_mac -t tcp -q tos=0x01 &
418 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01)
423 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
/openbmc/linux/net/ipv4/netfilter/
H A Dnf_nat_h323.c290 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_t120()
310 ntohs(exp->tuple.src.u.tcp.port), in nat_t120()
312 ntohs(exp->tuple.dst.u.tcp.port)); in nat_t120()
329 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_h245()
357 ntohs(exp->tuple.src.u.tcp.port), in nat_h245()
359 ntohs(exp->tuple.dst.u.tcp.port)); in nat_h245()
408 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_q931()
449 ntohs(exp->tuple.src.u.tcp.port), in nat_q931()
451 ntohs(exp->tuple.dst.u.tcp.port)); in nat_q931()
492 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_callforwarding()
[all …]
/openbmc/linux/tools/testing/selftests/netfilter/
H A Dconntrack_tcp_unreplied.sh97 ct state new tcp flags syn ip daddr 10.99.99.99 tcp dport 80 counter name "connreq" accept
98 ct state new ct status dnat tcp dport 8080 counter name "redir" accept
121 ip daddr 10.99.99.99 tcp dport 80 redirect to :8080
130 count=$(ip netns exec $ns2 conntrack -L -p tcp --dport 80 2>/dev/null | wc -l)
142 count=$(ip netns exec $ns2 conntrack -L -p tcp --reply-port-src 8080 2>/dev/null | wc -l)

12345678910>>...14