summaryrefslogtreecommitdiffstats
path: root/components/onc
diff options
context:
space:
mode:
Diffstat (limited to 'components/onc')
-rw-r--r--components/onc/docs/onc_spec.html11
-rw-r--r--components/onc/onc_constants.cc1
-rw-r--r--components/onc/onc_constants.h1
3 files changed, 13 insertions, 0 deletions
diff --git a/components/onc/docs/onc_spec.html b/components/onc/docs/onc_spec.html
index 4b72a3e..6822117 100644
--- a/components/onc/docs/onc_spec.html
+++ b/components/onc/docs/onc_spec.html
@@ -400,6 +400,17 @@
networks. The format is 00:11:22:AA:BB:CC.
</dd>
+ <dt class="field">Priority</dt>
+ <dd>
+ <span class="field_meta">
+ (optional)
+ <span class="type">integer</span>
+ </span>
+ Provides a suggested priority value for this network. May be used by the
+ system to determine which network to connect to when multiple configured
+ networks are available (or may be ignored).
+ </dd>
+
</dl>
<section>
diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc
index 1c1dccda..4909aed 100644
--- a/components/onc/onc_constants.cc
+++ b/components/onc/onc_constants.cc
@@ -41,6 +41,7 @@ const char kIPConfigs[] = "IPConfigs";
const char kMacAddress[] = "MacAddress";
const char kName[] = "Name";
const char kNameServers[] = "NameServers";
+const char kPriority[] = "Priority";
const char kProxySettings[] = "ProxySettings";
const char kSearchDomains[] = "SearchDomains";
const char kConnectionState[] = "ConnectionState";
diff --git a/components/onc/onc_constants.h b/components/onc/onc_constants.h
index 5db4c92..371570c 100644
--- a/components/onc/onc_constants.h
+++ b/components/onc/onc_constants.h
@@ -65,6 +65,7 @@ ONC_EXPORT extern const char kIPConfigs[];
ONC_EXPORT extern const char kMacAddress[];
ONC_EXPORT extern const char kName[];
ONC_EXPORT extern const char kNameServers[];
+ONC_EXPORT extern const char kPriority[];
ONC_EXPORT extern const char kProxySettings[];
ONC_EXPORT extern const char kSearchDomains[];
ONC_EXPORT extern const char kConnectionState[];