Lines Matching full:udph
421 static uint16_t get_udp_csum(const struct udphdr *udph, int alen)
424 const void *csum_start = udph;
427 pseudo_sum += udph->len;
431 csum_len = ntohs(udph->len) + alen * 2;
475 struct udphdr *udph = p;
477 udph->source = ntohs(dest_port + 1); /* spoof */
478 udph->dest = ntohs(dest_port);
479 udph->len = ntohs(sizeof(*udph) + cfg_payload_len);
480 udph->check = 0;
482 udph->check = get_udp_csum(udph, is_ipv4 ? sizeof(struct in_addr) :