]> The Tcpdump Group git mirrors - tcpdump/commit
The peer polling interval is an exponent; treat it as such.
authorpeppe <[email protected]>
Tue, 13 Nov 2012 05:59:56 +0000 (21:59 -0800)
committerGuy Harris <[email protected]>
Tue, 13 Nov 2012 05:59:56 +0000 (21:59 -0800)
commit5e15e5929466ea340285186a2089a9e4b0d00978
treefa446d3804248d09f0631e012e8d52dbbfd62b3a
parent87b0154b8a2d621c04f12fba3bf1843297de5d7c
The peer polling interval is an exponent; treat it as such.

RFC 1119 says

Peer Poll Interval (peer.ppoll, pkt.ppoll): This is a signed
    integer indicating the minimum interval between messages
    sent by the peer, in seconds as a power of two.  For
    instance, a alue of six indicates a minimum interval of 64
    seconds.

so print both the raw value and 2^{raw value}, showing the latter.

Patch from Debian bug 686276.

Reviewed-By: Guy Harris <[email protected]>
print-ntp.c