| /tools/testing/selftests/bpf/progs/ |
| A D | test_tc_tunnel.c | 183 case IPPROTO_UDP: in __encap_ipv4() 314 case IPPROTO_UDP: in __encap_ipv6() 474 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 483 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_MPLS_UC); in __encap_udp_mpls() 492 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_TEB); in __encap_udp_eth() 501 return __encap_ipv4(skb, IPPROTO_UDP, in __encap_vxlan_eth() 566 return encap_ipv6(skb, IPPROTO_UDP, ETH_P_IPV6); in __encap_ip6udp_none() 575 return encap_ipv6(skb, IPPROTO_UDP, ETH_P_MPLS_UC); in __encap_ip6udp_mpls() 584 return encap_ipv6(skb, IPPROTO_UDP, ETH_P_TEB); in __encap_ip6udp_eth() 593 return __encap_ipv6(skb, IPPROTO_UDP, in __encap_ip6vxlan_eth() [all …]
|
| A D | test_assign_reuse.c | 44 } else if (ctx->ip_protocol == IPPROTO_UDP) { in reuse_accept() 125 else if (iph->protocol == IPPROTO_UDP) in tc_main() 137 else if (ip6h->nexthdr == IPPROTO_UDP) in tc_main()
|
| A D | xdp_metadata.c | 55 if (iph + 1 < data_end && iph->protocol == IPPROTO_UDP) in rx() 60 if (ip6h + 1 < data_end && ip6h->nexthdr == IPPROTO_UDP) in rx()
|
| A D | xdp_hw_metadata.c | 52 if (iph + 1 < data_end && iph->protocol == IPPROTO_UDP) in rx() 57 if (ip6h + 1 < data_end && ip6h->nexthdr == IPPROTO_UDP) in rx()
|
| A D | cgroup_ancestor.c | 30 if (sk->sk_protocol == IPPROTO_UDP && sk->sk_dport == dport) { in log_cgroup_id()
|
| A D | test_tc_dtime.c | 126 return IPPROTO_UDP; in get_proto() 191 case IPPROTO_UDP: in skb_get_type() 230 } else if (skb_proto(skb_type) == IPPROTO_UDP) { in egress_host()
|
| A D | decap_sanity.c | 45 if (ip6h.nexthdr != IPPROTO_UDP) in decap_sanity()
|
| A D | vrf_socket_lookup.c | 48 case IPPROTO_UDP: in socket_lookup()
|
| A D | xdpwall.c | 245 } else if (info->proto == IPPROTO_UDP) { in filter_transport_hdr() 311 if (info->proto == IPPROTO_UDP) in parse_ipv6_gue() 343 if (info.proto != IPPROTO_TCP && info.proto != IPPROTO_UDP) in edgewall()
|
| A D | test_xdp_do_redirect.c | 75 if (iph->nexthdr != IPPROTO_UDP || *payload != MARK_IN) in check_pkt()
|
| A D | xdp_features.c | 94 if (ih->protocol != IPPROTO_UDP) in xdp_process_echo_packet() 112 if (ih6->nexthdr != IPPROTO_UDP) in xdp_process_echo_packet()
|
| A D | test_tc_change_tail.c | 75 if (ip_proto != IPPROTO_UDP) in change_tail()
|
| A D | crypto_sanity.c | 32 if (ip6h.nexthdr != IPPROTO_UDP) in skb_dynptr_validate()
|
| A D | sock_destroy_prog.c | 40 else if (ctx->protocol == IPPROTO_UDP) in sock_connect()
|
| /tools/testing/selftests/net/ |
| A D | socket.c | 32 { AF_INET, SOCK_DGRAM, IPPROTO_UDP, 0, 1 }, 33 { AF_INET, SOCK_STREAM, IPPROTO_UDP, -EPROTONOSUPPORT, 1 },
|
| A D | skf_net_off.c | 87 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, IPPROTO_UDP, 0, 2), in sk_set_filter() 107 fd = socket(PF_INET6, SOCK_RAW, IPPROTO_UDP); in raw_open() 137 ip6h.nexthdr = IPPROTO_UDP; in tun_write()
|
| A 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()
|
| A D | nat6to4.bpf.c | 81 case IPPROTO_UDP: // address means there is no need to update their checksums. in sched_cls_ingress6_nat_6_prog() 209 case IPPROTO_UDP: // See above comment, but must also have UDP header... in sched_cls_egress4_snat4_prog()
|
| A D | io_uring_zerocopy_tx.c | 121 do_setsockopt(fd, IPPROTO_UDP, UDP_CORK, 1); in do_tx() 155 do_setsockopt(fd, IPPROTO_UDP, UDP_CORK, 0); in do_tx()
|
| A D | txtimestamp.c | 428 pseudo_sum = htons(IPPROTO_UDP); in get_udp_csum() 449 iph->protocol = IPPROTO_UDP; in fill_header_ipv4() 464 ip6h->nexthdr = IPPROTO_UDP; in fill_header_ipv6() 783 cfg_ipproto = IPPROTO_UDP; in parse_opt() 799 cfg_ipproto = IPPROTO_UDP; in parse_opt()
|
| /tools/testing/selftests/net/lib/ |
| A D | csum.c | 105 static int cfg_proto = IPPROTO_UDP; 247 uh->check = checksum(uh, IPPROTO_UDP, sizeof(*uh) + cfg_payload_len); in build_packet_udp() 311 if (cfg_proto == IPPROTO_UDP) in build_packet() 317 proto = IPPROTO_UDP; in build_packet() 330 else if (cfg_proto == IPPROTO_UDP) in build_packet() 656 uint16_t proto = cfg_encap ? IPPROTO_UDP : cfg_proto; in recv_verify_packet_ipv4() 677 uint16_t proto = cfg_encap ? IPPROTO_UDP : cfg_proto; in recv_verify_packet_ipv6() 852 cfg_proto = IPPROTO_UDP; in parse_args() 880 if (cfg_proto != IPPROTO_UDP && (cfg_zero_sum || cfg_zero_disable)) in parse_args() 967 if (cfg_proto == IPPROTO_UDP) in do_rx() [all …]
|
| A D | xdp_native.bpf.c | 83 iph->protocol != IPPROTO_UDP) in filter_udphdr() 91 ipv6h->nexthdr != IPPROTO_UDP) in filter_udphdr() 161 iph->protocol != IPPROTO_UDP) in xdp_mode_tx_handler() 186 ipv6h->nexthdr != IPPROTO_UDP) in xdp_mode_tx_handler()
|
| /tools/include/uapi/linux/ |
| A D | in.h | 44 IPPROTO_UDP = 17, /* User Datagram Protocol */ enumerator 45 #define IPPROTO_UDP IPPROTO_UDP macro
|
| /tools/testing/selftests/bpf/ |
| A D | network_helpers.h | 231 IPPROTO_UDP, sum); in build_udp_v4_csum() 251 IPPROTO_UDP, sum); in build_udp_v6_csum()
|
| /tools/testing/selftests/net/netfilter/ |
| A D | conntrack_reverse_clash.c | 47 int fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in udp_socket()
|