Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/bpf_progs/
Doffload.c389 __wsum sum4 = 0; in do_forward4() local
391 sum4 += ((__u16*)ip)[i]; in do_forward4()
394 sum4 = (sum4 & 0xFFFF) + (sum4 >> 16); // collapse u32 into range 1 .. 0x1FFFE in do_forward4()
395 sum4 = (sum4 & 0xFFFF) + (sum4 >> 16); // collapse any potential carry into u16 in do_forward4()
397 if (sum4 != 0xFFFF) TC_PUNT(CHECKSUM); in do_forward4()