/tools/testing/selftests/bpf/ |
D | generate_udp_fragments.py | 67 sport = CLIENT_PORT 72 pkt = IP(src=sip,dst=dip) / UDP(sport=sport,dport=dport,chksum=0) / Raw(load=payload) 75 …pkt6 = IPv6(src=sip6,dst=dip6) / IPv6ExtHdrFragment(id=0xBEEF) / UDP(sport=sport,dport=dport) / Ra…
|
/tools/testing/selftests/net/mptcp/ |
D | userspace_pm.sh | 244 client_port=$(mptcp_lib_evts_get_info sport "$client_evts") 629 local sport 630 sport=$(mptcp_lib_evts_get_info sport "$server_evts" $SUB_ESTABLISHED) 634 ip netns exec "$ns1" ./pm_nl_ctl dsf lip 10.0.2.1 lport "$sport" rip 10.0.2.2 rport\ 668 sport=$(mptcp_lib_evts_get_info sport "$server_evts" $SUB_ESTABLISHED) 672 ip netns exec "$ns1" ./pm_nl_ctl dsf lip dead:beef:2::1 lport "$sport" rip\ 707 sport=$(mptcp_lib_evts_get_info sport "$server_evts" $SUB_ESTABLISHED) 711 ip netns exec "$ns1" ./pm_nl_ctl dsf lip 10.0.2.1 lport "$sport" rip 10.0.2.2 rport\ 745 sport=$(mptcp_lib_evts_get_info sport "$client_evts" $SUB_ESTABLISHED) 749 ip netns exec "$ns2" ./pm_nl_ctl dsf lip 10.0.2.2 lport "$sport" rip 10.0.2.1 rport\ [all …]
|
D | mptcp_join.sh | 2911 local sport 2931 sport=$(mptcp_lib_evts_get_info sport "$evt" "$e_type") 2941 [ $sport ] && [ $sport = $e_sport ]; then 2945 fail_test "$e_type:$type $e_family:$family $e_saddr:$saddr $e_sport:$sport"
|
/tools/testing/selftests/bpf/progs/ |
D | test_bpf_nf.c | 31 __be16 sport = 0; variable 147 bpf_tuple.ipv4.sport = bpf_get_prandom_u32(); /* src port */ in nf_ct_test() 153 __u16 sport = bpf_get_prandom_u32(); in nf_ct_test() local 164 bpf_ct_set_nat_info(ct, &saddr, sport, NF_NAT_MANIP_SRC___local); in nf_ct_test() 181 tuple->dst.u.all == bpf_htons(sport)) in nf_ct_test() 207 bpf_tuple.ipv4.sport = sport; in nf_ct_test()
|
D | connect6_prog.c | 36 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog()
|
D | test_tc_dtime.c | 144 __u16 sport, dport; in skb_get_type() local 188 sport = th->source; in skb_get_type() 195 sport = uh->source; in skb_get_type() 204 (ns == DST_NS && sport == dst_ns_port)) in skb_get_type()
|
D | xdpwall.c | 99 int sport; member 198 info->sport = bpf_ntohs(tcp->source); in parse_tcp() 213 info->sport = bpf_ntohs(udp->source); in parse_udp() 250 match_info->udp_sp_match = filter_udp_port(info->sport); in filter_transport_hdr()
|
D | test_cls_redirect_dynptr.c | 87 offsetof(struct bpf_sock_tuple, ipv4.sport) - 1, 92 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 510 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument 517 tuple->ipv4.sport = sport; in fill_tuple() 528 tuple->ipv6.sport = sport; in fill_tuple() 643 if (!pkt_parse_icmp_l4_ports(dynptr, offset, (flow_ports_t *)&tuple.ipv4.sport)) { in process_icmpv4() 695 if (!pkt_parse_icmp_l4_ports(dynptr, offset, (flow_ports_t *)&tuple.ipv6.sport)) { in process_icmpv6()
|
D | test_cls_redirect.c | 92 offsetof(struct bpf_sock_tuple, ipv4.sport) - 1, 97 offsetof(struct bpf_sock_tuple, ipv6.sport) - 1, 619 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument 626 tuple->ipv4.sport = sport; in fill_tuple() 637 tuple->ipv6.sport = sport; in fill_tuple() 753 if (!pkt_parse_icmp_l4_ports(pkt, (flow_ports_t *)&tuple.ipv4.sport)) { in process_icmpv4() 805 if (!pkt_parse_icmp_l4_ports(pkt, (flow_ports_t *)&tuple.ipv6.sport)) { in process_icmpv6()
|
D | test_tcp_check_syncookie_kern.c | 79 tup.ipv4.sport = tcph->source; in check_syncookie() 111 tup.ipv6.sport = tcph->source; in check_syncookie()
|
D | test_tc_neigh_fib.c | 41 fib_params->sport = 0; in fill_fib_params_v4() 69 fib_params->sport = 0; in fill_fib_params_v6()
|
D | connect4_prog.c | 154 memset(&tuple.ipv4.sport, 0, sizeof(tuple.ipv4.sport)); in connect_v4_prog()
|
D | cgroup_skb_sk_lookup_kern.c | 35 tuple->ipv6.sport = tcph->dest; in set_tuple()
|
D | bpf_flow.c | 78 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys() 237 keys->sport = tcp->source; in parse_ip_proto() 246 keys->sport = udp->source; in parse_ip_proto()
|
D | test_tunnel_kern.c | 56 __be16 sport; member 799 encap.sport = 0; in ipip_gue_set_tunnel() 836 encap.sport = 0; in ipip_fou_set_tunnel() 871 key.remote_ipv4, bpf_ntohs(encap.sport), in ipip_encap_get_tunnel()
|
D | xdp_synproxy_kern.c | 447 tup.ipv4.sport = hdr->tcp->source; in tcp_lookup() 453 tup.ipv6.sport = hdr->tcp->source; in tcp_lookup()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | flow_dissector.c | 41 got.sport, expected.sport, \ 129 .sport = 80, 150 .sport = 80, 173 .sport = 80, 197 .sport = 80, 223 .sport = 80, 273 .sport = 80, 319 .sport = 80, 366 .sport = 80, 396 .sport = 80, [all …]
|
D | cls_redirect.c | 279 in_port_t sport = tuple->src.port; in build_input() local 332 sport--; in build_input() 337 .source = sport, in build_input() 348 .source = sport, in build_input()
|
D | bpf_nf.c | 92 skel->bss->sport = peer_addr.sin_port; in test_bpf_nf_ct()
|
/tools/testing/selftests/net/forwarding/ |
D | pedit_l4port.sh | 171 do_test_pedit_l4port "dev $swp1 ingress" udp sport src_port 172 do_test_pedit_l4port "dev $swp2 egress" udp sport src_port 183 do_test_pedit_l4port "dev $swp1 ingress" tcp sport src_port 184 do_test_pedit_l4port "dev $swp2 egress" tcp sport src_port
|
/tools/testing/selftests/netfilter/ |
D | nft_zones_many.sh | 122 … --timeout 3600 --state ESTABLISHED --sport 12345 --dport 1000 --zone $i >/dev/null 2>&1 125 … --timeout 3600 --state ESTABLISHED --sport 12345 --dport 1000 --zone $i > /dev/null
|
D | nft_nat_zones.sh | 190 …tcp flags & (syn|ack) == ack add @inflows { ip saddr . tcp sport . meta iifname . ip daddr . tcp d… 191 add @inflows6 { ip6 saddr . tcp sport . meta iifname . ip6 daddr . tcp dport counter }
|
/tools/testing/selftests/net/ |
D | reuseport_bpf.c | 186 static void send_from(struct test_params p, uint16_t sport, char *buf, in send_from() argument 189 struct sockaddr * const saddr = new_any_sockaddr(p.send_family, sport); in send_from() 217 int epfd, conn, i, sport, expected; in test_recv_order() local 235 sport = p.send_port_min + data; in test_recv_order() 238 send_from(p, sport, send_buf, sizeof(ndata)); in test_recv_order() 265 expected = (sport % mod); in test_recv_order()
|
D | csum.c | 590 static int recv_verify_csum(void *th, int len, uint16_t sport, uint16_t csum_field) in recv_verify_csum() argument 597 sport, len, csum_field, csum); in recv_verify_csum()
|
/tools/include/uapi/linux/ |
D | bpf.h | 6272 __be16 sport; member 6278 __be16 sport; member 7005 __be16 sport; member 7108 __be16 sport; member
|