Home
last modified time | relevance | path

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

12345678910>>...13

/OK3568_Linux_fs/buildroot/system/skeleton/etc/
H A Dservices12 tcpmux 1/tcp # TCP port service multiplexer
13 echo 7/tcp
15 discard 9/tcp sink null
17 systat 11/tcp users
18 daytime 13/tcp
20 netstat 15/tcp
21 qotd 17/tcp quote
22 msp 18/tcp # message send protocol
24 chargen 19/tcp ttytst source
26 ftp-data 20/tcp
[all …]
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnf_conntrack_proto_tcp.c279 seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]); in tcp_print_conntrack()
772 const struct ip_ct_tcp_state *sender = &ct->proto.tcp.seen[0]; in tcp_new()
773 const struct ip_ct_tcp_state *receiver = &ct->proto.tcp.seen[1]; in tcp_new()
785 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new()
787 ct->proto.tcp.seen[0].td_end = in tcp_new()
790 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window); in tcp_new()
791 if (ct->proto.tcp.seen[0].td_maxwin == 0) in tcp_new()
792 ct->proto.tcp.seen[0].td_maxwin = 1; in tcp_new()
793 ct->proto.tcp.seen[0].td_maxend = in tcp_new()
794 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 …]
H A Dnf_nat_amanda.c39 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help()
47 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help()
50 exp->tuple.dst.u.tcp.port = htons(port); in help()
H A Dnf_conntrack_proto.c249 tuple.src.u.tcp.port = inet->inet_sport; in getorigdst()
251 tuple.dst.u.tcp.port = inet->inet_dport; in getorigdst()
276 .tuple.dst.u.tcp.port; in getorigdst()
290 &tuple.src.u3.ip, ntohs(tuple.src.u.tcp.port), in getorigdst()
291 &tuple.dst.u3.ip, ntohs(tuple.dst.u.tcp.port)); in getorigdst()
318 tuple.src.u.tcp.port = inet->inet_sport; in ipv6_getorigdst()
320 tuple.dst.u.tcp.port = inet->inet_dport; in ipv6_getorigdst()
336 &tuple.src.u3.ip6, ntohs(tuple.src.u.tcp.port), in ipv6_getorigdst()
337 &tuple.dst.u3.ip6, ntohs(tuple.dst.u.tcp.port)); in ipv6_getorigdst()
344 sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u.tcp.port; in ipv6_getorigdst()
[all …]
H A Dnf_nat_irc.c47 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in help()
52 for (port = ntohs(exp->saved_proto.tcp.port); port != 0; port++) { in help()
55 exp->tuple.dst.u.tcp.port = htons(port); in help()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c44 struct tcphdr tcp; member
51 struct tcphdr tcp; member
59 struct tcphdr tcp; member
65 struct tcphdr tcp; member
77 struct tcphdr tcp; member
87 struct tcphdr tcp; member
115 .tcp.doff = 5,
116 .tcp.source = 80,
117 .tcp.dest = 8080,
135 .tcp.doff = 5,
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dtest_pkt_access.c87 struct tcphdr *tcp = NULL; in test_pkt_write_access_subprog() local
92 tcp = data + off; in test_pkt_write_access_subprog()
93 if (tcp + 1 > data_end) in test_pkt_write_access_subprog()
96 tcp->check++; in test_pkt_write_access_subprog()
106 struct tcphdr *tcp = NULL; in test_pkt_access() local
120 tcp = (struct tcphdr *)((void *)(iph) + ihl_len); in test_pkt_access()
128 tcp = (struct tcphdr *)((void *)(ip6h) + ihl_len); in test_pkt_access()
137 if (tcp) { in test_pkt_access()
138 if (test_pkt_write_access_subprog(skb, (void *)tcp - data)) in test_pkt_access()
140 if (((void *)(tcp) + 20) > data_end || proto != 6) in test_pkt_access()
[all …]
H A Dbpf_iter_tcp6.c70 static bool tcp_in_initial_slowstart(const struct tcp_sock *tcp) in tcp_in_initial_slowstart() argument
72 return tcp->snd_ssthresh >= TCP_INFINITE_SSTHRESH; in tcp_in_initial_slowstart()
89 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock()
119 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq; in dump_tcp6_sock()
132 tp->tcp.write_seq - tp->tcp.snd_una, rx_queue, in dump_tcp6_sock()
144 tp->tcp.snd_cwnd, in dump_tcp6_sock()
146 : (tcp_in_initial_slowstart(&tp->tcp) ? -1 in dump_tcp6_sock()
147 : tp->tcp.snd_ssthresh) in dump_tcp6_sock()
H A Dfexit_bpf2bpf.c164 struct tcphdr *tcp; in new_test_pkt_write_access_subprog() local
169 tcp = data + off; in new_test_pkt_write_access_subprog()
170 if (tcp + 1 > data_end) in new_test_pkt_write_access_subprog()
174 tcp->check++; in new_test_pkt_write_access_subprog()
175 tcp->syn = 0; in new_test_pkt_write_access_subprog()
H A Dtest_sk_assign.c44 get_tuple(struct __sk_buff *skb, bool *ipv4, bool *tcp) in get_tuple() argument
86 *tcp = (proto == IPPROTO_TCP); in get_tuple()
167 bool tcp = false; in bpf_sk_assign_test() local
171 tuple = get_tuple(skb, &ipv4, &tcp); in bpf_sk_assign_test()
180 if (tcp) in bpf_sk_assign_test()
H A Dbpf_flow.c158 struct tcphdr *tcp, _tcp; in parse_ip_proto() local
213 tcp = bpf_flow_dissect_get_header(skb, sizeof(*tcp), &_tcp); in parse_ip_proto()
214 if (!tcp) in parse_ip_proto()
217 if (tcp->doff < 5) in parse_ip_proto()
220 if ((__u8 *)tcp + (tcp->doff << 2) > data_end) in parse_ip_proto()
223 keys->sport = tcp->source; in parse_ip_proto()
224 keys->dport = tcp->dest; in parse_ip_proto()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/net/ipv4/netfilter/
H A Dnf_nat_h323.c290 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_t120()
298 exp->tuple.dst.u.tcp.port = htons(nated_port); in nat_t120()
323 ntohs(exp->tuple.src.u.tcp.port), in nat_t120()
325 ntohs(exp->tuple.dst.u.tcp.port)); in nat_t120()
342 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_h245()
354 exp->tuple.dst.u.tcp.port = htons(nated_port); in nat_h245()
383 ntohs(exp->tuple.src.u.tcp.port), in nat_h245()
385 ntohs(exp->tuple.dst.u.tcp.port)); in nat_h245()
434 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port; in nat_q931()
446 exp->tuple.dst.u.tcp.port = htons(nated_port); in nat_q931()
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-connectivity/gensio/
H A Dgensio_2.3.1.bb16 PACKAGECONFIG ??= "openssl tcp-wrappers"
19 PACKAGECONFIG[tcp-wrappers] = "--with-tcp-wrappers,--without-tcp-wrappers, tcp-wrappers"
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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)
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c117 p_ramrod->tcp.max_fin_rt = QED_IWARP_MAX_FIN_RT_DEFAULT; in qed_iwarp_init_fw_ramrod()
578 p_tcp_ramrod->tcp.local_mac_addr_lo, in qed_iwarp_print_tcp_ramrod()
579 p_tcp_ramrod->tcp.local_mac_addr_mid, in qed_iwarp_print_tcp_ramrod()
580 p_tcp_ramrod->tcp.local_mac_addr_hi, in qed_iwarp_print_tcp_ramrod()
581 p_tcp_ramrod->tcp.remote_mac_addr_lo, in qed_iwarp_print_tcp_ramrod()
582 p_tcp_ramrod->tcp.remote_mac_addr_mid, in qed_iwarp_print_tcp_ramrod()
583 p_tcp_ramrod->tcp.remote_mac_addr_hi); in qed_iwarp_print_tcp_ramrod()
585 if (p_tcp_ramrod->tcp.ip_version == TCP_IPV4) { in qed_iwarp_print_tcp_ramrod()
588 p_tcp_ramrod->tcp.local_ip, in qed_iwarp_print_tcp_ramrod()
589 p_tcp_ramrod->tcp.local_port, in qed_iwarp_print_tcp_ramrod()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/os_dep/linux/
H A Drecv_linux.c720 u8 *tcp = ip + GET_IPV4_IHL(ip) * 4; in rtw_recv_indicatepkt() local
722 …l_chk_reg_rule(&sta->st_ctl, padapter, IPV4_DST(ip), TCP_DST(tcp), IPV4_SRC(ip), TCP_SRC(tcp)) == … in rtw_recv_indicatepkt()
723 if (GET_TCP_SYN(tcp) && GET_TCP_ACK(tcp)) { in rtw_recv_indicatepkt()
725 , IPV4_DST(ip), TCP_DST(tcp) in rtw_recv_indicatepkt()
726 , IPV4_SRC(ip), TCP_SRC(tcp)); in rtw_recv_indicatepkt()
730 , IP_ARG(IPV4_DST(ip)), PORT_ARG(TCP_DST(tcp)) in rtw_recv_indicatepkt()
731 , IP_ARG(IPV4_SRC(ip)), PORT_ARG(TCP_SRC(tcp))); in rtw_recv_indicatepkt()
733 if (GET_TCP_FIN(tcp)) { in rtw_recv_indicatepkt()
735 , IPV4_DST(ip), TCP_DST(tcp) in rtw_recv_indicatepkt()
736 , IPV4_SRC(ip), TCP_SRC(tcp)); in rtw_recv_indicatepkt()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-extended/quota/
H A Dquota_4.06.bb29 PACKAGECONFIG ??= "tcp-wrappers rpc bsd"
30 PACKAGECONFIG:libc-musl = "tcp-wrappers rpc"
32 PACKAGECONFIG[tcp-wrappers] = "--enable-libwrap,--disable-libwrap,tcp-wrappers"
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/unfs3/unfs3/
H A Dtcp_no_delay.patch1 daemon.c: Add option for tcp no delay
3 Allow the NFS tcp sockets to conditionally use TCP_NODELAY
17 +#include <netinet/tcp.h>
56 fprintf(stderr, "Couldn't bind to tcp port %d\n", port);
/OK3568_Linux_fs/kernel/net/netfilter/ipvs/
H A Dip_vs_nfct.c112 new_tuple.src.u.tcp.port = cp->dport; in ip_vs_update_conntrack()
117 new_tuple.dst.u.tcp.port = cp->vport; in ip_vs_update_conntrack()
159 &orig->src.u3, orig->src.u.tcp.port, in ip_vs_nfct_expect_callback()
160 &orig->dst.u3, orig->dst.u.tcp.port, &p); in ip_vs_nfct_expect_callback()
172 new_reply.dst.u.tcp.port = cp->vport; in ip_vs_nfct_expect_callback()
188 new_reply.src.u.tcp.port = cp->dport; in ip_vs_nfct_expect_callback()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bs/os_dep/linux/
H A Drecv_linux.c798 u8 *tcp = ip + GET_IPV4_IHL(ip) * 4; in rtw_recv_indicatepkt() local
800 …l_chk_reg_rule(&sta->st_ctl, padapter, IPV4_DST(ip), TCP_DST(tcp), IPV4_SRC(ip), TCP_SRC(tcp)) == … in rtw_recv_indicatepkt()
801 if (GET_TCP_SYN(tcp) && GET_TCP_ACK(tcp)) { in rtw_recv_indicatepkt()
803 , IPV4_DST(ip), TCP_DST(tcp) in rtw_recv_indicatepkt()
804 , IPV4_SRC(ip), TCP_SRC(tcp)); in rtw_recv_indicatepkt()
808 , IP_ARG(IPV4_DST(ip)), PORT_ARG(TCP_DST(tcp)) in rtw_recv_indicatepkt()
809 , IP_ARG(IPV4_SRC(ip)), PORT_ARG(TCP_SRC(tcp))); in rtw_recv_indicatepkt()
811 if (GET_TCP_FIN(tcp)) { in rtw_recv_indicatepkt()
813 , IPV4_DST(ip), TCP_DST(tcp) in rtw_recv_indicatepkt()
814 , IPV4_SRC(ip), TCP_SRC(tcp)); in rtw_recv_indicatepkt()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/os_dep/linux/
H A Drecv_linux.c723 u8 *tcp = ip + GET_IPV4_IHL(ip) * 4; in rtw_recv_indicatepkt() local
725 …l_chk_reg_rule(&sta->st_ctl, padapter, IPV4_DST(ip), TCP_DST(tcp), IPV4_SRC(ip), TCP_SRC(tcp)) == … in rtw_recv_indicatepkt()
726 if (GET_TCP_SYN(tcp) && GET_TCP_ACK(tcp)) { in rtw_recv_indicatepkt()
728 , IPV4_DST(ip), TCP_DST(tcp) in rtw_recv_indicatepkt()
729 , IPV4_SRC(ip), TCP_SRC(tcp)); in rtw_recv_indicatepkt()
733 , IP_ARG(IPV4_DST(ip)), PORT_ARG(TCP_DST(tcp)) in rtw_recv_indicatepkt()
734 , IP_ARG(IPV4_SRC(ip)), PORT_ARG(TCP_SRC(tcp))); in rtw_recv_indicatepkt()
736 if (GET_TCP_FIN(tcp)) { in rtw_recv_indicatepkt()
738 , IPV4_DST(ip), TCP_DST(tcp) in rtw_recv_indicatepkt()
739 , IPV4_SRC(ip), TCP_SRC(tcp)); in rtw_recv_indicatepkt()
[all …]

12345678910>>...13