f66080eb8e8826128d6ad57cce3e9722c8f5a31f |
|
19-Jun-2015 |
Samuel Tan <samueltan@chromium.org> |
shill: implement ping in shill in IcmpSession Add IcmpSession, a class which wraps around Icmp to allow us to perform ping in shill. When an object of this class is created and started via IcmpSession::Start, it keeps sending ICMP echo requests to a given destination at 1 second intervals until 3 echo requests are succesfully sent. IcmpSession then waits until all echo replies are received (or a timeout occurs) before reporting the latency for each echo reply to the caller. BUG=chromium:216691 TEST=Compile shill and run unit tests. Change-Id: Ia7e4e9381b6a496daf2fdc4df3008599ce1b312f Reviewed-on: https://chromium-review.googlesource.com/272513 Trybot-Ready: Samuel Tan <samueltan@chromium.org> Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Queue: Samuel Tan <samueltan@chromium.org> Tested-by: Samuel Tan <samueltan@chromium.org>
/system/connectivity/shill/mock_icmp.h
|