| /tools/testing/selftests/bpf/progs/ |
| A D | test_tc_change_tail.c | 45 struct udphdr *udp; in parse_udp_header() local 48 udp = hdr + (iph->ihl * 4); in parse_udp_header() 49 hdr = (void *)udp; in parse_udp_header() 52 if ((void *)(hdr + sizeof(*udp)) > data_end) in parse_udp_header() 55 return udp; in parse_udp_header() 62 struct udphdr *udp; in change_tail() local 78 udp = parse_udp_header(skb, iph); in change_tail() 79 if (!udp) in change_tail() 82 payload = (char *)udp + (sizeof(struct udphdr)); in change_tail()
|
| A D | xdp_metadata.c | 43 struct udphdr *udp = NULL; in rx() local 56 udp = (void *)(iph + 1); in rx() 61 udp = (void *)(ip6h + 1); in rx() 63 if (udp && udp + 1 > data_end) in rx() 64 udp = NULL; in rx() 67 if (!udp) in rx() 71 if (udp->dest != bpf_htons(8080)) in rx()
|
| A D | xdp_hw_metadata.c | 32 struct udphdr *udp = NULL; in rx() local 53 udp = (void *)(iph + 1); in rx() 58 udp = (void *)(ip6h + 1); in rx() 60 if (udp && udp + 1 > data_end) in rx() 61 udp = NULL; in rx() 64 if (!udp) { in rx() 70 if (udp->dest != bpf_htons(9091)) { in rx()
|
| A D | test_assign_reuse.c | 21 struct udphdr udp; member 45 if (ctx->data + sizeof(headers.udp) > ctx->data_end) in reuse_accept() 48 if (__builtin_memcmp(&headers.udp, ctx->data, sizeof(headers.udp)) != 0) in reuse_accept() 102 __builtin_memcpy(&headers.udp, uh, sizeof(headers.udp)); in maybe_assign_udp()
|
| A D | xdpwall.c | 208 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()
|
| A D | test_tc_tunnel.c | 63 struct udphdr udp; member 185 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv4() 186 h_outer.l4hdr.udp.source = __bpf_constant_htons(cfg_udp_src); in __encap_ipv4() 187 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in __encap_ipv4() 188 h_outer.l4hdr.udp.check = 0; in __encap_ipv4() 190 sizeof(h_outer.l4hdr.udp) + in __encap_ipv4() 316 olen += sizeof(h_outer.l4hdr.udp); in __encap_ipv6() 318 h_outer.l4hdr.udp.dest = bpf_htons(udp_dst); in __encap_ipv6() 320 sizeof(h_outer.l4hdr.udp) + l2_len; in __encap_ipv6() 321 h_outer.l4hdr.udp.check = 0; in __encap_ipv6() [all …]
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| A D | devlink_trap_control.sh | 311 -t udp sp=68,dp=67 -p 100 -q 315 -B 255.255.255.255 -t udp sp=67,dp=68 -p 100 -q 375 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3784 -p 100 -q 379 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3785 -p 100 -q 387 -t udp sp=49153,dp=3784 -p 100 -q 392 -t udp sp=49153,dp=3785 -p 100 -q 481 -A 192.0.2.1 -B 192.0.2.3 -t udp sp=54321,dp=12345 -p 100 -q 485 -A 2001:db8:1::1 -B 2001:db8:1::3 -t udp sp=54321,dp=12345 \ 537 -A fe80::1 -B fe80:1::2 -t udp sp=54321,sp=12345 \ 637 -t udp sp=12345,dp=319,payload=10 -p 100 -q [all …]
|
| A D | one_armed_router.sh | 136 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \ 140 skip_hw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \ 144 skip_sw dst_ip 198.51.100.1 ip_proto udp dst_port 52768 \ 148 -B 198.51.100.1 -t udp dp=52768,sp=42768 -q 179 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \ 183 skip_hw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \ 187 skip_sw dst_ip 2001:db8:2::1 ip_proto udp dst_port 52768 \ 191 -B 2001:db8:2::1 -t udp dp=52768,sp=42768 -q
|
| A D | rif_mac_profiles.sh | 113 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" \
|
| A D | devlink_trap_l3_drops.sh | 204 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 \ 579 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -p 100 -a own -b $rp1mac \ 630 $MZ $h2 -t udp "sp=54321,dp=12345" -c 0 -p 100 -a own -b $rp2mac \ [all …]
|
| /tools/testing/selftests/net/forwarding/ |
| A D | router_multicast.sh | 265 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \ 275 $MZ $h1 -6 -c 5 -p 128 -t udp -a 00:11:22:33:44:55 \ 311 $MZ $h1 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \ 320 $MZ $h3 -c 5 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \ 346 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop 348 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop 350 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop 402 $MZ $h1 -c 1 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \ 414 $MZ $h1 -c 1 -p 128 -t udp "ttl=10,sp=54321,dp=12345" \ 442 dst_ip ff0e::3 ip_proto udp dst_port 12345 action drop [all …]
|
| A D | tc_police.sh | 133 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 \ 257 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 309 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 368 -t udp sp=12345,dp=54321 -p 1001 -c 10 -q [all …]
|
| A D | custom_multipath_hash.sh | 186 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 193 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 200 -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" 207 -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" 214 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 221 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 237 -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" 244 -d $MZ_DELAY -t udp "sp=20000,dp=0-32768"
|
| A 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 177 do_test_pedit_l4port "dev $swp1 ingress" udp dport dst_port 178 do_test_pedit_l4port "dev $swp2 egress" udp dport dst_port
|
| A D | sch_red.sh | 247 backlog=$(build_backlog $((2 * limit / 3)) udp) 280 build_backlog $((2 * limit)) udp >/dev/null 301 build_backlog $((2 * limit)) udp >/dev/null 346 -a own -b $h3_mac -t udp -q & 356 build_backlog $((3 * limit / 2)) udp >/dev/null 359 send_packets udp 100 368 send_packets udp 100
|
| A D | gre_custom_multipath_hash.sh | 281 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 288 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 295 -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" 302 -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" 309 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 316 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 332 -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" 339 -d $MZ_DELAY -t udp "sp=20000,dp=0-32768"
|
| A D | ip6gre_custom_multipath_hash.sh | 283 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 290 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 297 -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" 304 -d $MZ_DELAY -t udp "sp=20000,dp=0-32768" 311 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 318 -d $MZ_DELAY -c 50 -t udp "sp=20000,dp=30000" 334 -d $MZ_DELAY -t udp "sp=0-32768,dp=30000" 341 -d $MZ_DELAY -t udp "sp=20000,dp=0-32768"
|
| A D | router.sh | 198 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
|
| /tools/testing/selftests/net/netfilter/ |
| A D | nft_tproxy_udp.sh | 188 $ip_proto daddr $ns2_ip udp dport 8080 tproxy $ip_proto to :12345 meta mark set 1 accept 193 …p netns exec "$nsrouter" socat -u "$socat_ipproto" udp-listen:12345,fork,ip-transparent,reuseport … 196 …timeout "$timeout" ip netns exec "$ns2" socat "$socat_ipproto" udp-listen:8080,fork SYSTEM:"echo P… 199 …timeout "$timeout" ip netns exec "$ns3" socat "$socat_ipproto" udp-listen:8080,fork SYSTEM:"echo P… 208 …result=$(echo I_M_PROXIED | ip netns exec "$ns1" socat -t 2 -T 2 STDIO udp:"$ns2_ip_port",sourcepo… 217 result=$(echo I_M_PROXIED | ip netns exec "$ns1" socat -t 2 -T 2 STDIO udp:"$ns3_ip_port") 226 result=$(echo I_M_PROXIED | ip netns exec "$nsrouter" socat -t 2 -T 2 STDIO udp:"$ns2_ip_port") 235 result=$(echo I_M_PROXIED | ip netns exec "$nsrouter" socat -t 2 -T 2 STDIO udp:"$ns3_ip_port")
|
| A D | conntrack_clash.sh | 27 …meta l4proto udp dnat to numgen random mod 3 map { 0 : 10.0.2.1 . 9000, 1 : 10.0.2.1 . 9001, 2 : 1… 33 udp dport $dport counter jump lb 39 udp dport $dport counter jump lb 67 wait_local_port_listen "$ns" $port udp
|
| /tools/testing/selftests/net/ |
| A D | udpgro.sh | 54 wait_local_port_listen ${PEER_NS} 8000 udp 101 wait_local_port_listen "${PEER_NS}" 8000 udp 125 wait_local_port_listen "${PEER_NS}" 12345 udp 128 wait_local_port_listen "${PEER_NS}" 8000 udp
|
| A D | udpgso.sh | 40 ethtool -K sink tx-udp-segmentation on >/dev/null 46 ethtool -K sink tx-udp-segmentation off >/dev/null 52 ethtool -K sink tx-udp-segmentation off >/dev/null
|
| A D | udpgro_fwd.sh | 130 ip netns exec $NS_DST $ipt -A INPUT -p udp --dport 4789 131 ip netns exec $NS_DST $ipt -A INPUT -p udp --dport 8000 134 wait_local_port_listen "$NS_DST" 8000 udp 183 wait_local_port_listen "$NS_DST" 8000 udp 232 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on 240 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on 254 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on
|
| /tools/testing/selftests/drivers/net/ |
| A D | netcons_fragmented_msg.sh | 103 wait_local_port_listen "${NAMESPACE}" "${PORT}" udp 118 wait_local_port_listen "${NAMESPACE}" "${PORT}" udp
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | xdp_do_redirect.c | 19 struct udphdr udp; member 31 - offsetof(struct udp_packet, udp)), 35 .udp.source = bpf_htons(1), 36 .udp.dest = bpf_htons(1), 37 .udp.len = bpf_htons(sizeof(struct udp_packet) 38 - offsetof(struct udp_packet, udp)),
|