diff options
author | zqiu <zqiu@chromium.org> | 2014-10-06 19:16:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-07 02:16:34 +0000 |
commit | 6929e390483915c1de0697425bd35c67c05daf4c (patch) | |
tree | 18116925bdb63e04b38a47e1ea4bfe6a73b72ec0 /components/onc | |
parent | 41a18987c3253d889091bc4c6a442fc723c7c895 (diff) | |
download | chromium_src-6929e390483915c1de0697425bd35c67c05daf4c.zip chromium_src-6929e390483915c1de0697425bd35c67c05daf4c.tar.gz chromium_src-6929e390483915c1de0697425bd35c67c05daf4c.tar.bz2 |
Allow option to disable link monitor for WiFi network
By default, link monitor is enabled for WiFi network. When it is
enabled, it will send ARP request to default gateway periodically.
This CL adds an ONC configuration option to disable the link monitor.
BUG=chromium:415367
Review URL: https://codereview.chromium.org/598173002
Cr-Commit-Position: refs/heads/master@{#298327}
Diffstat (limited to 'components/onc')
-rw-r--r-- | components/onc/docs/onc_spec.html | 12 | ||||
-rw-r--r-- | components/onc/onc_constants.cc | 1 | ||||
-rw-r--r-- | components/onc/onc_constants.h | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/components/onc/docs/onc_spec.html b/components/onc/docs/onc_spec.html index 686dfda..6a42ae0 100644 --- a/components/onc/docs/onc_spec.html +++ b/components/onc/docs/onc_spec.html @@ -636,6 +636,18 @@ </p> <dl class="field_list"> + <dt class="field">AllowGatewayARPPolling</dt> + <dd> + <span class="field_meta"> + (optional, defaults to <span class="value">true</span>) + <span class="type">boolean</span> + </span> + Indicaties if ARP polling of default gateway is allowed. + When it is allowed, periodic ARP messages will be sent to + the default gateway. This is used for monitoring the status + of the current connection. + </dd> + <dt class="field">AutoConnect</dt> <dd> <span class="field_meta"> diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc index c4ea339..f8798a3 100644 --- a/components/onc/onc_constants.cc +++ b/components/onc/onc_constants.cc @@ -177,6 +177,7 @@ const char kWebProxyAutoDiscoveryUrl[] = "WebProxyAutoDiscoveryUrl"; } // namespace ipconfig namespace wifi { +const char kAllowGatewayARPPolling[] = "AllowGatewayARPPolling"; const char kAutoConnect[] = "AutoConnect"; const char kBSSID[] = "BSSID"; const char kEAP[] = "EAP"; diff --git a/components/onc/onc_constants.h b/components/onc/onc_constants.h index 976946b..d96e190 100644 --- a/components/onc/onc_constants.h +++ b/components/onc/onc_constants.h @@ -195,6 +195,7 @@ ONC_EXPORT extern const char k8021X[]; } // namespace ethernet namespace wifi { +ONC_EXPORT extern const char kAllowGatewayARPPolling[]; ONC_EXPORT extern const char kAutoConnect[]; ONC_EXPORT extern const char kBSSID[]; ONC_EXPORT extern const char kEAP[]; |