commit | d7881023468fa095b40a60145a2a3e4e1d316dfd | [log] [tgz] |
---|---|---|
author | Peter Qiu <zqiu@chromium.org> | Wed Jan 21 12:27:41 2015 -0800 |
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | Fri Jan 23 19:55:03 2015 +0000 |
tree | 6260917e5228a7a864219de76722c25b10a58f41 | |
parent | bb833563aff5a55777e206d0b640c7cbff5f7417 [diff] |
shill: factor out ActiveLinkMonitor from LinkMonitor ActiveLinkMonitor monitors the link status by sending ARP requests and probing for ARP replies. Once the active link monitor is started, the link will be declared as failure if it failed to receive ARP reply for 5 consecutive broadcast ARP requests or unicast ARP requests in the case when gateway unicast ARP support is established. A callback will be invoked and ActiveLinkMonitor will automatically stopped when the link status is deteremined. BUG=chromium:422159 TEST=USE="asan clang" FEATURES=test emerge-$BOARD shill Change-Id: I8a662b5f1c0b4ee4450f2327f5cdd03feb231b8b Reviewed-on: https://chromium-review.googlesource.com/242278 Reviewed-by: Paul Stewart <pstew@chromium.org> Commit-Queue: Zeping Qiu <zqiu@chromium.org> Trybot-Ready: Zeping Qiu <zqiu@chromium.org> Tested-by: Zeping Qiu <zqiu@chromium.org>