Home
last modified time | relevance | path

Searched refs:IPPROTO_UDP (Results 1 – 22 of 22) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_tc_tunnel.c156 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()
Dtest_select_reuseport_kern.c128 } else if (data_check.ip_protocol == IPPROTO_UDP) { in _select_by_skb_data()
Dtest_xdp.c60 case IPPROTO_UDP: in get_dport()
Dtest_xdp_loop.c56 case IPPROTO_UDP: in get_dport()
Dtest_xdp_noinline.c592 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()
Dbpf_flow.c226 case IPPROTO_UDP: in parse_ip_proto()
Dtest_l4lb.c399 } else if (protocol == IPPROTO_UDP) { in process_packet()
Dtest_l4lb_noinline.c399 } else if (protocol == IPPROTO_UDP) { in process_packet()
/tools/testing/selftests/net/
Dsocket.c30 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 },
31 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
Dip_defrag.c107 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()
Dpsock_snd.c126 iph->protocol = IPPROTO_UDP; in build_ipv4_header()
146 htons(IPPROTO_UDP) + udph->len); in build_udp_header()
Dtxring_overwrite.c60 iph->protocol = IPPROTO_UDP; in build_packet()
Dudpgso_bench_rx.c364 if (setsockopt(fd, IPPROTO_UDP, UDP_GRO, &val, sizeof(val))) in do_recv()
Dmsg_zerocopy.c235 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()
Dnettest.c1729 args.protocol = IPPROTO_UDP; in main()
/tools/include/uapi/linux/
Din.h43 IPPROTO_UDP = 17, /* User Datagram Protocol */ enumerator
44 #define IPPROTO_UDP IPPROTO_UDP macro
/tools/testing/selftests/bpf/
Dtest_flow_dissector.c218 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()
Dtest_select_reuseport.c252 expected.ip_protocol = IPPROTO_UDP; in check_data()
Dtest_maps.c1661 fd64 = socket(AF_INET6, SOCK_RAW, IPPROTO_UDP); in test_reuseport_array()
/tools/testing/selftests/networking/timestamping/
Dtxtimestamp.c325 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()
Drxtimestamp.c63 { "udp", SOCK_DGRAM, IPPROTO_UDP },
Dtimestamping.c354 sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); in main()