Home
last modified time | relevance | path

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

/linux-6.1.9/net/core/
Dselftests.c58 struct udphdr *uhdr = NULL; in net_test_get_skb() local
91 uhdr = skb_put(skb, sizeof(*uhdr)); in net_test_get_skb()
108 uhdr->source = htons(attr->sport); in net_test_get_skb()
109 uhdr->dest = htons(attr->dport); in net_test_get_skb()
110 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); in net_test_get_skb()
112 uhdr->len = htons(attr->max_size - in net_test_get_skb()
114 uhdr->check = 0; in net_test_get_skb()
128 iplen += sizeof(*uhdr); in net_test_get_skb()
180 struct udphdr *uhdr; in net_test_loopback_validate() local
221 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in net_test_loopback_validate()
[all …]
/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_proto_udp.c93 udp_fast_csum_update(int af, struct udphdr *uhdr, in udp_fast_csum_update() argument
100 uhdr->check = in udp_fast_csum_update()
103 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
106 uhdr->check = in udp_fast_csum_update()
109 ~csum_unfold(uhdr->check)))); in udp_fast_csum_update()
110 if (!uhdr->check) in udp_fast_csum_update()
111 uhdr->check = CSUM_MANGLED_0; in udp_fast_csum_update()
115 udp_partial_csum_update(int af, struct udphdr *uhdr, in udp_partial_csum_update() argument
122 uhdr->check = in udp_partial_csum_update()
125 csum_unfold(uhdr->check)))); in udp_partial_csum_update()
[all …]
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_selftests.c63 struct udphdr *uhdr = NULL; in stmmac_test_get_udp_skb() local
108 uhdr = skb_put(skb, sizeof(*uhdr)); in stmmac_test_get_udp_skb()
155 uhdr->source = htons(attr->sport); in stmmac_test_get_udp_skb()
156 uhdr->dest = htons(attr->dport); in stmmac_test_get_udp_skb()
157 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); in stmmac_test_get_udp_skb()
159 uhdr->len = htons(attr->max_size - in stmmac_test_get_udp_skb()
161 uhdr->check = 0; in stmmac_test_get_udp_skb()
175 iplen += sizeof(*uhdr); in stmmac_test_get_udp_skb()
256 struct udphdr *uhdr; in stmmac_test_loopback_validate() local
299 uhdr = (struct udphdr *)((u8 *)ihdr + 4 * ihdr->ihl); in stmmac_test_loopback_validate()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_fdir.c43 struct virtchnl_proto_hdr *uhdr = &proto_hdrs->proto_hdr[proto_hdrs->count - 1]; in iavf_fill_fdir_gtpu_hdr() local
100 uhdr->field_selector = 0; /* The PF ignores the UDP header fields */ in iavf_fill_fdir_gtpu_hdr()
116 struct virtchnl_proto_hdr *uhdr = &proto_hdrs->proto_hdr[proto_hdrs->count - 1]; in iavf_fill_fdir_pfcp_hdr() local
142 uhdr->field_selector = 0; /* The PF ignores the UDP header fields */ in iavf_fill_fdir_pfcp_hdr()
158 struct virtchnl_proto_hdr *uhdr = &proto_hdrs->proto_hdr[proto_hdrs->count - 1]; in iavf_fill_fdir_nat_t_esp_hdr() local
194 uhdr->field_selector = 0; /* The PF ignores the UDP header fields */ in iavf_fill_fdir_nat_t_esp_hdr()
/linux-6.1.9/drivers/misc/sgi-gru/
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-6.1.9/drivers/message/fusion/
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()