Home
last modified time | relevance | path

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

12345678

/linux-6.1.9/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_control.sh310 -t udp sp=68,dp=67 -p 100 -q
314 -B 255.255.255.255 -t udp sp=67,dp=68 -p 100 -q
320 $MZ $h1 -6 -c 1 -A fe80::1 -B ff02::1:2 -t udp sp=546,dp=547 \
324 $MZ $h1 -6 -c 1 -A fe80::1 -B ff02::1:2 -t udp sp=547,dp=546 \
374 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3784 -p 100 -q
378 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3785 -p 100 -q
386 -t udp sp=49153,dp=3784 -p 100 -q
391 -t udp sp=49153,dp=3785 -p 100 -q
480 -A 192.0.2.1 -B 192.0.2.3 -t udp sp=54321,dp=12345 -p 100 -q
484 -A 2001:db8:1::1 -B 2001:db8:1::3 -t udp sp=54321,dp=12345 \
[all …]
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
Ddevlink_trap_l3_drops.sh204 flower ip_proto udp src_port 54321 dst_port 12345 action drop
207 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -b $dmac \
242 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip \
276 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -b $rp1mac \
311 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip \
342 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip -b $rp1mac \
479 $MZ $h1 -6 -t udp "sp=54321,dp=12345" -c 0 -p 100 -b \
504 $MZ $h1 -6 -t udp "sp=54321,dp=12345" -c 0 -p 100 -b \
534 $MZ $h1 -$flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -b $rp1mac \
579 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -p 100 -a own -b $rp1mac \
[all …]
Drif_mac_profiles.sh113 flower skip_sw ip_proto udp src_port 12345 dst_port 54321 \
119 flower skip_sw src_mac $smac ip_proto udp src_port 12345 \
122 $MZ $h1 -a own -b $(mac_get $rp1) -t udp "sp=12345,dp=54321" \
148 flower skip_sw ip_proto udp src_port 54321 dst_port 12345 \
152 flower skip_sw src_mac $rp1_mac ip_proto udp src_port 54321 \
155 $MZ $h2 -a own -b $(mac_get $rp2) -t udp "sp=54321,dp=12345" \
Dtc_sample.sh239 -B $dip -t udp dp=52768,sp=42768 -q
339 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q
365 -A 192.0.2.17 -B 198.51.100.17 -t udp dp=52768,sp=42768 -q
391 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q
417 -A 192.0.2.17 -B 198.51.100.17 -t udp dp=52768,sp=42768 -q
446 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q
461 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q
494 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q &
534 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q
592 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q
[all …]
Ddevlink_trap_l3_exceptions.sh192 $MZ $h1 -t udp "sp=54321,dp=12345,df" -p 1400 -c 0 -d 1msec -b $rp1mac \
227 $MZ $h1 -t udp "ttl=$ttl_val,sp=54321,dp=12345" -c 0 -d 1msec \
284 flower dst_ip $dst_ip ip_proto udp action drop
289 $MZ $h2 $flags -t udp "sp=54321,dp=12345" -c 0 -p 128 \
339 $MZ $flags $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \
537 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \
564 $MZ -6 $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \
/linux-6.1.9/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 …]
Dtc_police.sh133 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
137 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q &
159 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
171 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
187 -t udp sp=12345,dp=$dport -p 1000 -c 0 -q &
208 dst_ip 198.51.100.1 ip_proto udp src_port 12345 \
213 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
220 dst_ip 198.51.100.1 ip_proto udp dst_port 22222 \
242 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
247 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \
[all …]
Dcustom_multipath_hash.sh186 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
193 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
200 -d 1msec -t udp "sp=0-32768,dp=30000"
207 -d 1msec -t udp "sp=20000,dp=0-32768"
214 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
221 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
237 -d 1msec -t udp "sp=0-32768,dp=30000"
244 -d 1msec -t udp "sp=20000,dp=0-32768"
Dsch_red.sh266 backlog=$(build_backlog $((2 * limit / 3)) udp)
298 build_backlog $((2 * limit)) udp >/dev/null
321 build_backlog $((2 * limit)) udp >/dev/null
371 -a own -b $h3_mac -t udp -q &
380 build_backlog $((3 * limit / 2)) udp >/dev/null
383 send_packets udp 100
392 send_packets udp 100
Dgre_custom_multipath_hash.sh281 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
288 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
295 -d 1msec -t udp "sp=0-32768,dp=30000"
302 -d 1msec -t udp "sp=20000,dp=0-32768"
309 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
316 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
332 -d 1msec -t udp "sp=0-32768,dp=30000"
339 -d 1msec -t udp "sp=20000,dp=0-32768"
Dip6gre_custom_multipath_hash.sh283 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
290 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
297 -d 1msec -t udp "sp=0-32768,dp=30000"
304 -d 1msec -t udp "sp=20000,dp=0-32768"
311 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
318 -d 1msec -c 50 -t udp "sp=20000,dp=30000"
334 -d 1msec -t udp "sp=0-32768,dp=30000"
341 -d 1msec -t udp "sp=20000,dp=0-32768"
Dpedit_l4port.sh171 do_test_pedit_l4port "dev $swp1 ingress" udp sport src_port
172 do_test_pedit_l4port "dev $swp2 egress" udp sport src_port
177 do_test_pedit_l4port "dev $swp1 ingress" udp dport dst_port
178 do_test_pedit_l4port "dev $swp2 egress" udp dport dst_port
Drouter.sh198 flower src_ip 240.0.0.1 ip_proto udp action pass
200 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \
249 $MZ $flags $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $dmac \
278 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \
298 $MZ -6 $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \
321 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $rp1mac -B $dip -q
/linux-6.1.9/samples/bpf/
Dparse_varlen.c33 static int udp(void *data, uint64_t tp_off, void *data_end) in udp() function
35 struct udphdr *udp = data + tp_off; in udp() local
37 if (udp + 1 > data_end) in udp()
39 if (udp->dest == htons(DEFAULT_PKTGEN_UDP_PORT) || in udp()
40 udp->source == htons(DEFAULT_PKTGEN_UDP_PORT)) { in udp()
74 return udp(data, nh_off + ihl_len, data_end); in parse_ipv4()
108 return udp(data, nh_off + ihl_len, data_end); in parse_ipv6()
Dparse_simple.c32 struct udphdr *udp = data + sizeof(*eth) + sizeof(*iph); in handle_ingress() local
36 if (data + sizeof(*eth) + sizeof(*iph) + sizeof(*udp) > data_end) in handle_ingress()
45 if (udp->dest == htons(DEFAULT_PKTGEN_UDP_PORT)) in handle_ingress()
/linux-6.1.9/net/netfilter/
Dnf_nat_sip.c108 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr()
110 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr()
112 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr()
115 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr()
190 port != ct->tuplehash[dir].tuple.src.u.udp.port) in nf_nat_sip()
195 port != ct->tuplehash[dir].tuple.dst.u.udp.port) in nf_nat_sip()
247 htons(n) == ct->tuplehash[dir].tuple.dst.u.udp.port && in nf_nat_sip()
248 htons(n) != ct->tuplehash[!dir].tuple.src.u.udp.port) { in nf_nat_sip()
249 __be16 p = ct->tuplehash[!dir].tuple.src.u.udp.port; in nf_nat_sip()
401 ct->tuplehash[dir].tuple.src.u.udp.port; in nf_nat_sip_expect()
[all …]
Dnf_conntrack_broadcast.c65 exp->tuple.src.u.udp.port = helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help()
68 exp->mask.src.u.udp.port = htons(0xFFFF); in nf_conntrack_broadcast_help()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c56 struct udphdr udp; member
178 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4()
179 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv4()
180 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in __encap_ipv4()
181 h_outer.l4hdr.udp.check = 0; in __encap_ipv4()
182 h_outer.l4hdr.udp.len = bpf_htons(bpf_ntohs(iph_inner.tot_len) + in __encap_ipv4()
183 sizeof(h_outer.l4hdr.udp) + in __encap_ipv4()
309 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv6()
310 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv6()
311 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in __encap_ipv6()
[all …]
Dxdpwall.c208 struct udphdr *udp = transport_hdr; in parse_udp() local
210 if (udp + 1 > data_end) in parse_udp()
213 info->sport = bpf_ntohs(udp->source); in parse_udp()
214 info->dport = bpf_ntohs(udp->dest); in parse_udp()
259 struct udphdr *udp = (struct udphdr *)(ip6h + 1); in parse_gue_v6() local
260 void *encap_data = udp + 1; in parse_gue_v6()
262 if (udp + 1 > data_end) in parse_gue_v6()
265 if (udp->dest != bpf_htons(6666)) in parse_gue_v6()
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dxdp_do_redirect.c24 struct udphdr udp; member
36 - offsetof(struct udp_packet, udp)),
40 .udp.source = bpf_htons(1),
41 .udp.dest = bpf_htons(1),
42 .udp.len = bpf_htons(sizeof(struct udp_packet)
43 - offsetof(struct udp_packet, udp)),
/linux-6.1.9/net/ipv4/netfilter/
Dnf_nat_h323.c158 port == ct->tuplehash[dir].tuple.src.u.udp.port) { in set_ras_addr()
162 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr()
166 dst.u.udp.port); in set_ras_addr()
188 rtp_exp->saved_proto.udp.port = rtp_exp->tuple.dst.u.udp.port; in nat_rtp_rtcp()
191 rtcp_exp->saved_proto.udp.port = rtcp_exp->tuple.dst.u.udp.port; in nat_rtp_rtcp()
202 rtp_exp->tuple.dst.u.udp.port = info->rtp_port[i][dir]; in nat_rtp_rtcp()
203 rtcp_exp->tuple.dst.u.udp.port = in nat_rtp_rtcp()
219 for (nated_port = ntohs(rtp_exp->tuple.dst.u.udp.port); in nat_rtp_rtcp()
223 rtp_exp->tuple.dst.u.udp.port = htons(nated_port); in nat_rtp_rtcp()
226 rtcp_exp->tuple.dst.u.udp.port = in nat_rtp_rtcp()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dfs_tt_redirect.c278 struct mlx5e_fs_udp *udp = mlx5e_fs_get_udp(fs); in fs_udp_enable() local
284 dest.ft = udp->tables[i].t; in fs_udp_enable()
319 struct mlx5e_fs_udp *udp = mlx5e_fs_get_udp(fs); in mlx5e_fs_tt_redirect_udp_create() local
322 if (udp) { in mlx5e_fs_tt_redirect_udp_create()
323 udp->ref_cnt++; in mlx5e_fs_tt_redirect_udp_create()
327 udp = kzalloc(sizeof(*udp), GFP_KERNEL); in mlx5e_fs_tt_redirect_udp_create()
328 if (!udp) in mlx5e_fs_tt_redirect_udp_create()
330 mlx5e_fs_set_udp(fs, udp); in mlx5e_fs_tt_redirect_udp_create()
342 udp->ref_cnt = 1; in mlx5e_fs_tt_redirect_udp_create()
348 fs_udp_destroy_table(udp, i); in mlx5e_fs_tt_redirect_udp_create()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dudpgro_fwd.sh118 ip netns exec $NS_DST $ipt -A INPUT -p udp --dport 4789
119 ip netns exec $NS_DST $ipt -A INPUT -p udp --dport 8000
218 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
226 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
238 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
250 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
Dveth.sh234 ip netns exec $NS_SRC ethtool -K veth$SRC tx-udp-segmentation off
244 ip netns exec $NS_SRC ethtool -K veth$SRC tx-udp-segmentation off
245 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
259 ip netns exec $NS_SRC ethtool -K veth$SRC tx-udp-segmentation off
260 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
320 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
357 ip netns exec $NS_SRC ethtool -K veth$SRC tx-udp-segmentation off

12345678