Home
last modified time | relevance | path

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

/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/
A Ddemand.c324 unsigned short pkt_checksum = 0; local
351 if (pkt_checksum) {
353 if (pkt_checksum == 0xFFFF) {
354 pkt_checksum = 0;
363 pkt_checksum = *((unsigned short *) (pkt->data+20+iphdr));
365 if (pkt_checksum == 0xFFFF) {
366 pkt_checksum = 0;
374 pkt_checksum -= *((unsigned short *) (pkt->data+16)) ^ 0xFFFF;
375 pkt_checksum -= *((unsigned short *) (pkt->data+18)) ^ 0xFFFF;
393 *((unsigned short *) (pkt->data+20+iphdr)) = pkt_checksum;
[all …]

Completed in 2 milliseconds