Home
last modified time | relevance | path

Searched refs:udp (Results 1 – 24 of 24) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c41 struct udphdr udp; member
158 olen += sizeof(h_outer.l4hdr.udp); in encap_ipv4()
159 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv4()
160 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in encap_ipv4()
161 h_outer.l4hdr.udp.check = 0; in encap_ipv4()
162 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in encap_ipv4()
163 sizeof(h_outer.l4hdr.udp) + in encap_ipv4()
266 olen += sizeof(h_outer.l4hdr.udp); in encap_ipv6()
267 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in encap_ipv6()
268 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in encap_ipv6()
[all …]
Dbpf_flow.c159 struct udphdr *udp, _udp; in parse_ip_proto() local
228 udp = bpf_flow_dissect_get_header(skb, sizeof(*udp), &_udp); in parse_ip_proto()
229 if (!udp) in parse_ip_proto()
232 keys->sport = udp->source; in parse_ip_proto()
233 keys->dport = udp->dest; in parse_ip_proto()
Dtest_l4lb.c286 struct udphdr *udp; in parse_udp() local
287 udp = data + off; in parse_udp()
289 if (udp + 1 > data_end) in parse_udp()
293 pckt->port16[0] = udp->source; in parse_udp()
294 pckt->port16[1] = udp->dest; in parse_udp()
296 pckt->port16[0] = udp->dest; in parse_udp()
297 pckt->port16[1] = udp->source; in parse_udp()
Dtest_l4lb_noinline.c286 struct udphdr *udp; in parse_udp() local
287 udp = data + off; in parse_udp()
289 if (udp + 1 > data_end) in parse_udp()
293 pckt->port16[0] = udp->source; in parse_udp()
294 pckt->port16[1] = udp->dest; in parse_udp()
296 pckt->port16[0] = udp->dest; in parse_udp()
297 pckt->port16[1] = udp->source; in parse_udp()
Dtest_xdp_noinline.c238 struct udphdr *udp; in parse_udp() local
239 udp = data + off; in parse_udp()
241 if (udp + 1 > data_end) in parse_udp()
244 pckt->flow.port16[0] = udp->source; in parse_udp()
245 pckt->flow.port16[1] = udp->dest; in parse_udp()
247 pckt->flow.port16[0] = udp->dest; in parse_udp()
248 pckt->flow.port16[1] = udp->source; in parse_udp()
/tools/testing/selftests/net/forwarding/
Drouter_multicast.sh248 $MZ $h1 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
258 $MZ $h1 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 -b 01:00:5e:01:02:03 \
288 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \
298 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \
324 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
326 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
328 dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action drop
330 skip_hw dst_ip 225.1.2.3 ip_proto udp dst_port 12345 action pass
334 $MZ $h1 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
343 $MZ $h3 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \
[all …]
Dbridge_igmp.sh97 $MZ $host1_if -c 1 -p 64 -b $mac -B $ip -t udp "dp=4096,sp=2048" -q
Drouter_multipath.sh182 -d 1msec -t udp "sp=1024,dp=0-32768"
219 -d 1msec -t udp "sp=1024,dp=0-32768"
Drouter_mpath_nh.sh201 -d 1msec -t udp "sp=1024,dp=0-32768"
234 -d 1msec -t udp "sp=1024,dp=0-32768"
Dgre_inner_v4_multipath.sh270 -d 1msec -c 50 -t udp "sp=1024,dp=1024"
Dgre_multipath.sh223 -d 1msec -t udp "sp=1024,dp=0-32768"
Dgre_inner_v6_multipath.sh271 -d 1msec -c 50 -t udp "sp=1024,dp=1024"
Dip6gre_inner_v4_multipath.sh269 -d 1msec -c 50 -t udp "sp=1024,dp=1024"
Dip6gre_inner_v6_multipath.sh270 -d 1msec -c 50 -t udp "sp=1024,dp=1024"
Dvxlan_bridge_1d.sh564 -t udp tos=$outer_tos,sp=23456,dp=$VXPORT,p=$(:
/tools/testing/selftests/drivers/net/mlxsw/
Done_armed_router.sh135 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \
139 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \
143 skip_sw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \
147 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q
178 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \
182 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \
186 skip_sw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \
190 -B 2001:db8:2::1 -t udp dp=52768,sp=42768 -q
Dqos_lib.sh35 -a own -b $dmac -t udp -q &
Dvxlan_flooding.sh192 flower ip_proto udp dst_ip 198.51.100.$lsb \
/tools/testing/selftests/net/
Dmsg_zerocopy.sh28 $0 4 udp -t 1
29 $0 6 udp -t 1
Dfcnal-test.sh3226 run_cmd iptables -A INPUT -p udp --dport 12345 -j REJECT --reject-with icmp-port-unreachable
3282 run_cmd ip6tables -A INPUT -p udp --dport 12345 -j REJECT --reject-with icmp6-port-unreachable
3523 ipv4_udp|udp) ipv4_udp;;
/tools/testing/selftests/bpf/
Dtest_flow_dissector.sh73 udp src_port 9 action drop
109 udp src_port 9 action drop
Dtest_tc_tunnel.sh122 $0 ipv4 udp $mac 100
128 $0 ipv4 udp $mac 2000
Dtest_maps.c654 int err, i, fd, udp, sfd[6] = {0xdeadbeef}; in test_sockmap() local
747 udp = socket(AF_INET, SOCK_DGRAM, 0); in test_sockmap()
749 err = bpf_map_update_elem(fd, &i, &udp, BPF_ANY); in test_sockmap()
752 i, udp); in test_sockmap()
/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh604 -A 2001:db8:2::1 -B 2001:db8:2::2 -t udp -q
631 -A 2001:db8:2::1 -B 2001:db8:2::2 -t udp -q
773 -A 2001:db8:2::1 -B 2001:db8:2::2 -t udp -q
791 -A 2001:db8:2::1 -B 2001:db8:2::2 -t udp -q