Home
last modified time | relevance | path

Searched refs:dport (Results 1 – 25 of 31) sorted by relevance

12

/tools/testing/selftests/bpf/progs/
Dtest_sk_assign.c108 __be16 dport; in handle_udp() local
119 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_udp()
120 if (dport != bpf_htons(4321)) in handle_udp()
140 __be16 dport; in handle_tcp() local
154 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_tcp()
155 if (dport != bpf_htons(4321)) in handle_tcp()
Dtest_xdp_loop.c87 int dport; in handle_ipv4() local
94 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
95 if (dport == -1) in handle_ipv4()
101 vip.dport = dport; in handle_ipv4()
159 int dport; in handle_ipv6() local
164 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
165 if (dport == -1) in handle_ipv6()
171 vip.dport = dport; in handle_ipv6()
Dtest_xdp.c91 int dport; in handle_ipv4() local
98 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
99 if (dport == -1) in handle_ipv4()
105 vip.dport = dport; in handle_ipv4()
163 int dport; in handle_ipv6() local
168 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
169 if (dport == -1) in handle_ipv6()
175 vip.dport = dport; in handle_ipv6()
Dtest_tcp_check_syncookie_kern.c80 tup.ipv4.dport = tcph->dest; in check_syncookie()
112 tup.ipv6.dport = tcph->dest; in check_syncookie()
Dtest_tc_neigh_fib.c42 fib_params->dport = 0; in fill_fib_params_v4()
70 fib_params->dport = 0; in fill_fib_params_v6()
Dtest_cls_redirect.c91 offsetofend(struct bpf_sock_tuple, ipv4.dport) -
96 offsetofend(struct bpf_sock_tuple, ipv6.dport) -
619 uint64_t iphlen, uint16_t sport, uint16_t dport) in fill_tuple() argument
627 tuple->ipv4.dport = dport; in fill_tuple()
638 tuple->ipv6.dport = dport; in fill_tuple()
Dcgroup_skb_sk_lookup_kern.c37 tuple->ipv6.dport = tcph->source; in set_tuple()
Dconnect6_prog.c45 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog()
Dbpf_flow.c77 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys()
224 keys->dport = tcp->dest; in parse_ip_proto()
233 keys->dport = udp->dest; in parse_ip_proto()
Dconnect4_prog.c158 tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
Dtest_l4lb_noinline.c408 vip.dport = pckt.port16[1]; in process_packet()
412 vip.dport = 0; in process_packet()
Dtest_l4lb.c411 vip.dport = pckt.port16[1]; in process_packet()
415 vip.dport = 0; in process_packet()
/tools/testing/selftests/net/forwarding/
Dpedit_l4port.sh177 do_test_pedit_l4port "dev $swp1 ingress" udp dport dst_port
178 do_test_pedit_l4port "dev $swp2 egress" udp dport dst_port
189 do_test_pedit_l4port "dev $swp1 ingress" tcp dport dst_port
190 do_test_pedit_l4port "dev $swp2 egress" tcp dport dst_port
/tools/testing/selftests/netfilter/
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)
Dnft_zones_many.sh49 udp dport 12345 ct zone set numgen inc mod 65536 map @rndzone
115 … --timeout 3600 --state ESTABLISHED --sport 12345 --dport 1000 --zone $i >/dev/null 2>&1
118 … --timeout 3600 --state ESTABLISHED --sport 12345 --dport 1000 --zone $i > /dev/null
Dnft_conntrack_helper.sh80 tcp dport 2121 ct helper set "ftp"
84 tcp dport 2121 ct helper set "ftp"
103 …ip netns exec ${netns} conntrack -L -f $family -p tcp --dport $port 2> /dev/null |grep -q 'helper=…
Dnft_queue.sh106 tcp dport 12345 queue num 2
111 tcp dport 12345 queue num 3
302 tcp dport 12345 limit rate 1/second burst 1 packets counter queue num 0
306 tcp dport 12345 limit rate 1/second burst 1 packets counter queue num 0
Dnft_flowtable.sh172 meta oif "veth1" tcp dport 12345 flow offload @f1 counter
177 tcp dport 12345 meta length gt 200 ct mark set 1 counter
196 meta length lt 200 oif "veth1" tcp dport 12345 counter accept
346 meta iif "veth0" ip daddr 10.6.6.6 tcp dport 1666 counter dnat ip to 10.0.2.99:12345
401 meta iif "br0" ip daddr 10.6.6.6 tcp dport 1666 counter dnat ip to 10.0.2.99:12345
Dnf_nat_edemux.sh71 ip netns exec $ns2 iptables -t nat -A OUTPUT -d 10.96.0.1/32 -p tcp --dport 443 -j DNAT --to-destin…
Dnft_nat_zones.sh190 …syn|ack) == ack add @inflows { ip saddr . tcp sport . meta iifname . ip daddr . tcp dport counter }
191 add @inflows6 { ip6 saddr . tcp sport . meta iifname . ip6 daddr . tcp dport counter }
/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c39 got.dport, expected.dport)
126 .dport = 8080,
146 .dport = 8080,
168 .dport = 8080,
191 .dport = 8080,
216 .dport = 8080,
264 .dport = 8080,
308 .dport = 8080,
359 .dport = 8080,
493 tests[i].keys.dport; in run_tests_skb_less()
/tools/testing/selftests/bpf/
Dtest_iptunnel_common.h16 __u16 dport; member
Dtest_tc_tunnel.sh212 dport=${mplsudpport}
216 dport=${udpport}
219 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
220 targs="encap fou encap-sport auto encap-dport $dport"
/tools/testing/selftests/net/
Dudpgro_fwd.sh127 ip netns exec $NS_DST $ipt -A INPUT -p udp --dport 4789
128 ip netns exec $NS_DST $ipt -A INPUT -p udp --dport 8000
/tools/include/uapi/linux/
Dbpf.h5414 __be16 dport; member
5420 __be16 dport; member
6066 __be16 dport; member
6156 __be16 dport; member

12