author | Bruno Prémont <bonbons@linux-vserver.org> | |
Sat, 15 Jan 2011 18:44:49 +0000 (19:44 +0100) | ||
committer | Florian Forster <octo@verplant.org> | |
Sat, 15 Jan 2011 18:59:16 +0000 (19:59 +0100) | ||
commit | 423e207041b324e501214eaf79c854cfb77408c7 | |
tree | 4c593b9a4b0ffd32839234184dc70f029123b8e2 | tree | snapshot |
parent | 39e7b8784d4a9928e6fc153ceda0bce3d9444eed | commit | diff |
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>
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 | diff | blob | history |