Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/progs/
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_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_tcp_check_syncookie_kern.c80 tup.ipv4.dport = tcph->dest; in check_syncookie()
112 tup.ipv6.dport = tcph->dest; in check_syncookie()
Dconnect4_prog.c33 tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
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()
Dtest_l4lb.c411 vip.dport = pckt.port16[1]; in process_packet()
415 vip.dport = 0; in process_packet()
Dtest_l4lb_noinline.c411 vip.dport = pckt.port16[1]; in process_packet()
415 vip.dport = 0; in process_packet()
/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector.c36 got.dport, expected.dport)
122 .dport = 8080,
142 .dport = 8080,
164 .dport = 8080,
187 .dport = 8080,
212 .dport = 8080,
260 .dport = 8080,
304 .dport = 8080,
355 .dport = 8080,
504 tests[i].keys.dport; in test_flow_dissector()
/tools/testing/selftests/bpf/
Dtest_iptunnel_common.h16 __u16 dport; member
Dtest_tc_tunnel.sh206 dport=${mplsudpport}
210 dport=${udpport}
213 ip netns exec "${ns2}" ip fou add port $dport ipproto ${dproto}
214 targs="encap fou encap-sport auto encap-dport $dport"
Dtest_flow_dissector.c237 uint16_t dport, int family) in build_udp_header() argument
243 udph->dest = htons(dport); in build_udp_header()
/tools/testing/selftests/netfilter/
Dnft_flowtable.sh136 meta oif "veth1" tcp dport 12345 flow offload @f1 counter
141 tcp dport 12345 meta length gt 200 ct mark set 1 counter
160 meta length lt 200 oif "veth1" tcp dport 12345 counter accept
/tools/include/uapi/linux/
Dbpf.h3156 __be16 dport; member
3162 __be16 dport; member
3527 __be16 dport; member
3590 __be16 dport; member
/tools/testing/selftests/net/
Dfcnal-test.sh3216 run_cmd iptables -A INPUT -p tcp --dport 12345 -j REJECT --reject-with tcp-reset
3225 run_cmd iptables -A INPUT -p tcp --dport 12345 -j REJECT --reject-with icmp-port-unreachable
3226 run_cmd iptables -A INPUT -p udp --dport 12345 -j REJECT --reject-with icmp-port-unreachable
3273 run_cmd ip6tables -A INPUT -p tcp --dport 12345 -j REJECT --reject-with tcp-reset
3281 run_cmd ip6tables -A INPUT -p tcp --dport 12345 -j REJECT --reject-with icmp6-port-unreachable
3282 run_cmd ip6tables -A INPUT -p udp --dport 12345 -j REJECT --reject-with icmp6-port-unreachable
Dpmtu.sh327 …mode} local ${a_addr} remote ${b_addr} encap ${encap} encap-sport auto encap-dport 5556 || return 2
330 …e ${type} ${mode} local ${b_addr} remote ${a_addr} encap ${encap} encap-sport auto encap-dport 5555