Home
last modified time | relevance | path

Searched refs:uhdr (Results 1 – 7 of 7) sorted by relevance

/linux/net/core/
H A Dselftests.c23 struct udphdr *uhdr = NULL;
56 uhdr = skb_put(skb, sizeof(*uhdr)); in net_test_get_skb()
73 uhdr->source = htons(attr->sport); in net_test_get_skb()
74 uhdr->dest = htons(attr->dport); in net_test_get_skb()
75 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); in net_test_get_skb()
77 uhdr->len = htons(attr->max_size - in net_test_get_skb()
79 uhdr->check = 0; in net_test_get_skb()
93 iplen += sizeof(*uhdr); in net_test_get_skb()
59 struct udphdr *uhdr = NULL; net_test_get_skb() local
204 struct udphdr *uhdr; net_test_loopback_validate() local
[all...]
/linux/io_uring/
H A Dquery.c56 static int io_handle_query_entry(union io_query_data *data, void __user *uhdr, in io_handle_query_entry() argument
64 if (copy_from_user(&hdr, uhdr, sizeof(hdr))) in io_handle_query_entry()
103 if (copy_to_user(uhdr, &hdr, sizeof(hdr))) in io_handle_query_entry()
112 void __user *uhdr = arg; in io_query() local
120 while (uhdr) { in io_query()
123 ret = io_handle_query_entry(&entry_buffer, uhdr, &next_hdr); in io_query()
126 uhdr = u64_to_user_ptr(next_hdr); in io_query()
/linux/include/linux/
H A Dptp_classify.h171 struct udphdr *uhdr; in ptp_header_update_correction() local
183 uhdr = (struct udphdr *)((char *)hdr - sizeof(struct udphdr)); in ptp_header_update_correction()
190 uhdr->check = csum_fold(ptp_check_diff8(correction_old, in ptp_header_update_correction()
192 ~csum_unfold(uhdr->check))); in ptp_header_update_correction()
193 if (!uhdr->check) in ptp_header_update_correction()
194 uhdr->check = CSUM_MANGLED_0; in ptp_header_update_correction()
/linux/net/netfilter/ipvs/
H A Dip_vs_proto_udp.c92 udp_fast_csum_update(int af, struct udphdr *uhdr,
99 uhdr->check = in udp_fast_csum_update()
102 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
105 uhdr->check = in udp_fast_csum_update()
108 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
109 if (!uhdr->check) in udp_fast_csum_update()
110 uhdr->check = CSUM_MANGLED_0; in udp_fast_csum_update()
114 udp_partial_csum_update(int af, struct udphdr *uhdr,
121 uhdr->check = in udp_partial_csum_update()
124 csum_unfold(uhdr in udp_partial_csum_update()
93 udp_fast_csum_update(int af,struct udphdr * uhdr,const union nf_inet_addr * oldip,const union nf_inet_addr * newip,__be16 oldport,__be16 newport) udp_fast_csum_update() argument
115 udp_partial_csum_update(int af,struct udphdr * uhdr,const union nf_inet_addr * oldip,const union nf_inet_addr * newip,__be16 oldlen,__be16 newlen) udp_partial_csum_update() argument
[all...]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_fdir.c117 struct virtchnl_proto_hdr *uhdr = &proto_hdrs->proto_hdr[proto_hdrs->count - 1]; in iavf_fill_fdir_gtpu_hdr() local
174 uhdr->field_selector = 0; /* The PF ignores the UDP header fields */ in iavf_fill_fdir_gtpu_hdr()
190 struct virtchnl_proto_hdr *uhdr = &proto_hdrs->proto_hdr[proto_hdrs->count - 1]; in iavf_fill_fdir_pfcp_hdr() local
216 uhdr->field_selector = 0; /* The PF ignores the UDP header fields */ in iavf_fill_fdir_pfcp_hdr()
232 struct virtchnl_proto_hdr *uhdr = &proto_hdrs->proto_hdr[proto_hdrs->count - 1]; in iavf_fill_fdir_nat_t_esp_hdr() local
268 uhdr->field_selector = 0; /* The PF ignores the UDP header fields */ in iavf_fill_fdir_nat_t_esp_hdr()
/linux/drivers/misc/sgi-gru/
H A Dgrukdump.c112 struct gru_dump_context_header __user *uhdr = ubuf; in gru_dump_context() local
169 if (copy_to_user(uhdr, &hdr, sizeof(hdr))) in gru_dump_context()
/linux/drivers/message/fusion/
H A Dmptctl.c621 mpt_ioctl_header __user *uhdr = (void __user *) arg; in __mptctl_ioctl() local
628 if (copy_from_user(&khdr, uhdr, sizeof(khdr))) { in __mptctl_ioctl()
631 __FILE__, __LINE__, uhdr); in __mptctl_ioctl()