/usr/include/wireshark/epan/in_cksum.h is in libwireshark-dev 1.10.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | /* in_cksum.h
* Declaration of Internet checksum routine.
*
* $Id$
*/
#ifndef __IN_CKSUM_H__
#define __IN_CKSUM_H__
#include "ws_symbol_export.h"
typedef struct {
const guint8 *ptr;
int len;
} vec_t;
WS_DLL_PUBLIC int in_cksum(const vec_t *vec, int veclen);
guint16 in_cksum_shouldbe(guint16 sum, guint16 computed_sum);
#endif /* __IN_CKSUM_H__ */
|