2012-09-21 27 views
0

是否有用於計算或驗證TCP校驗和的C庫函數?我看到了一些手寫代碼的函數,但認爲在某處必須有一個lib函數。用於tcp校驗和的c庫函數

+2

相關:http://stackoverflow.com/questions/9803201/is-there-a-pre-existing-function-or-code-i-can-use-to-compute-a-tcp-segment-chec ?lq = 1 http://stackoverflow.com/questions/8845178/c-programming-tcp-checksum它可能是值得指定你的環境。 –

+0

如果您在Linux上,請參閱http://stackoverflow.com/questions/2497941/tcp-checksum-and-tcp-offloading?rq=1 –

+0

感謝您的幫助 – user1190650

回答

1

不,沒有標準的庫函數。每個人只需要複製&就可以在需要時粘貼相同的in_cksum函數。傻,呃?

+0

此鏈接已中斷,因爲Google代碼搜索已停用在2013年。 –