简体   繁体   中英

c library function for tcp checksum

Is there a C library function for calculating or validating a TCP checksum? I saw a few handcoded functions, but thought there must be a lib function somewhere.

No, there's no standard library function. Everyone just sort of copy&pastes the same in_cksum function whenever they need it. Silly, eh?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM