/reactos/dll/win32/rsaenh/ |
H A D | md2.c | 59 L = md2->chksum[15]; in md2_update_chksum() 65 L = (md2->chksum[j] ^= PI_SUBST[(int)(md2->buf[j] ^ L)] & 255); in md2_update_chksum() 95 memset(md2->chksum, 0, sizeof(md2->chksum)); in md2_init() 144 memcpy(md2->buf, md2->chksum, 16); in md2_done()
|
/reactos/drivers/network/tcpip/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() 395 icmphdr->chksum = 0; in icmp_send_response() 398 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response()
|
H A D | ip4.c | 350 ((struct udp_hdr *)((u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; in ip4_forward() 357 ((struct tcp_hdr *)((u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; in ip4_forward() 364 ((struct icmp_hdr *)((u8_t *)iphdr + IPH_HL_BYTES(iphdr)))->chksum = 0; in ip4_forward()
|
/reactos/drivers/network/tcpip/lwip/src/core/ |
H A D | tcp_out.c | 185 seg->chksum = 0; in tcp_create_segment() 295 chksum = SWAP_BYTES_IN_WORD(chksum); in tcp_seg_add_chksum() 297 *seg_chksum = chksum; in tcp_seg_add_chksum() 606 u16_t chksum = 0; in tcp_write() local 639 chksum = SWAP_BYTES_IN_WORD(chksum); in tcp_write() 676 seg->chksum = chksum; in tcp_write() 841 u16_t chksum = 0; in tcp_split_unsent_seg() local 926 seg->chksum = chksum; in tcp_split_unsent_seg() 949 useg->chksum = 0; in tcp_split_unsent_seg() 1589 seg->chksum = SWAP_BYTES_IN_WORD(seg->chksum); in tcp_output_segment() [all …]
|
H A D | udp.c | 356 if (udphdr->chksum != 0) { in udp_input() 486 u8_t have_chksum, u16_t chksum) in udp_send_chksum() argument 497 have_chksum, chksum); in udp_send_chksum() 635 u16_t chksum) in udp_sendto_if_chksum() argument 788 udphdr->chksum = 0x0000; in udp_sendto_if_src_chksum() 833 acc = udphdr->chksum + (u16_t)~(chksum); in udp_sendto_if_src_chksum() 834 udphdr->chksum = FOLD_U32T(acc); in udp_sendto_if_src_chksum() 839 if (udphdr->chksum == 0x0000) { in udp_sendto_if_src_chksum() 840 udphdr->chksum = 0xffff; in udp_sendto_if_src_chksum() 862 acc = udpchksum + (u16_t)~(chksum); in udp_sendto_if_src_chksum() [all …]
|
H A D | raw.c | 513 …u16_t chksum = ip6_chksum_pseudo(p, pcb->protocol, p->tot_len, ip_2_ip6(src_ip), ip_2_ip6(dst_ip)); in raw_sendto_if_src() local 515 SMEMCPY(((u8_t *)p->payload) + pcb->chksum_offset, &chksum, sizeof(u16_t)); in raw_sendto_if_src()
|
H A D | pbuf.c | 1366 u16_t len, u16_t *chksum) in pbuf_fill_chksum() argument 1373 LWIP_ASSERT("chksum != NULL", chksum != NULL); in pbuf_fill_chksum() 1385 acc = *chksum; in pbuf_fill_chksum() 1387 *chksum = FOLD_U32T(acc); in pbuf_fill_chksum()
|
/reactos/drivers/network/tcpip/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 | icmp.h | 68 PACK_STRUCT_FIELD(u16_t chksum); 92 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 | 124 #define IPH_CHKSUM_SET(hdr, chksum) (hdr)->_chksum = (chksum) argument
|
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 | tcp.h | 63 PACK_STRUCT_FIELD(u16_t chksum);
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/apps/ |
H A D | fs.h | 48 u16_t chksum; member 76 const struct fsdata_chksum *chksum; member 118 const struct fsdata_chksum *chksum; member
|
/reactos/drivers/network/tcpip/lwip/src/include/lwip/ |
H A D | udp.h | 144 u16_t chksum); 147 u8_t have_chksum, u16_t chksum); 149 u8_t have_chksum, u16_t chksum); 152 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; \ argument 107 (buf)->toport_chksum = chksum; } while(0)
|
H A D | pbuf.h | 309 u16_t len, u16_t *chksum);
|
/reactos/drivers/network/tcpip/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() 412 icmp6hdr->chksum = 0; in icmp6_send_response_with_addrs_and_netif() 415 icmp6hdr->chksum = ip6_chksum_pseudo(q, IP6_NEXTH_ICMP6, q->tot_len, in icmp6_send_response_with_addrs_and_netif()
|
H A D | mld6.c | 599 mld_hdr->chksum = 0; in mld6_send() 606 mld_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, in mld6_send()
|
H A D | nd6.c | 1241 ns_hdr->chksum = 0; in nd6_send_ns() 1261 ns_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, src_addr, in nd6_send_ns() 1311 na_hdr->chksum = 0; in nd6_send_na() 1337 na_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, src_addr, in nd6_send_na() 1391 rs_hdr->chksum = 0; in nd6_send_rs() 1404 rs_hdr->chksum = ip6_chksum_pseudo(p, IP6_NEXTH_ICMP6, p->len, src_addr, in nd6_send_rs()
|
/reactos/drivers/network/tcpip/lwip/src/apps/http/ |
H A D | fs.c | 66 file->chksum = f->chksum; in fs_open()
|
/reactos/drivers/network/tcpip/lwip/src/netif/ppp/ |
H A D | vj.c | 394 deltaA = lwip_ntohs(th->chksum); in vj_compress_tcp() 537 th->chksum = lwip_htons((*cp << 8) | cp[1]); in vj_uncompress_tcp()
|
/reactos/drivers/network/tcpip/lwip/test/unit/tcp/ |
H A D | test_tcp.c | 388 u16_t data_len, chksum; in START_TEST() local 415 hdr->chksum = 0; in START_TEST() 417 chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len, in START_TEST() 420 hdr->chksum = chksum; in START_TEST()
|
/reactos/drivers/network/tcpip/lwip/src/apps/http/makefsdata/ |
H A D | makefsdata.c | 730 unsigned short chksum; in write_checksums() local 736 chksum = ~inet_chksum(data, (u16_t)len); in write_checksums() 738 fprintf(struct_file, "{%d, 0x%04x, %"SZT_F"}," NEWLINE, offset, chksum, len); in write_checksums()
|