/Linux-v4.19/net/ipv4/ |
D | udp_offload.c | 26 struct udphdr *uh = udp_hdr(skb); in __skb_udp_tunnel_segment() 144 skb->csum_offset = offsetof(struct udphdr, check); in __skb_udp_tunnel_segment() 196 struct udphdr *uh; in __udp_gso_segment() 292 struct udphdr *uh; in udp4_ufo_fragment() 305 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in udp4_ufo_fragment() 347 struct udphdr *uh, udp_lookup_t lookup) in udp_gro_receive() 351 struct udphdr *uh2; in udp_gro_receive() 379 uh2 = (struct udphdr *)(p->data + off); in udp_gro_receive() 391 skb_gro_pull(skb, sizeof(struct udphdr)); /* pull encapsulating udp header */ in udp_gro_receive() 392 skb_gro_postpull_rcsum(skb, uh, sizeof(struct udphdr)); in udp_gro_receive() [all …]
|
D | xfrm4_input.c | 90 struct udphdr *uh; in xfrm4_udp_encap_rcv() 104 len = skb->len - sizeof(struct udphdr); in xfrm4_udp_encap_rcv() 105 if (!pskb_may_pull(skb, sizeof(struct udphdr) + min(len, 8))) in xfrm4_udp_encap_rcv() 110 udpdata = (__u8 *)uh + sizeof(struct udphdr); in xfrm4_udp_encap_rcv() 121 len = sizeof(struct udphdr); in xfrm4_udp_encap_rcv() 134 len = sizeof(struct udphdr) + 2 * sizeof(u32); in xfrm4_udp_encap_rcv()
|
D | fou.c | 76 if (fou_recv_pull(skb, fou, sizeof(struct udphdr))) in fou_udp_recv() 93 size_t plen = sizeof(struct udphdr) + hdrlen + in gue_remcsum() 127 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_udp_recv() 153 if (fou_recv_pull(skb, fou, sizeof(struct udphdr))) in gue_udp_recv() 214 __skb_pull(skb, sizeof(struct udphdr) + hdrlen); in gue_udp_recv() 840 return sizeof(struct udphdr); in fou_encap_hlen() 849 len = sizeof(struct udphdr) + sizeof(struct guehdr); in gue_encap_hlen() 956 struct udphdr *uh; in fou_build_udp() 958 skb_push(skb, sizeof(struct udphdr)); in fou_build_udp()
|
D | udp.c | 450 sizeof(struct udphdr)); in udp4_lib_lookup2() 517 sizeof(struct udphdr)); in __udp4_lib_lookup() 603 struct udphdr *uh = (struct udphdr *)(skb->data+(iph->ihl<<2)); in __udp4_lib_err() 700 struct udphdr *uh = udp_hdr(skb); in udp4_hwcsum() 711 skb->csum_offset = offsetof(struct udphdr, check); in udp4_hwcsum() 743 struct udphdr *uh = udp_hdr(skb); in udp_set_csum() 757 skb->csum_offset = offsetof(struct udphdr, check); in udp_set_csum() 768 struct udphdr *uh; in udp_send_skb() 786 sizeof(struct udphdr); in udp_send_skb() 952 ulen += sizeof(struct udphdr); in udp_sendmsg() [all …]
|
/Linux-v4.19/drivers/infiniband/sw/rxe/ |
D | rxe_icrc.c | 43 struct udphdr *udph; in rxe_icrc_hdr() 47 int hdr_size = sizeof(struct udphdr) + in rxe_icrc_hdr() 53 u8 pshdr[sizeof(struct udphdr) + in rxe_icrc_hdr() 65 udph = (struct udphdr *)(ip4h + 1); in rxe_icrc_hdr() 73 udph = (struct udphdr *)(ip6h + 1); in rxe_icrc_hdr()
|
/Linux-v4.19/net/6lowpan/ |
D | nhc_udp.c | 45 struct udphdr uh; in udp_uncompress() 100 uh.len = htons(skb->len + sizeof(struct udphdr)); in udp_uncompress() 103 uh.len = htons(skb->len + sizeof(struct udphdr)); in udp_uncompress() 115 skb_push(skb, sizeof(struct udphdr)); in udp_uncompress() 116 skb_copy_to_linear_data(skb, &uh, sizeof(struct udphdr)); in udp_uncompress() 123 const struct udphdr *uh = udp_hdr(skb); in udp_compress() 183 LOWPAN_NHC(nhc_udp, "RFC6282 UDP", NEXTHDR_UDP, sizeof(struct udphdr),
|
/Linux-v4.19/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic_main.c | 133 struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in snmp_translate() 134 u16 datalen = ntohs(udph->len) - sizeof(struct udphdr); in snmp_translate() 135 char *data = (unsigned char *)udph + sizeof(struct udphdr); in snmp_translate() 150 ctx.begin = (unsigned char *)udph + sizeof(struct udphdr); in snmp_translate() 171 const struct udphdr *udph = (struct udphdr *)((__be32 *)iph + iph->ihl); in help()
|
/Linux-v4.19/net/netfilter/ |
D | nf_nat_proto_udp.c | 36 unsigned int iphdroff, struct udphdr *hdr, in __udp_manip_pkt() 68 struct udphdr *hdr; in udp_manip_pkt() 74 hdr = (struct udphdr *)(skb->data + hdroff); in udp_manip_pkt() 90 struct udphdr *hdr; in udplite_manip_pkt() 95 hdr = (struct udphdr *)(skb->data + hdroff); in udplite_manip_pkt()
|
D | nf_conntrack_proto_udp.c | 92 const struct udphdr *hdr; in udplite_error() 93 struct udphdr _hdr; in udplite_error() 141 const struct udphdr *hdr; in udp_error() 142 struct udphdr _hdr; in udp_error()
|
/Linux-v4.19/include/linux/ |
D | udp.h | 25 static inline struct udphdr *udp_hdr(const struct sk_buff *skb) in udp_hdr() 27 return (struct udphdr *)skb_transport_header(skb); in udp_hdr() 30 static inline struct udphdr *inner_udp_hdr(const struct sk_buff *skb) in inner_udp_hdr() 32 return (struct udphdr *)skb_inner_transport_header(skb); in inner_udp_hdr()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_select_reuseport_kern.c | 123 struct udphdr *uh = data; in _select_by_skb_data() 131 if (sizeof(struct udphdr) + sizeof(*cmd) > data_check.len) in _select_by_skb_data() 133 if (data + sizeof(struct udphdr) + sizeof(*cmd) > data_end) { in _select_by_skb_data() 134 if (bpf_skb_load_bytes(reuse_md, sizeof(struct udphdr), in _select_by_skb_data() 139 cmd = data + sizeof(struct udphdr); in _select_by_skb_data()
|
/Linux-v4.19/net/ipv6/ |
D | udp_offload.c | 43 struct udphdr *uh; in udp6_ufo_fragment() 48 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in udp6_ufo_fragment() 120 struct udphdr *uh = udp_gro_udphdr(skb); in udp6_gro_receive() 148 struct udphdr *uh = (struct udphdr *)(skb->data + nhoff); in udp6_gro_complete()
|
D | udp.c | 185 sizeof(struct udphdr)); in udp6_lib_lookup2() 253 sizeof(struct udphdr)); in __udp6_lib_lookup() 430 sizeof(struct udphdr), off); in udpv6_recvmsg() 474 struct udphdr *uh = (struct udphdr *)(skb->data+offset); in __udp6_lib_err() 623 if (sk_filter_trim_cap(sk, skb, sizeof(struct udphdr))) in udpv6_queue_rcv_skb() 684 const struct udphdr *uh = udp_hdr(skb); in __udp6_lib_mcast_deliver() 759 struct udphdr *uh) in udp6_unicast_rcv_skb() 780 struct udphdr *uh; in __udp6_lib_rcv() 784 if (!pskb_may_pull(skb, sizeof(struct udphdr))) in __udp6_lib_rcv() 910 const struct udphdr *uh; in udp_v6_early_demux() [all …]
|
D | ip6_checksum.c | 65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) in udp6_csum_init() 103 struct udphdr *uh = udp_hdr(skb); in udp6_set_csum() 117 skb->csum_offset = offsetof(struct udphdr, check); in udp6_set_csum()
|
D | fou6.c | 22 struct udphdr *uh; in fou6_build_udp() 24 skb_push(skb, sizeof(struct udphdr)); in fou6_build_udp()
|
/Linux-v4.19/arch/powerpc/platforms/ps3/ |
D | gelic_udbg.c | 68 static __iomem struct udphdr *h_udp; 181 header_size += sizeof(struct udphdr); in gelic_debug_init() 182 h_udp = (struct udphdr *)(h_ip + 1); in gelic_debug_init() 204 h_ip->tot_len = msgsize + sizeof(struct udphdr) + in gelic_sendbuf() 206 h_udp->len = msgsize + sizeof(struct udphdr); in gelic_sendbuf()
|
/Linux-v4.19/include/net/ |
D | udp.h | 134 sizeof(struct udphdr), 0); in udp_csum_outgoing() 144 sizeof(struct udphdr), skb->csum); in udp_csum() 164 skb->csum = csum_partial(skb->data, sizeof(struct udphdr), in udp_csum_pull_header() 166 skb_pull_rcsum(skb, sizeof(struct udphdr)); in udp_csum_pull_header() 167 UDP_SKB_CB(skb)->cscov -= sizeof(struct udphdr); in udp_csum_pull_header() 174 struct udphdr *uh, udp_lookup_t lookup); 180 static inline struct udphdr *udp_gro_udphdr(struct sk_buff *skb) in udp_gro_udphdr() 182 struct udphdr *uh; in udp_gro_udphdr()
|
D | vxlan.h | 30 #define VXLAN_HLEN (sizeof(struct udphdr) + sizeof(struct vxlanhdr)) 312 sizeof(struct udphdr) + sizeof(struct vxlanhdr)) || in vxlan_features_check() 356 offsetof(struct udphdr, check) : in vxlan_rco_offset() 364 if (offset == offsetof(struct udphdr, check)) in vxlan_compute_rco()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_selftest.c | 118 struct udphdr *udph; in mlx5e_test_get_udp_skb() 142 udph = skb_put(skb, sizeof(struct udphdr)); in mlx5e_test_get_udp_skb() 152 udph->len = htons(datalen + sizeof(struct udphdr)); in mlx5e_test_get_udp_skb() 160 iplen = sizeof(struct iphdr) + sizeof(struct udphdr) + datalen; in mlx5e_test_get_udp_skb() 204 struct udphdr *udph; in mlx5e_test_loopback_validate() 220 udph = (struct udphdr *)((u8 *)iph + 4 * iph->ihl); in mlx5e_test_loopback_validate()
|
/Linux-v4.19/net/batman-adv/ |
D | gateway_client.c | 639 struct udphdr *udphdr; in batadv_gw_dhcp_recipient_get() local 693 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get() 696 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get() 697 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get() 702 if (udphdr->dest == htons(67)) in batadv_gw_dhcp_recipient_get() 704 else if (udphdr->source == htons(67)) in batadv_gw_dhcp_recipient_get() 708 if (udphdr->dest == htons(547)) in batadv_gw_dhcp_recipient_get() 710 else if (udphdr->source == htons(547)) in batadv_gw_dhcp_recipient_get()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | psock_snd.c | 80 vh->hdr_len = ETH_HLEN + sizeof(struct iphdr) + sizeof(struct udphdr); in build_vnet_header() 85 vh->csum_offset = __builtin_offsetof(struct udphdr, check); in build_vnet_header() 89 vh->csum_start += sizeof(struct udphdr) + cfg_payload_len - in build_vnet_header() 124 iph->tot_len = htons(sizeof(*iph) + sizeof(struct udphdr) + payload_len); in build_ipv4_header() 137 struct udphdr *udph = header; in build_udp_header()
|
/Linux-v4.19/net/ipv6/ila/ |
D | ila_common.c | 93 if (likely(pskb_may_pull(skb, nhoff + sizeof(struct udphdr)))) { in ila_csum_adjust_transport() 94 struct udphdr *uh = (struct udphdr *) in ila_csum_adjust_transport()
|
/Linux-v4.19/net/netfilter/ipvs/ |
D | ip_vs_proto_udp.c | 38 struct udphdr _udph, *uh; in udp_conn_schedule() 94 udp_fast_csum_update(int af, struct udphdr *uhdr, in udp_fast_csum_update() 116 udp_partial_csum_update(int af, struct udphdr *uhdr, in udp_partial_csum_update() 140 struct udphdr *udph; in udp_snat_handler() 223 struct udphdr *udph; in udp_dnat_handler() 303 struct udphdr _udph, *uh; in udp_csum_check()
|
/Linux-v4.19/net/netfilter/ipset/ |
D | ip_set_getport.c | 54 struct udphdr _udph; in get_port() 55 const struct udphdr *uh; in get_port()
|
/Linux-v4.19/include/uapi/linux/ |
D | udp.h | 23 struct udphdr { struct
|