Lines Matching refs:udph
257 struct udphdr *udph;
266 * udph->len to get the real length without any protocol check,
267 * UDPLITE uses udph->len for another thing,
271 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph));
272 if (udph == NULL)
276 ul = ntohs(udph->len);
278 if (udplite || udph->check) {
280 udph->check = 0;
284 skb->csum = csum_partial(udph, ipl - ihl, 0);
285 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl))
286 skb->csum = csum_partial(udph, ul, 0);
293 skb->csum = csum_partial(udph, ul, 0);
296 udph->check = csum_tcpudp_magic(iph->saddr, iph->daddr,
300 if (!udph->check)
301 udph->check = CSUM_MANGLED_0;
313 struct udphdr *udph;
322 * udph->len to get the real length without any protocol check,
323 * UDPLITE uses udph->len for another thing,
327 udph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*udph));
328 if (udph == NULL)
332 ul = ntohs(udph->len);
334 udph->check = 0;
338 skb->csum = csum_partial(udph, ipl - ihl, 0);
340 else if ((ul >= sizeof(*udph)) && (ul <= ipl - ihl))
341 skb->csum = csum_partial(udph, ul, 0);
349 skb->csum = csum_partial(udph, ul, 0);
352 udph->check = csum_ipv6_magic(&ip6h->saddr, &ip6h->daddr, ul,
356 if (!udph->check)
357 udph->check = CSUM_MANGLED_0;