Lines Matching refs:udph
256 struct udphdr *udph;
265 * udph->len to get the real length without any protocol check,
266 * UDPLITE uses udph->len for another thing,
270 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph));
271 if (udph == NULL)
275 ul = ntohs(udph->len);
277 if (udplite || udph->check) {
279 udph->check = 0;
283 skb->csum = csum_partial(udph, ipl - ihl, 0);
284 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl))
285 skb->csum = csum_partial(udph, ul, 0);
292 skb->csum = csum_partial(udph, ul, 0);
295 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr,
299 if (!udph->check)
300 udph->check = CSUM_MANGLED_0;
312 struct udphdr *udph;
321 * udph->len to get the real length without any protocol check,
322 * UDPLITE uses udph->len for another thing,
326 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph));
327 if (udph == NULL)
331 ul = ntohs(udph->len);
333 udph->check = 0;
337 skb->csum = csum_partial(udph, ipl - ihl, 0);
339 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl))
340 skb->csum = csum_partial(udph, ul, 0);
348 skb->csum = csum_partial(udph, ul, 0);
351 udph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ul,
355 if (!udph->check)
356 udph->check = CSUM_MANGLED_0;