Home
last modified time | relevance | path

Searched refs:chksum (Results 1 – 19 of 19) sorted by relevance

/lib/liblwip/src/core/ipv6/
Dicmp6.c84 if (iecho->chksum >= htons(0xffff - (ICMP6_ECHO << 8))) { in icmp_input()
85 iecho->chksum += htons(ICMP6_ECHO << 8) + 1; in icmp_input()
87 iecho->chksum += htons(ICMP6_ECHO << 8); in icmp_input()
132 idur->chksum = 0; in icmp_dest_unreach()
133 idur->chksum = inet_chksum(idur, q->len); in icmp_dest_unreach()
171 tehdr->chksum = 0; in icmp_time_exceeded()
172 tehdr->chksum = inet_chksum(tehdr, q->len); in icmp_time_exceeded()
Dinet6.c55 chksum(void *dataptr, u16_t len) in chksum() function
91 acc += chksum(q->payload, q->len); in inet_chksum_pseudo()
133 acc = chksum(dataptr, len); in inet_chksum()
149 acc += chksum(q->payload, q->len); in inet_chksum_pbuf()
/lib/liblwip/src/include/ipv6/lwip/
Dicmp.h74 u16_t chksum; member
82 u16_t chksum; member
89 u16_t chksum; member
/lib/liblwip/src/core/
Dtcp_out.c65 len, &seg->chksum, &seg->chksum_swapped); \
67 #define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) \ argument
68 tcp_seg_add_chksum(LWIP_CHKSUM_COPY(dst, src, len), len, chksum, chksum_swapped);
71 #define TCP_DATA_COPY2(dst, src, len, chksum, chksum_swapped) MEMCPY(dst, src, len) argument
109 tcphdr->chksum = 0; in tcp_output_alloc_header()
177 seg->chksum = 0; in tcp_create_segment()
272 tcp_seg_add_chksum(u16_t chksum, u16_t len, u16_t *seg_chksum, in tcp_seg_add_chksum() argument
277 helper = chksum + *seg_chksum; in tcp_seg_add_chksum()
278 chksum = FOLD_U32T(helper); in tcp_seg_add_chksum()
281 chksum = SWAP_BYTES_IN_WORD(chksum); in tcp_seg_add_chksum()
[all …]
Dudp.c328 if (udphdr->chksum != 0) {
465 u8_t have_chksum, u16_t chksum) argument
469 have_chksum, chksum);
501 u16_t dst_port, u8_t have_chksum, u16_t chksum) argument
523 return udp_sendto_if_chksum(pcb, p, dst_ip, dst_port, netif, have_chksum, chksum);
560 u16_t chksum) argument
616 udphdr->chksum = 0x0000;
672 udphdr->chksum = inet_chksum_pseudo_partial(q, src_ip, dst_ip,
680 acc = udphdr->chksum + (u16_t)~(chksum);
681 udphdr->chksum = FOLD_U32T(acc);
[all …]
Dpbuf.c1043 u16_t len, u16_t *chksum) in pbuf_fill_chksum() argument
1050 LWIP_ASSERT("chksum != NULL", chksum != NULL); in pbuf_fill_chksum()
1062 acc = *chksum; in pbuf_fill_chksum()
1064 *chksum = FOLD_U32T(acc); in pbuf_fill_chksum()
Dtcp.c1643 ntohs(tcphdr->chksum), ntohs(tcphdr->urgp))); in tcp_debug_print()
/lib/liblwip/src/include/lwip/
Dudp.h59 PACK_STRUCT_FIELD(u16_t chksum);
143 u16_t chksum);
146 u8_t have_chksum, u16_t chksum);
148 u8_t have_chksum, u16_t chksum);
Dnetbuf.h93 #define netbuf_set_chksum(buf, chksum) do { (buf)->flags = NETBUF_FLAG_CHKSUM; \ argument
94 (buf)->toport_chksum = chksum; } while(0)
Dpbuf.h166 u16_t len, u16_t *chksum);
Dtcp_impl.h166 PACK_STRUCT_FIELD(u16_t chksum);
287 u16_t chksum; member
/lib/liblwip/src/core/ipv4/
Dicmp.c195 if (iecho->chksum >= PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { in icmp_input()
196 iecho->chksum += PP_HTONS(ICMP_ECHO << 8) + 1; in icmp_input()
198 iecho->chksum += PP_HTONS(ICMP_ECHO << 8); in icmp_input()
201 iecho->chksum = 0; in icmp_input()
327 icmphdr->chksum = 0; in icmp_send_response()
328 icmphdr->chksum = inet_chksum(icmphdr, q->len); in icmp_send_response()
/sys/dev/
Data.h30 uint16_t chksum; // 255 - Checksum member
/lib/liblwip/src/include/ipv4/lwip/
Dip.h163 #define IPH_CHKSUM_SET(hdr, chksum) (hdr)->_chksum = (chksum) argument
Dicmp.h82 PACK_STRUCT_FIELD(u16_t chksum);
/lib/liblwip/src/netif/ppp/
Dvj.c362 deltaA = ntohs(th->chksum); in vj_compress_tcp()
504 th->chksum = htons((*cp << 8) | cp[1]); in vj_uncompress_tcp()
/lib/liblwip/src/api/
Dsockets.c836 u16_t chksum = 0; local
838 chksum = LWIP_CHKSUM_COPY(p->payload, data, short_size);
878 remote_addr, remote_port, 1, chksum);
923 u16_t chksum = LWIP_CHKSUM_COPY(buf.p->payload, data, short_size); local
924 netbuf_set_chksum(&buf, chksum);
/lib/liblwip/test/unit/tcp/
Dtcp_helper.c95 tcphdr->chksum = inet_chksum_pseudo(p, src_ip, dst_ip, in tcp_create_segment_wnd()
/lib/liblwip/
DCHANGELOG1622 inet and chksum part; changed includes in all lwIP files as appropriate
2377 discard the packet. Also removed the duplicate 'udphdr->chksum = 0' for both