]> The Tcpdump Group git mirrors - tcpdump/commit
LSP ping: Fix testing of TimeStamp Received.
authorDenis Ovsienko <[email protected]>
Sun, 20 Sep 2020 15:07:19 +0000 (16:07 +0100)
committerDenis Ovsienko <[email protected]>
Sun, 20 Sep 2020 15:33:02 +0000 (16:33 +0100)
commit5ba8290b265664f4ffe53513d8a31efcc75a6aba
tree93607e09b628f71c531e1c1928926e9883c0228c
parentf58e26a369aba6aba89041b04e3b1e325b0e6566
LSP ping: Fix testing of TimeStamp Received.

"(int_part != 0) && (fraction != 0)" matches a value that has both
seconds and seconds fraction set to a non-zero value, hence it leaves
zero seconds (0.123) and exact seconds (123.0) out. This bug originates
in commit d1b0faed from 2004.

Fix the expression and update a test that, although prints its only
Receiver Timestamp as 0.000000000, in fact has seconds set to 0 and
seconds fraction set to 2.
print-lspping.c
tests/tok2str-oobr-2.out