/third_party/lwip/src/core/ipv4/ |
H A D | icmp.c | 219 if (iecho->chksum > PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { in icmp_input() 220 iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS((u16_t)(ICMP_ECHO << 8)) + 1); in icmp_input() 222 iecho->chksum = (u16_t)(iecho->chksum + PP_HTONS(ICMP_ECHO << 8)); in icmp_input() 227 iecho->chksum = 0; in icmp_input() 231 iecho->chksum = 0; in icmp_input() 406 icmphdr->chksum = 0; in icmp_send_response() 409 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response()
|
/third_party/lwip/src/core/ |
H A D | udp.c | 374 if (udphdr->chksum != 0) { 512 u8_t have_chksum, u16_t chksum) 523 have_chksum, chksum); 557 u16_t dst_port, u8_t have_chksum, u16_t chksum) 643 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum); 681 u16_t chksum) 736 return udp_sendto_if_src_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum, src_ip); 756 u16_t chksum, const ip_addr_t *src_ip) 834 udphdr->chksum = 0x0000; 874 udphdr->chksum [all...] |
H A D | tcp_out.c | 99 len, &seg->chksum, &seg->chksum_swapped); \ 101 #define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) \ 102 tcp_seg_add_chksum(LWIP_CHKSUM_COPY(dst, src, len), len, chksum, chksum_swapped); 105 #define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) MEMCPY(dst, src, len) 194 seg->chksum = 0; in tcp_create_segment() 214 /* wnd and chksum are set in tcp_output */ in tcp_create_segment() 295 tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum, in tcp_seg_add_chksum() argument 299 /* add chksum to old chksum and fold to u16_t */ in tcp_seg_add_chksum() 300 helper = chksum in tcp_seg_add_chksum() 615 u16_t chksum = 0; tcp_write() local 850 u16_t chksum = 0; tcp_split_unsent_seg() local 907 &chksum, &chksum_swapped); tcp_split_unsent_seg() local [all...] |
H A D | pbuf.c | 1363 * @param chksum pointer to the checksum which is updated 1369 u16_t len, u16_t *chksum) in pbuf_fill_chksum() 1376 LWIP_ASSERT("chksum != NULL", chksum != NULL); in pbuf_fill_chksum() 1388 acc = *chksum; in pbuf_fill_chksum() 1390 *chksum = FOLD_U32T(acc); in pbuf_fill_chksum() 1368 pbuf_fill_chksum(struct pbuf *p, u16_t start_offset, const void *dataptr, u16_t len, u16_t *chksum) pbuf_fill_chksum() argument
|
/third_party/lwip/src/include/lwip/prot/ |
H A D | nd6.h | 56 PACK_STRUCT_FIELD(u16_t chksum); 74 PACK_STRUCT_FIELD(u16_t chksum); 96 PACK_STRUCT_FIELD(u16_t chksum); 121 PACK_STRUCT_FIELD(u16_t chksum); 142 PACK_STRUCT_FIELD(u16_t chksum);
|
H A D | icmp6.h | 141 PACK_STRUCT_FIELD(u16_t chksum); 159 PACK_STRUCT_FIELD(u16_t chksum);
|
H A D | ip4.h | 126 #define IPH_CHKSUM_SET(hdr, chksum) (hdr)->_chksum = (chksum)
|
H A D | udp.h | 57 PACK_STRUCT_FIELD(u16_t chksum);
|
H A D | mld6.h | 56 PACK_STRUCT_FIELD(u16_t chksum);
|
H A D | icmp.h | 72 PACK_STRUCT_FIELD(u16_t chksum);
|
H A D | tcp.h | 63 PACK_STRUCT_FIELD(u16_t chksum);
|
/third_party/optimized-routines/networking/ |
H A D | Dir.mk | 25 build/bin/test/chksum 64 $(EMULATOR) build/bin/test/chksum -i simple 65 $(EMULATOR) build/bin/test/chksum -i scalar 66 $(EMULATOR) build/bin/test/chksum -i simd || true # simd is not always available
|
/third_party/lwip/src/include/lwip/apps/ |
H A D | fs.h | 48 u16_t chksum; member 73 const struct fsdata_chksum *chksum; member 118 const struct fsdata_chksum *chksum; member
|
/third_party/lwip/src/include/lwip/ |
H A D | udp.h | 148 u16_t chksum); 151 u8_t have_chksum, u16_t chksum); 153 u8_t have_chksum, u16_t chksum); 156 u8_t have_chksum, u16_t chksum, const ip_addr_t *src_ip);
|
H A D | netbuf.h | 106 #define netbuf_set_chksum(buf, chksum) do { (buf)->flags = NETBUF_FLAG_CHKSUM; \ 107 (buf)->toport_chksum = chksum; } while(0)
|
/third_party/f2fs-tools/lib/ |
H A D | libf2fs.c | 562 __u32 chksum, chksum_seed; in f2fs_inode_chksum() local 567 chksum = f2fs_cal_crc32(c.chksum_seed, (__u8 *)&ino, in f2fs_inode_chksum() 569 chksum_seed = f2fs_cal_crc32(chksum, (__u8 *)&gen, sizeof(gen)); in f2fs_inode_chksum() 571 chksum = f2fs_cal_crc32(chksum_seed, (__u8 *)ri, offset); in f2fs_inode_chksum() 572 chksum = f2fs_cal_crc32(chksum, (__u8 *)&dummy_cs, cs_size); in f2fs_inode_chksum() 574 chksum = f2fs_cal_crc32(chksum, (__u8 *)ri + offset, in f2fs_inode_chksum() 576 return chksum; in f2fs_inode_chksum() 582 __u32 chksum; in f2fs_checkpoint_chksum() local [all...] |
/third_party/lwip/src/core/ipv6/ |
H A D | icmp6.c | 184 ((struct icmp6_echo_hdr *)(r->payload))->chksum = 0; in icmp6_input() 187 ((struct icmp6_echo_hdr *)(r->payload))->chksum = ip6_chksum_pseudo(r, in icmp6_input() 425 icmp6hdr->chksum = 0; in icmp6_send_response_with_addrs_and_netif() 428 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, in icmp6_send_response_with_addrs_and_netif()
|
/third_party/exfatprogs/lib/ |
H A D | exfat_dir.c | 544 uint16_t chksum = 0; in exfat_calc_name_hash() local 550 chksum = ((chksum << 15) | (chksum >> 1)) + (ch & 0xFF); in exfat_calc_name_hash() 551 chksum = ((chksum << 15) | (chksum >> 1)) + (ch >> 8); in exfat_calc_name_hash() 553 return chksum; in exfat_calc_name_hash()
|
/third_party/lwip/src/apps/http/ |
H A D | fs.c | 82 file->chksum = f->chksum; in fs_open()
|
/third_party/ffmpeg/libavformat/ |
H A D | rdt.h | 54 * @param chksum pointer to buffer containing a checksum of the response, 59 void ff_rdt_calc_response_and_checksum(char response[41], char chksum[9],
|
H A D | rdt.c | 94 ff_rdt_calc_response_and_checksum(char response[41], char chksum[9], in ff_rdt_calc_response_and_checksum() argument 127 chksum[i] = response[i * 4]; in ff_rdt_calc_response_and_checksum() 128 chksum[8] = 0; in ff_rdt_calc_response_and_checksum()
|
/third_party/toybox/toys/posix/ |
H A D | tar.c | 82 char name[100], mode[8], uid[8], gid[8],size[12], mtime[12], chksum[8], member 137 itoo(tmp.chksum, sizeof(tmp.chksum)-1, tar_cksum(&tmp)); in write_longname() 138 tmp.chksum[7] = ' '; in write_longname() 338 itoo(hdr.chksum, sizeof(hdr.chksum)-1, tar_cksum(&hdr)); in add_to_tar() 339 hdr.chksum[7] = ' '; in add_to_tar()
|
/third_party/icu/icu4c/source/test/perf/leperf/ |
H A D | PortableFontInstance.cpp | 423 le_int32 chksum = 0; in getRawChecksum() local 429 chksum += r; in getRawChecksum() 432 return (le_uint32) chksum; // cast to signed in getRawChecksum()
|
/third_party/icu/icu4c/source/test/letest/ |
H A D | PortableFontInstance.cpp | 415 le_int32 chksum = 0; in getRawChecksum() local 421 chksum += r; in getRawChecksum() 424 return (le_uint32) chksum; // cast to signed in getRawChecksum()
|
/third_party/python/Lib/ |
H A D | tarfile.py | 228 characters except for the chksum field which is treated as if 230 some tars (Sun and NeXT) calculate chksum with signed char, 855 chksum = 'Header checksum.', variable in TarInfo 885 self.chksum = 0 # header checksum 962 "chksum": self.chksum, 1138 chksum = calc_chksums(buf[-BLOCKSIZE:])[0] 1139 buf = buf[:-364] + bytes("%06o\0" % chksum, "ascii") + buf[-357:] 1231 chksum = nti(buf[148:156]) 1232 if chksum no [all...] |