Cloudflare

The day my ping took countermeasures

Jul 11, 2023Marek Majkowski
The day my ping took countermeasures
SummaryAI, from the source post

This post details how the `ping` utility handles clock adjustments by examining its source code and debugging techniques. It explains the 'taking countermeasures' message, the use of `gettimeofday` and `SO_TIMESTAMP` for RTT measurement, and the challenges of debugging VDSO calls. The author demonstrates fault injection using `strace` to trigger the countermeasure message and discusses the implications of `ping` sockets and capabilities.

More from the DNS Infrastructure & Naming Conventions trail