user1190650
user1190650

Reputation: 3425

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.

Upvotes: 0

Views: 1304

Answers (1)

Celada
Celada

Reputation: 22251

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

Upvotes: 1

Related Questions