Code

liboping: use SO_TIMESTAMP when available
authorBruno Prémont <bonbons@linux-vserver.org>
Sat, 15 Jan 2011 18:44:49 +0000 (19:44 +0100)
committerFlorian Forster <octo@verplant.org>
Sat, 15 Jan 2011 18:59:16 +0000 (19:59 +0100)
commit423e207041b324e501214eaf79c854cfb77408c7
tree4c593b9a4b0ffd32839234184dc70f029123b8e2
parent39e7b8784d4a9928e6fc153ceda0bce3d9444eed
liboping: use SO_TIMESTAMP when available

Current implementation of liboping relies on getting enough CPU shares
and getting those in a timely manner in order to determine correct ping
response times.

Avoid this limitation when kernel is able to provide packet reception
times using SO_TIMESTAMP. (as is done by iputils's ping utility)

Signed-off-by: Florian Forster <octo@verplant.org>
src/liboping.c