#ifndef ICMP_UTILS_H #define ICMP_UTILS_H #include #include #include /* Checksum calculation (RFC 1071) */ uint16_t icmp_checksum(const void *data, size_t len); /* Time helpers - return 0 on success, -1 on error */ int icmp_get_time(struct timespec *ts); int64_t icmp_time_diff_ns(const struct timespec *start, const struct timespec *end); #endif