/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | devlink_trap_control.sh | 309 -t udp sp=68,dp=67 -p 100 -q 313 -B 255.255.255.255 -t udp sp=67,dp=68 -p 100 -q 319 $MZ $h1 -6 -c 1 -A fe80::1 -B ff02::1:2 -t udp sp=546,dp=547 \ 323 $MZ $h1 -6 -c 1 -A fe80::1 -B ff02::1:2 -t udp sp=547,dp=546 \ 373 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3784 -p 100 -q 377 -A 192.0.2.1 -B 192.0.2.2 -t udp sp=49153,dp=3785 -p 100 -q 385 -t udp sp=49153,dp=3784 -p 100 -q 390 -t udp sp=49153,dp=3785 -p 100 -q 479 -A 192.0.2.1 -B 192.0.2.3 -t udp sp=54321,dp=12345 -p 100 -q 483 -A 2001:db8:1::1 -B 2001:db8:1::3 -t udp sp=54321,dp=12345 \ [all …]
|
D | one_armed_router.sh | 135 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
|
D | devlink_trap_l3_drops.sh | 203 flower ip_proto udp src_port 54321 dst_port 12345 action drop 206 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -b $dmac \ 241 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip \ 275 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -b $rp1mac \ 310 $MZ $h1 $flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip \ 341 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -p 100 -A $sip -b $rp1mac \ 478 $MZ $h1 -6 -t udp "sp=54321,dp=12345" -c 0 -p 100 -b \ 503 $MZ $h1 -6 -t udp "sp=54321,dp=12345" -c 0 -p 100 -b \ 533 $MZ $h1 -$flags -t udp "sp=54321,dp=12345" -c 0 -p 100 -b $rp1mac \ 578 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -p 100 -a own -b $rp1mac \ [all …]
|
D | sch_red_core.sh | 417 backlog=$(build_backlog $vlan $((2 * limit / 3)) udp) 450 build_backlog $vlan $((2 * limit)) udp >/dev/null 474 build_backlog $vlan $((2 * limit)) udp >/dev/null 567 build_backlog $vlan $((2 * limit / 3)) udp >/dev/null 575 build_backlog $vlan $((3 * limit / 2)) udp >/dev/null 578 send_packets $vlan udp 11 589 send_packets $vlan udp 11 622 flower skip_sw ip_proto udp \
|
D | devlink_trap_l3_exceptions.sh | 192 $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 \ 506 $MZ $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \ 533 $MZ -6 $h1 -t udp "sp=54321,dp=12345" -c 0 -d 1msec -b $rp1mac \
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
D | tc_police.sh | 131 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 135 -t udp sp=12345,dp=54321 -p 1000 -c 0 -q & 157 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 169 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 185 -t udp sp=12345,dp=$dport -p 1000 -c 0 -q & 206 dst_ip 198.51.100.1 ip_proto udp src_port 12345 \ 211 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 218 dst_ip 198.51.100.1 ip_proto udp dst_port 22222 \ 240 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ 245 dst_ip 198.51.100.1 ip_proto udp dst_port 54321 \ [all …]
|
D | router_multicast.sh | 248 $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 …]
|
D | sch_red.sh | 266 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
|
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
|
D | router.sh | 180 flower src_ip 240.0.0.1 ip_proto udp action pass 182 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \ 231 $MZ $flags $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $dmac \ 260 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \ 280 $MZ -6 $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec \ 303 $MZ $h1 -t udp "sp=54321,dp=12345" -c 5 -d 1msec -b $rp1mac -B $dip -q
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nf_nat_sip.c | 108 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 …]
|
D | nf_conntrack_broadcast.c | 61 exp->tuple.src.u.udp.port = help->helper->tuple.src.u.udp.port; in nf_conntrack_broadcast_help() 64 exp->mask.src.u.udp.port = htons(0xFFFF); in nf_conntrack_broadcast_help()
|
D | nf_nat_tftp.c | 29 exp->saved_proto.udp.port in help() 30 = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port; in help()
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | parse_varlen.c | 33 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()
|
D | parse_simple.c | 32 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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_tc_tunnel.c | 41 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 …]
|
D | test_l4lb_noinline.c | 283 struct udphdr *udp; in parse_udp() local 284 udp = data + off; in parse_udp() 286 if (udp + 1 > data_end) in parse_udp() 290 pckt->port16[0] = udp->source; in parse_udp() 291 pckt->port16[1] = udp->dest; in parse_udp() 293 pckt->port16[0] = udp->dest; in parse_udp() 294 pckt->port16[1] = udp->source; in parse_udp()
|
D | test_l4lb.c | 286 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()
|
D | bpf_flow.c | 159 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()
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 158 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_mplsoudp.c | 33 struct udphdr *udp = (struct udphdr *)(buf); in generate_ip_tun_hdr() local 38 mpls = (struct mpls_shim_hdr *)(udp + 1); in generate_ip_tun_hdr() 41 udp->dest = tun_key->tp_dst; in generate_ip_tun_hdr()
|
D | tc_tun_vxlan.c | 88 struct udphdr *udp = (struct udphdr *)(buf); in mlx5e_gen_ip_tunnel_header_vxlan() local 93 vxh = (struct vxlanhdr *)((char *)udp + sizeof(struct udphdr)); in mlx5e_gen_ip_tunnel_header_vxlan() 96 udp->dest = tun_key->tp_dst; in mlx5e_gen_ip_tunnel_header_vxlan()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | ud_header.c | 168 { STRUCT_FIELD(udp, sport), 172 { STRUCT_FIELD(udp, dport), 176 { STRUCT_FIELD(udp, length), 180 { STRUCT_FIELD(udp, csum), 380 header->udp.length = in ib_ud_header_init() 445 &header->udp, buf + len); in ib_ud_header_pack()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_flow_dissector.sh | 109 udp src_port 9 action drop 145 udp src_port 8-10 action drop 159 udp src_port 9 action drop
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | vector_transports.c | 54 bool udp; member 72 if (td->udp) in l2tpv3_form_header() 137 if ((!td->udp) && (!td->ipv6)) in l2tpv3_verify_header() 385 td->udp = true; in build_l2tpv3_transport_data() 394 if ((!td->ipv6) && (!td->udp)) in build_l2tpv3_transport_data()
|