/tools/testing/selftests/bpf/progs/ |
D | test_tc_tunnel.c | 156 case IPPROTO_UDP: in encap_ipv4() 264 case IPPROTO_UDP: in encap_ipv6() 352 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 361 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_MPLS_UC); in __encap_udp_mpls() 370 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_TEB); in __encap_udp_eth() 424 return encap_ipv6(skb, IPPROTO_UDP, ETH_P_IPV6); in __encap_ip6udp_none() 433 return encap_ipv6(skb, IPPROTO_UDP, ETH_P_MPLS_UC); in __encap_ip6udp_mpls() 442 return encap_ipv6(skb, IPPROTO_UDP, ETH_P_TEB); in __encap_ip6udp_eth() 471 case IPPROTO_UDP: in decap_internal()
|
D | test_select_reuseport_kern.c | 128 } else if (data_check.ip_protocol == IPPROTO_UDP) { in _select_by_skb_data()
|
D | test_xdp.c | 60 case IPPROTO_UDP: in get_dport()
|
D | test_xdp_loop.c | 56 case IPPROTO_UDP: in get_dport()
|
D | test_xdp_noinline.c | 592 if (pckt->flow.proto == IPPROTO_UDP) in get_packet_dst() 613 if (pckt->flow.proto == IPPROTO_UDP) { in connection_table_lookup() 724 } else if (protocol == IPPROTO_UDP) { in process_packet()
|
D | bpf_flow.c | 226 case IPPROTO_UDP: in parse_ip_proto()
|
D | test_l4lb.c | 399 } else if (protocol == IPPROTO_UDP) { in process_packet()
|
D | test_l4lb_noinline.c | 399 } else if (protocol == IPPROTO_UDP) { in process_packet()
|
/tools/testing/selftests/net/ |
D | socket.c | 30 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 }, 31 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
|
D | ip_defrag.c | 107 IPPROTO_UDP + (uint32_t)(UDP_HLEN + payload_len)); in udp_checksum() 123 IPPROTO_UDP); in udp6_checksum() 228 fraghdr->ip6f_nxt = IPPROTO_UDP; in send_udp_frags() 238 iphdr->ip_p = IPPROTO_UDP; in send_udp_frags()
|
D | psock_snd.c | 126 iph->protocol = IPPROTO_UDP; in build_ipv4_header() 146 htons(IPPROTO_UDP) + udph->len); in build_udp_header()
|
D | txring_overwrite.c | 60 iph->protocol = IPPROTO_UDP; in build_packet()
|
D | udpgso_bench_rx.c | 364 if (setsockopt(fd, IPPROTO_UDP, UDP_GRO, &val, sizeof(val))) in do_recv()
|
D | msg_zerocopy.c | 235 do_setsockopt(fd, IPPROTO_UDP, UDP_CORK, 1); in do_sendmsg_corked() 253 do_setsockopt(fd, IPPROTO_UDP, UDP_CORK, 0); in do_sendmsg_corked()
|
D | nettest.c | 1729 args.protocol = IPPROTO_UDP; in main()
|
/tools/include/uapi/linux/ |
D | in.h | 43 IPPROTO_UDP = 17, /* User Datagram Protocol */ enumerator 44 #define IPPROTO_UDP IPPROTO_UDP macro
|
/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 218 pseudo_sum += htons(IPPROTO_UDP); in build_udp_v4_csum() 290 else if (cfg_encap_proto == IPPROTO_UDP) in build_packet() 314 IPPROTO_UDP, in build_packet() 322 IPPROTO_UDP, in build_packet() 352 case IPPROTO_UDP: in build_packet() 648 cfg_encap_proto = IPPROTO_UDP; in parse_opts()
|
D | test_select_reuseport.c | 252 expected.ip_protocol = IPPROTO_UDP; in check_data()
|
D | test_maps.c | 1661 fd64 = socket(AF_INET6, SOCK_RAW, IPPROTO_UDP); in test_reuseport_array()
|
/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.c | 325 pseudo_sum = htons(IPPROTO_UDP); in get_udp_csum() 346 iph->protocol = IPPROTO_UDP; in fill_header_ipv4() 361 ip6h->nexthdr = IPPROTO_UDP; in fill_header_ipv6() 619 cfg_ipproto = IPPROTO_UDP; in parse_opt() 629 cfg_ipproto = IPPROTO_UDP; in parse_opt()
|
D | rxtimestamp.c | 63 { "udp", SOCK_DGRAM, IPPROTO_UDP },
|
D | timestamping.c | 354 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); in main()
|