Home
last modified time | relevance | path

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

/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/net/
H A Dip_defrag.c82 static uint32_t raw_checksum(uint8_t *buf, int len, uint32_t sum) in raw_checksum() function
106 sum = raw_checksum((uint8_t *)&iphdr->ip_src, 2 * sizeof(iphdr->ip_src), in udp_checksum()
108 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp_checksum()
109 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp_checksum()
122 sum = raw_checksum((uint8_t *)&iphdr->ip6_src, 2 * sizeof(iphdr->ip6_src), in udp6_checksum()
124 sum = raw_checksum((uint8_t *)&udphdr->len, sizeof(udphdr->len), sum); in udp6_checksum()
125 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp6_checksum()
126 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp6_checksum()
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/net/
H A Dip_defrag.c82 static uint32_t raw_checksum(uint8_t *buf, int len, uint32_t sum) in raw_checksum() function
106 sum = raw_checksum((uint8_t *)&iphdr->ip_src, 2 * sizeof(iphdr->ip_src), in udp_checksum()
108 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp_checksum()
109 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp_checksum()
122 sum = raw_checksum((uint8_t *)&iphdr->ip6_src, 2 * sizeof(iphdr->ip6_src), in udp6_checksum()
124 sum = raw_checksum((uint8_t *)&udphdr->len, sizeof(udphdr->len), sum); in udp6_checksum()
125 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp6_checksum()
126 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp6_checksum()
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/net/
H A Dip_defrag.c82 static uint32_t raw_checksum(uint8_t *buf, int len, uint32_t sum) in raw_checksum() function
106 sum = raw_checksum((uint8_t *)&iphdr->ip_src, 2 * sizeof(iphdr->ip_src), in udp_checksum()
108 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp_checksum()
109 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp_checksum()
122 sum = raw_checksum((uint8_t *)&iphdr->ip6_src, 2 * sizeof(iphdr->ip6_src), in udp6_checksum()
124 sum = raw_checksum((uint8_t *)&udphdr->len, sizeof(udphdr->len), sum); in udp6_checksum()
125 sum = raw_checksum((uint8_t *)udphdr, UDP_HLEN, sum); in udp6_checksum()
126 sum = raw_checksum((uint8_t *)udp_payload, payload_len, sum); in udp6_checksum()
/dports/archivers/zchunk/zchunk-1.1.16/src/lib/
H A Dzck.c102 char *raw_checksum = zmalloc(checksum_length/2); in ascii_checksum_to_bin() local
103 char *rp = raw_checksum; in ascii_checksum_to_bin()
110 free(raw_checksum); in ascii_checksum_to_bin()
120 return raw_checksum; in ascii_checksum_to_bin()
/dports/misc/librepo/librepo-1.14.2/librepo/
H A Dchecksum.c111 unsigned char raw_checksum[EVP_MAX_MD_SIZE]; in lr_checksum_fd() local
170 if (!EVP_DigestFinal_ex(ctx, raw_checksum, &len)) { in lr_checksum_fd()
180 sprintf(checksum+(x*2), "%02x", raw_checksum[x]); in lr_checksum_fd()
/dports/net/kamailio/kamailio-5.4.5/src/modules/nathelper/
H A Dnathelper.c1932 static u_short raw_checksum(unsigned char *buffer, int len) in raw_checksum() function
1981 ip->ip_sum = raw_checksum((unsigned char *)ip, sizeof(struct ip)); in send_raw()