Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 25 of 130) sorted by relevance

123456

/NetX-Duo-v6.4.1/common/src/
Dnx_ip_checksum_compute.c84 ULONG checksum = 0; in _nx_ip_checksum_compute() local
108 checksum = protocol; in _nx_ip_checksum_compute()
120 checksum += src_ip_short[0]; in _nx_ip_checksum_compute()
121 checksum += src_ip_short[1]; in _nx_ip_checksum_compute()
122 checksum += dest_ip_short[0]; in _nx_ip_checksum_compute()
123 checksum += dest_ip_short[1]; in _nx_ip_checksum_compute()
135 checksum += dest_ip_short[i]; in _nx_ip_checksum_compute()
136 checksum += src_ip_short[i]; in _nx_ip_checksum_compute()
142 checksum += data_length; in _nx_ip_checksum_compute()
145 checksum = (checksum >> 16) + (checksum & 0xFFFF); in _nx_ip_checksum_compute()
[all …]
Dnx_ip_packet_checksum_compute.c86 ULONG checksum; in _nx_ip_packet_checksum_compute() local
150 checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_VERSION_V4, in _nx_ip_packet_checksum_compute()
156 val = (ULONG)(~checksum); in _nx_ip_packet_checksum_compute()
196 checksum = _nx_ip_checksum_compute(packet_ptr, NX_PROTOCOL_TCP, in _nx_ip_packet_checksum_compute()
204 checksum = ~checksum & NX_LOWER_16_MASK; in _nx_ip_packet_checksum_compute()
208 tcp_header_ptr -> nx_tcp_header_word_4 |= (checksum << NX_SHIFT_BY_16); in _nx_ip_packet_checksum_compute()
228 checksum = _nx_ip_checksum_compute(packet_ptr, NX_PROTOCOL_UDP, in _nx_ip_packet_checksum_compute()
238 …tr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | (~checksum & NX_LOWER_16_MAS… in _nx_ip_packet_checksum_compute()
259 checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_ICMP, in _nx_ip_packet_checksum_compute()
270 …nx_icmp_header_word_0 = icmpv4_header_ptr -> nx_icmp_header_word_0 | (~checksum & NX_LOWER_16_MAS… in _nx_ip_packet_checksum_compute()
[all …]
Dnx_igmp_interface_report_send.c95 ULONG checksum; in _nx_igmp_interface_report_send() local
208 checksum = (temp >> NX_SHIFT_BY_16); in _nx_igmp_interface_report_send()
209 checksum += (temp & NX_LOWER_16_MASK); in _nx_igmp_interface_report_send()
211 checksum += (temp >> NX_SHIFT_BY_16); in _nx_igmp_interface_report_send()
212 checksum += (temp & NX_LOWER_16_MASK); in _nx_igmp_interface_report_send()
215 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in _nx_igmp_interface_report_send()
218 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in _nx_igmp_interface_report_send()
221 …header_ptr -> nx_igmp_header_word_0 = header_ptr -> nx_igmp_header_word_0 | (~checksum & NX_LOWER… in _nx_igmp_interface_report_send()
Dnx_ip_forward_packet_process.c95 ULONG checksum; in _nx_ip_forward_packet_process() local
203 checksum = ip_header_ptr -> nx_ip_header_word_2 & NX_LOWER_16_MASK; in _nx_ip_forward_packet_process()
213 checksum = ((~checksum) & 0xFFFF) + ((~old_m) & 0xFFFF) + new_m; in _nx_ip_forward_packet_process()
216 checksum = (checksum >> 16) + (checksum & 0xFFFF); in _nx_ip_forward_packet_process()
219 checksum = (checksum >> 16) + (checksum & 0xFFFF); in _nx_ip_forward_packet_process()
222 …der_word_2 = ((ip_header_ptr -> nx_ip_header_word_2 & 0xFFFF0000) | ((~checksum) & NX_LOWER_16_MA… in _nx_ip_forward_packet_process()
Dnx_icmpv4_process_echo_request.c86 ULONG checksum; in _nx_icmpv4_process_echo_request() local
213 checksum = header_ptr -> nx_icmpv4_header_checksum; in _nx_icmpv4_process_echo_request()
220 checksum = ((~checksum) & 0xFFFF) + ((~old_m) & 0xFFFF); in _nx_icmpv4_process_echo_request()
223 checksum = (checksum >> 16) + (checksum & 0xFFFF); in _nx_icmpv4_process_echo_request()
226 checksum = (checksum >> 16) + (checksum & 0xFFFF); in _nx_icmpv4_process_echo_request()
229 header_ptr -> nx_icmpv4_header_checksum = (~checksum & NX_LOWER_16_MASK); in _nx_icmpv4_process_echo_request()
Dnx_ip_fragment_forward_packet.c87 ULONG checksum; in _nx_ip_fragment_forward_packet() local
322 checksum = (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_forward_packet()
324 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_forward_packet()
326 checksum += (temp >> NX_SHIFT_BY_16); in _nx_ip_fragment_forward_packet()
328 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_forward_packet()
330 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_forward_packet()
333 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in _nx_ip_fragment_forward_packet()
336 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in _nx_ip_fragment_forward_packet()
339 …_ip_header_word_2 = fragment_header_ptr -> nx_ip_header_word_2 | (NX_LOWER_16_MASK & (~checksum)); in _nx_ip_fragment_forward_packet()
Dnx_ip_fragment_packet.c84 ULONG checksum; in _nx_ip_fragment_packet() local
331 checksum = (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_packet()
333 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_packet()
335 checksum += (temp >> NX_SHIFT_BY_16); in _nx_ip_fragment_packet()
337 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_packet()
339 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in _nx_ip_fragment_packet()
342 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in _nx_ip_fragment_packet()
345 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in _nx_ip_fragment_packet()
348 …_ip_header_word_2 = fragment_header_ptr -> nx_ip_header_word_2 | (NX_LOWER_16_MASK & (~checksum)); in _nx_ip_fragment_packet()
/NetX-Duo-v6.4.1/test/regression/netxduo_test/
Dnetx_igmp_checksum_computation_test.c244 ULONG checksum; in igmp_checksum_compute() local
257 checksum = 0; in igmp_checksum_compute()
283 checksum = 0; in igmp_checksum_compute()
296 checksum = checksum + (long_temp >> NX_SHIFT_BY_16); in igmp_checksum_compute()
299 if (checksum & NX_CARRY_BIT) in igmp_checksum_compute()
300 checksum = (checksum & NX_LOWER_16_MASK) + 1; in igmp_checksum_compute()
303 checksum = checksum + (long_temp & NX_LOWER_16_MASK); in igmp_checksum_compute()
307 if (checksum & NX_CARRY_BIT) in igmp_checksum_compute()
308 checksum = (checksum & NX_LOWER_16_MASK) + 1; in igmp_checksum_compute()
322 checksum = checksum + short_temp; in igmp_checksum_compute()
[all …]
Dnetx_igmp_router_query_test.c154 ULONG checksum; in my_packet_process() local
241 checksum = (temp >> NX_SHIFT_BY_16); in my_packet_process()
242 checksum += (temp & NX_LOWER_16_MASK); in my_packet_process()
244 checksum += (temp >> NX_SHIFT_BY_16); in my_packet_process()
245 checksum += (temp & NX_LOWER_16_MASK); in my_packet_process()
248 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in my_packet_process()
251 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in my_packet_process()
254 checksum++; in my_packet_process()
257 …header_ptr -> nx_igmp_header_word_0 = header_ptr -> nx_igmp_header_word_0 | (~checksum & NX_LOWER… in my_packet_process()
426 ULONG checksum; in igmp_checksum_compute() local
[all …]
Dnetx_23_02_01_test.c278 ULONG checksum; in my_packet_process_23_02_01() local
306 checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_VERSION_V4, in my_packet_process_23_02_01()
312 val = (ULONG)(~checksum); in my_packet_process_23_02_01()
331 checksum = (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_01()
333 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_01()
335 checksum += (temp >> NX_SHIFT_BY_16); in my_packet_process_23_02_01()
337 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_01()
339 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_01()
342 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in my_packet_process_23_02_01()
345 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in my_packet_process_23_02_01()
[all …]
Dnetx_23_02_02_test.c282 ULONG checksum; in my_packet_process_23_02_02() local
311 checksum = _nx_ip_checksum_compute(packet_ptr, NX_IP_VERSION_V4, in my_packet_process_23_02_02()
317 val = (ULONG)(~checksum); in my_packet_process_23_02_02()
336 checksum = (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_02()
338 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_02()
340 checksum += (temp >> NX_SHIFT_BY_16); in my_packet_process_23_02_02()
342 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_02()
344 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in my_packet_process_23_02_02()
347 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in my_packet_process_23_02_02()
350 checksum = (checksum >> NX_SHIFT_BY_16) + (checksum & NX_LOWER_16_MASK); in my_packet_process_23_02_02()
[all …]
Dnetx_3_08_test.c121 ULONG checksum; in ntest_0_entry() local
216 checksum = _nx_ip_checksum_compute(packet_ptr, NX_PROTOCOL_TCP, in ntest_0_entry()
219 checksum = ~checksum & NX_LOWER_16_MASK; in ntest_0_entry()
223 checksum = _nx_tcp_checksum(packet_ptr, source_ip, dest_ip); in ntest_0_entry()
227 tcp_header_ptr -> nx_tcp_header_word_4 = (checksum << NX_SHIFT_BY_16); in ntest_0_entry()
259 checksum = (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in ntest_0_entry()
261 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in ntest_0_entry()
263 checksum += (temp >> NX_SHIFT_BY_16); in ntest_0_entry()
265 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in ntest_0_entry()
267 checksum += (temp >> NX_SHIFT_BY_16) + (temp & NX_LOWER_16_MASK); in ntest_0_entry()
[all …]
/NetX-Duo-v6.4.1/test/regression/dhcp_test/
Dnetx_dhcp_04_04_01_02_test.c324 ULONG checksum; in my_udp_packet_receive() local
378 checksum = _nx_ip_checksum_compute(packet_ptr, in my_udp_packet_receive()
383 checksum = ~checksum & NX_LOWER_16_MASK; in my_udp_packet_receive()
387 if(checksum == 0) in my_udp_packet_receive()
388 checksum = 0xFFFF; in my_udp_packet_receive()
394 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_udp_packet_receive()
409 checksum = (temp >> NX_SHIFT_BY_16); in my_udp_packet_receive()
410 checksum += (temp & NX_LOWER_16_MASK); in my_udp_packet_receive()
411 checksum += (ip_dest_addr >> NX_SHIFT_BY_16); in my_udp_packet_receive()
412 checksum += (ip_dest_addr & NX_LOWER_16_MASK); in my_udp_packet_receive()
[all …]
Dnetx_dhcp_04_03_02_02_test.c403 ULONG checksum; in my_udp_packet_receive() local
439 checksum = _nx_ip_checksum_compute(packet_ptr, in my_udp_packet_receive()
444 checksum = ~checksum & NX_LOWER_16_MASK; in my_udp_packet_receive()
448 if(checksum == 0) in my_udp_packet_receive()
449 checksum = 0xFFFF; in my_udp_packet_receive()
455 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_udp_packet_receive()
470 checksum = (temp >> NX_SHIFT_BY_16); in my_udp_packet_receive()
471 checksum += (temp & NX_LOWER_16_MASK); in my_udp_packet_receive()
472 checksum += (ip_dest_addr >> NX_SHIFT_BY_16); in my_udp_packet_receive()
473 checksum += (ip_dest_addr & NX_LOWER_16_MASK); in my_udp_packet_receive()
[all …]
Dnetx_dhcp_04_03_02_03_test.c439 ULONG checksum; in my_udp_packet_receive() local
476 checksum = _nx_ip_checksum_compute(packet_ptr, in my_udp_packet_receive()
481 checksum = ~checksum & NX_LOWER_16_MASK; in my_udp_packet_receive()
485 if(checksum == 0) in my_udp_packet_receive()
486 checksum = 0xFFFF; in my_udp_packet_receive()
492 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_udp_packet_receive()
507 checksum = (temp >> NX_SHIFT_BY_16); in my_udp_packet_receive()
508 checksum += (temp & NX_LOWER_16_MASK); in my_udp_packet_receive()
509 checksum += (ip_dest_addr >> NX_SHIFT_BY_16); in my_udp_packet_receive()
510 checksum += (ip_dest_addr & NX_LOWER_16_MASK); in my_udp_packet_receive()
[all …]
/NetX-Duo-v6.4.1/test/regression/tahi_test/
Dnetx_tahi_dhcpv6_test_07_013.c217 ULONG checksum; in my_dhcpv6_packet_process() local
264 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
269 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
273 if(checksum == 0) in my_dhcpv6_packet_process()
274 checksum = 0xFFFF; in my_dhcpv6_packet_process()
280 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
319 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
324 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
328 if(checksum == 0) in my_dhcpv6_packet_process()
329 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_04_022.c214 ULONG checksum; in my_dhcpv6_packet_process() local
276 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
281 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
285 if(checksum == 0) in my_dhcpv6_packet_process()
286 checksum = 0xFFFF; in my_dhcpv6_packet_process()
292 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
339 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
344 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
348 if(checksum == 0) in my_dhcpv6_packet_process()
349 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_07_012.c217 ULONG checksum; in my_dhcpv6_packet_process() local
264 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
269 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
273 if(checksum == 0) in my_dhcpv6_packet_process()
274 checksum = 0xFFFF; in my_dhcpv6_packet_process()
280 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
319 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
324 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
328 if(checksum == 0) in my_dhcpv6_packet_process()
329 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_04_020.c212 ULONG checksum; in my_dhcpv6_packet_process() local
267 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
272 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
276 if(checksum == 0) in my_dhcpv6_packet_process()
277 checksum = 0xFFFF; in my_dhcpv6_packet_process()
283 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
322 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
327 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
331 if(checksum == 0) in my_dhcpv6_packet_process()
332 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_04_021.c212 ULONG checksum; in my_dhcpv6_packet_process() local
267 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
272 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
276 if(checksum == 0) in my_dhcpv6_packet_process()
277 checksum = 0xFFFF; in my_dhcpv6_packet_process()
283 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
322 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
327 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
331 if(checksum == 0) in my_dhcpv6_packet_process()
332 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_07_002.c217 ULONG checksum; in my_dhcpv6_packet_process() local
264 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
269 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
273 if(checksum == 0) in my_dhcpv6_packet_process()
274 checksum = 0xFFFF; in my_dhcpv6_packet_process()
280 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
319 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
324 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
328 if(checksum == 0) in my_dhcpv6_packet_process()
329 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_07_004.c217 ULONG checksum; in my_dhcpv6_packet_process() local
264 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
269 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
273 if(checksum == 0) in my_dhcpv6_packet_process()
274 checksum = 0xFFFF; in my_dhcpv6_packet_process()
280 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
319 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
324 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
328 if(checksum == 0) in my_dhcpv6_packet_process()
329 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_04_010.c215 ULONG checksum; in my_dhcpv6_packet_process() local
278 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
283 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
287 if(checksum == 0) in my_dhcpv6_packet_process()
288 checksum = 0xFFFF; in my_dhcpv6_packet_process()
294 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
342 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
347 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
351 if(checksum == 0) in my_dhcpv6_packet_process()
352 checksum = 0xFFFF; in my_dhcpv6_packet_process()
[all …]
Dnetx_tahi_dhcpv6_test_01_084.c173 ULONG checksum; in my_dhcpv6_packet_process() local
221 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_packet_process()
226 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_packet_process()
230 if(checksum == 0) in my_dhcpv6_packet_process()
231 checksum = 0xFFFF; in my_dhcpv6_packet_process()
237 udp_header_ptr -> nx_udp_header_word_1 = udp_header_ptr -> nx_udp_header_word_1 | checksum; in my_dhcpv6_packet_process()
258 ULONG checksum; in my_dhcpv6_udp_packet_receive() local
290 checksum = _nx_ip_checksum_compute(packet_ptr, in my_dhcpv6_udp_packet_receive()
295 checksum = ~checksum & NX_LOWER_16_MASK; in my_dhcpv6_udp_packet_receive()
299 if(checksum == 0) in my_dhcpv6_udp_packet_receive()
[all …]
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/
Dnx_secure_dtls_handshake_fail_test.c240 UINT checksum; in udp_packet_filter_bad_helloverify() local
246 checksum = (data[6] << 8) + data[7]; in udp_packet_filter_bad_helloverify()
247 checksum = checksum + data[35]; in udp_packet_filter_bad_helloverify()
251 checksum = checksum - data[35]; in udp_packet_filter_bad_helloverify()
252 data[6] = (UCHAR)((checksum & 0xFF00) >> 8); in udp_packet_filter_bad_helloverify()
253 data[7] = (UCHAR)(checksum & 0xFF); in udp_packet_filter_bad_helloverify()
263 UINT checksum; in udp_packet_filter_bad_serverhello_length() local
269 checksum = (data[6] << 8) + data[7]; in udp_packet_filter_bad_serverhello_length()
272 checksum += data[20] << 8; in udp_packet_filter_bad_serverhello_length()
274 checksum -= data[20] << 8; in udp_packet_filter_bad_serverhello_length()
[all …]

123456