blob: b3ad4bc757a0a4f203f41a54e1546041763ae1b9 [file] [log] [blame]
Alex Deymod5561a52015-09-03 23:17:52 -07001// Copyright 2015 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SYSTEM_API_DBUS_SHILL_DBUS_CONSTANTS_H_
6#define SYSTEM_API_DBUS_SHILL_DBUS_CONSTANTS_H_
7
8// TODO(benchan): Reorganize shill constants and remove deprecated ones.
9namespace shill {
10// Flimflam D-Bus service identifiers.
11const char kFlimflamManagerInterface[] = "org.chromium.flimflam.Manager";
12const char kFlimflamServiceName[] = "org.chromium.flimflam";
13const char kFlimflamServicePath[] = "/"; // crosbug.com/20135
14const char kFlimflamServiceInterface[] = "org.chromium.flimflam.Service";
15const char kFlimflamIPConfigInterface[] = "org.chromium.flimflam.IPConfig";
16const char kFlimflamDeviceInterface[] = "org.chromium.flimflam.Device";
17const char kFlimflamProfileInterface[] = "org.chromium.flimflam.Profile";
18const char kFlimflamNetworkInterface[] = "org.chromium.flimflam.Network";
19const char kFlimflamThirdPartyVpnInterface[] =
20 "org.chromium.flimflam.ThirdPartyVpn";
21
22// Flimflam function names.
23const char kGetPropertiesFunction[] = "GetProperties";
24const char kSetPropertyFunction[] = "SetProperty";
25const char kClearPropertyFunction[] = "ClearProperty";
26const char kConnectFunction[] = "Connect";
27const char kDisconnectFunction[] = "Disconnect";
28const char kRequestScanFunction[] = "RequestScan";
29const char kGetServiceFunction[] = "GetService";
30const char kGetWifiServiceFunction[] = "GetWifiService";
31const char kGetVPNServiceFunction[] = "GetVPNService";
32const char kRemoveServiceFunction[] = "Remove";
33const char kEnableTechnologyFunction[] = "EnableTechnology";
34const char kDisableTechnologyFunction[] = "DisableTechnology";
35const char kAddIPConfigFunction[] = "AddIPConfig";
36const char kRemoveConfigFunction[] = "Remove";
37const char kGetEntryFunction[] = "GetEntry";
38const char kDeleteEntryFunction[] = "DeleteEntry";
39const char kActivateCellularModemFunction[] = "ActivateCellularModem";
40const char kRequirePinFunction[] = "RequirePin";
41const char kEnterPinFunction[] = "EnterPin";
42const char kUnblockPinFunction[] = "UnblockPin";
43const char kChangePinFunction[] = "ChangePin";
44const char kProposeScanFunction[] = "ProposeScan";
45const char kRegisterFunction[] = "Register";
46const char kConfigureServiceFunction[] = "ConfigureService";
47const char kConfigureWifiServiceFunction[] = "ConfigureWifiService";
48const char kFindMatchingServiceFunction[] = "FindMatchingService";
49
50// Flimflam Service property names.
51const char kSecurityProperty[] = "Security";
52const char kPriorityProperty[] = "Priority";
53const char kPriorityWithinTechnologyProperty[] = "PriorityWithinTechnology";
54const char kPassphraseProperty[] = "Passphrase";
55const char kIdentityProperty[] = "Identity";
56const char kAuthorityPathProperty[] = "AuthorityPath";
57const char kPassphraseRequiredProperty[] = "PassphraseRequired";
58const char kSaveCredentialsProperty[] = "SaveCredentials";
59const char kSignalStrengthProperty[] = "Strength";
60const char kNameProperty[] = "Name";
61const char kGuidProperty[] = "GUID";
62const char kStateProperty[] = "State";
63const char kTypeProperty[] = "Type";
64const char kDeviceProperty[] = "Device";
65const char kProfileProperty[] = "Profile";
66const char kConnectivityStateProperty[] = "ConnectivityState";
67const char kConnectableProperty[] = "Connectable";
68const char kAutoConnectProperty[] = "AutoConnect";
69const char kIsActiveProperty[] = "IsActive";
70const char kModeProperty[] = "Mode";
71const char kErrorProperty[] = "Error";
72const char kProviderProperty[] = "Provider";
73const char kHostProperty[] = "Host";
74const char kDomainProperty[] = "Domain";
75const char kProxyConfigProperty[] = "ProxyConfig";
76const char kCheckPortalProperty[] = "CheckPortal";
77const char kSSIDProperty[] = "SSID";
78const char kConnectedProperty[] = "Connected";
79const char kUIDataProperty[] = "UIData";
80const char kConnectionIdProperty[] = "ConnectionId";
81const char kVisibleProperty[] = "Visible";
82const char kDnsAutoFallbackProperty[] = "DNSAutoFallback";
83const char kPortalDetectionFailedPhaseProperty[] =
84 "PortalDetectionFailedPhase";
85const char kPortalDetectionFailedStatusProperty[] =
86 "PortalDetectionFailedStatus";
87const char kSavedIPConfigProperty[] = "SavedIPConfig";
88const char kStaticIPConfigProperty[] = "StaticIPConfig";
89const char kLinkMonitorDisableProperty[] = "LinkMonitorDisable";
90const char kSecurityClassProperty[] = "SecurityClass";
91
92// Flimflam provider property names.
93const char kProviderHostProperty[] = "Provider.Host";
94const char kProviderNameProperty[] = "Provider.Name";
95const char kProviderTypeProperty[] = "Provider.Type";
96
97// Flimflam Wifi Service property names.
98const char kWifiBSsid[] = "WiFi.BSSID";
99const char kWifiHexSsid[] = "WiFi.HexSSID";
100const char kWifiFrequency[] = "WiFi.Frequency";
101const char kWifiHiddenSsid[] = "WiFi.HiddenSSID";
102const char kWifiPhyMode[] = "WiFi.PhyMode";
103const char kWifiAuthMode[] = "WiFi.AuthMode";
104const char kWifiChannelProperty[] = "WiFi.Channel";
105const char kWifiPreferredDeviceProperty[] = "WiFi.PreferredDevice";
106const char kWifiRoamThresholdProperty[] = "WiFi.RoamThreshold";
107
108// Flimflam EAP property names.
109const char kEapIdentityProperty[] = "EAP.Identity";
110const char kEapMethodProperty[] = "EAP.EAP";
111const char kEapPhase2AuthProperty[] = "EAP.InnerEAP";
112const char kEapAnonymousIdentityProperty[] = "EAP.AnonymousIdentity";
113const char kEapClientCertProperty[] = "EAP.ClientCert";
114const char kEapCertIdProperty[] = "EAP.CertID";
115const char kEapClientCertNssProperty[] = "EAP.ClientCertNSS";
116const char kEapPrivateKeyProperty[] = "EAP.PrivateKey";
117const char kEapPrivateKeyPasswordProperty[] = "EAP.PrivateKeyPassword";
118const char kEapKeyIdProperty[] = "EAP.KeyID";
119const char kEapCaCertProperty[] = "EAP.CACert";
120const char kEapCaCertIdProperty[] = "EAP.CACertID";
121const char kEapCaCertNssProperty[] = "EAP.CACertNSS";
122const char kEapUseSystemCasProperty[] = "EAP.UseSystemCAs";
123const char kEapUseProactiveKeyCachingProperty[] = "EAP.UseProactiveKeyCaching";
124const char kEapPinProperty[] = "EAP.PIN";
125const char kEapPasswordProperty[] = "EAP.Password";
126const char kEapKeyMgmtProperty[] = "EAP.KeyMgmt";
127
128// Flimflam Cellular Service property names.
129const char kTechnologyFamilyProperty[] = "Cellular.Family";
130const char kActivationStateProperty[] = "Cellular.ActivationState";
131const char kNetworkTechnologyProperty[] = "Cellular.NetworkTechnology";
132const char kRoamingStateProperty[] = "Cellular.RoamingState";
133const char kOperatorNameProperty[] = "Cellular.OperatorName";
134const char kOperatorCodeProperty[] = "Cellular.OperatorCode";
135const char kServingOperatorProperty[] = "Cellular.ServingOperator";
136const char kPaymentPortalProperty[] = "Cellular.Olp";
137const char kUsageURLProperty[] = "Cellular.UsageUrl";
138const char kCellularApnProperty[] = "Cellular.APN";
139const char kCellularLastGoodApnProperty[] = "Cellular.LastGoodAPN";
140const char kCellularApnListProperty[] = "Cellular.APNList";
141
142// Flimflam Manager property names.
143const char kProfilesProperty[] = "Profiles";
144const char kServicesProperty[] = "Services";
145const char kServiceWatchListProperty[] = "ServiceWatchList";
146const char kAvailableTechnologiesProperty[] = "AvailableTechnologies";
147const char kEnabledTechnologiesProperty[] = "EnabledTechnologies";
148const char kConnectedTechnologiesProperty[] = "ConnectedTechnologies";
149const char kDefaultTechnologyProperty[] = "DefaultTechnology";
150const char kOfflineModeProperty[] = "OfflineMode";
151const char kActiveProfileProperty[] = "ActiveProfile";
152const char kDevicesProperty[] = "Devices";
153const char kCheckPortalListProperty[] = "CheckPortalList";
154const char kArpGatewayProperty[] = "ArpGateway";
155const char kCountryProperty[] = "Country";
156const char kPortalURLProperty[] = "PortalURL";
157const char kConnectionStateProperty[] = "ConnectionState";
158const char kClaimedDevicesProperty[] = "ClaimedDevices";
159
160// Flimflam Profile property names.
161const char kEntriesProperty[] = "Entries";
162
163// Flimflam Device property names.
164const char kScanningProperty[] = "Scanning";
165const char kPoweredProperty[] = "Powered";
166const char kNetworksProperty[] = "Networks";
167const char kScanIntervalProperty[] = "ScanInterval";
168const char kBgscanMethodProperty[] = "BgscanMethod";
169const char kBgscanShortIntervalProperty[] = "BgscanShortInterval";
170const char kRoamThresholdProperty[] = "RoamThreshold";
171const char kDBusObjectProperty[] = "DBus.Object";
172const char kDBusServiceProperty[] = "DBus.Service";
173const char kBgscanSignalThresholdProperty[] = "BgscanSignalThreshold";
174const char kWakeToScanPeriodSecondsProperty[] = "WakeToScanPeriodSeconds";
175const char kNetDetectScanPeriodSecondsProperty[] = "NetDetectScanPeriodSeconds";
176const char kForceWakeToScanTimerProperty[] = "ForceWakeToScanTimer";
177// The name of the network interface, ie. wlan0, eth0, etc.
178const char kInterfaceProperty[] = "Interface";
179const char kSelectedServiceProperty[] = "SelectedService";
180const char kIPConfigsProperty[] = "IPConfigs";
181
182// Flimflam Cellular Device property names.
183const char kCarrierProperty[] = "Cellular.Carrier";
184const char kCellularAllowRoamingProperty[] = "Cellular.AllowRoaming";
185const char kHomeProviderProperty[] = "Cellular.HomeProvider";
186const char kMeidProperty[] = "Cellular.MEID";
187const char kImeiProperty[] = "Cellular.IMEI";
188const char kIccidProperty[] = "Cellular.ICCID";
189const char kImsiProperty[] = "Cellular.IMSI";
190const char kEsnProperty[] = "Cellular.ESN";
191const char kMdnProperty[] = "Cellular.MDN";
192const char kMinProperty[] = "Cellular.MIN";
193const char kModelIDProperty[] = "Cellular.ModelID";
194const char kManufacturerProperty[] = "Cellular.Manufacturer";
195const char kFirmwareRevisionProperty[] = "Cellular.FirmwareRevision";
196const char kHardwareRevisionProperty[] = "Cellular.HardwareRevision";
197const char kPRLVersionProperty[] = "Cellular.PRLVersion";
198const char kSelectedNetworkProperty[] = "Cellular.SelectedNetwork";
199const char kSupportNetworkScanProperty[] = "Cellular.SupportNetworkScan";
200const char kFoundNetworksProperty[] = "Cellular.FoundNetworks";
201
202// Flimflam state options.
203const char kStateIdle[] = "idle";
204const char kStateCarrier[] = "carrier";
205const char kStateAssociation[] = "association";
206const char kStateConfiguration[] = "configuration";
207const char kStateReady[] = "ready";
208const char kStatePortal[] = "portal";
209const char kStateOffline[] = "offline";
210const char kStateOnline[] = "online";
211const char kStateDisconnect[] = "disconnect";
212const char kStateFailure[] = "failure";
213const char kStateActivationFailure[] = "activation-failure";
214
215// Flimflam portal phase and status.
216const char kPortalDetectionPhaseConnection[] = "Connection";
217const char kPortalDetectionPhaseDns[] = "DNS";
218const char kPortalDetectionPhaseHttp[] = "HTTP";
219const char kPortalDetectionPhaseContent[] = "Content";
220const char kPortalDetectionPhaseUnknown[] = "Unknown";
221const char kPortalDetectionStatusFailure[] = "Failure";
222const char kPortalDetectionStatusTimeout[] = "Timeout";
223const char kPortalDetectionStatusSuccess[] = "Success";
224
225// Flimflam property names for SIMLock status.
226const char kSIMLockStatusProperty[] = "Cellular.SIMLockStatus";
227const char kSIMLockTypeProperty[] = "LockType";
228const char kSIMLockRetriesLeftProperty[] = "RetriesLeft";
229const char kSIMLockEnabledProperty[] = "LockEnabled";
230
231// Flimflam property names for Cellular.FoundNetworks.
232const char kLongNameProperty[] = "long_name";
233const char kStatusProperty[] = "status";
234const char kShortNameProperty[] = "short_name";
235const char kTechnologyProperty[] = "technology";
236const char kNetworkIdProperty[] = "network_id";
237
238// Flimflam SIMLock status types.
239const char kSIMLockPin[] = "sim-pin";
240const char kSIMLockPuk[] = "sim-puk";
241
242// APN info property names.
243const char kApnProperty[] = "apn";
244const char kApnNetworkIdProperty[] = "network_id";
245const char kApnUsernameProperty[] = "username";
246const char kApnPasswordProperty[] = "password";
247const char kApnNameProperty[] = "name";
248const char kApnLocalizedNameProperty[] = "localized_name";
249const char kApnLanguageProperty[] = "language";
250
251// Payment Portal property names.
252const char kPaymentPortalURL[] = "url";
253const char kPaymentPortalMethod[] = "method";
254const char kPaymentPortalPostData[] = "postdata";
255
256// Operator info property names.
257const char kOperatorNameKey[] = "name";
258const char kOperatorCodeKey[] = "code";
259const char kOperatorCountryKey[] = "country";
260
261// Flimflam network technology options.
262const char kNetworkTechnology1Xrtt[] = "1xRTT";
263const char kNetworkTechnologyEvdo[] = "EVDO";
264const char kNetworkTechnologyGsm[] = "GSM";
265const char kNetworkTechnologyGprs[] = "GPRS";
266const char kNetworkTechnologyEdge[] = "EDGE";
267const char kNetworkTechnologyUmts[] = "UMTS";
268const char kNetworkTechnologyHspa[] = "HSPA";
269const char kNetworkTechnologyHspaPlus[] = "HSPA+";
270const char kNetworkTechnologyLte[] = "LTE";
271const char kNetworkTechnologyLteAdvanced[] = "LTE Advanced";
272
273// Flimflam roaming state options
274const char kRoamingStateHome[] = "home";
275const char kRoamingStateRoaming[] = "roaming";
276const char kRoamingStateUnknown[] = "unknown";
277
278// Flimflam activation state options
279const char kActivationStateActivated[] = "activated";
280const char kActivationStateActivating[] = "activating";
281const char kActivationStateNotActivated[] = "not-activated";
282const char kActivationStatePartiallyActivated[] = "partially-activated";
283const char kActivationStateUnknown[] = "unknown";
284
285// Flimflam EAP method options.
286const char kEapMethodPEAP[] = "PEAP";
287const char kEapMethodTLS[] = "TLS";
288const char kEapMethodTTLS[] = "TTLS";
289const char kEapMethodLEAP[] = "LEAP";
290
291// Flimflam EAP phase 2 auth options.
292const char kEapPhase2AuthPEAPMD5[] = "auth=MD5";
293const char kEapPhase2AuthPEAPMSCHAPV2[] = "auth=MSCHAPV2";
294const char kEapPhase2AuthPEAPGTC[] = "auth=GTC";
295const char kEapPhase2AuthTTLSMD5[] = "autheap=MD5"; // crosbug/26822
296const char kEapPhase2AuthTTLSEAPMD5[] = "autheap=MD5";
297const char kEapPhase2AuthTTLSEAPMSCHAPV2[] = "autheap=MSCHAPV2";
298const char kEapPhase2AuthTTLSMSCHAPV2[] = "auth=MSCHAPV2";
299const char kEapPhase2AuthTTLSMSCHAP[] = "auth=MSCHAP";
300const char kEapPhase2AuthTTLSPAP[] = "auth=PAP";
301const char kEapPhase2AuthTTLSCHAP[] = "auth=CHAP";
302const char kEapPhase2AuthTTLSGTC[] = "auth=GTC";
303const char kEapPhase2AuthTTLSEAPGTC[] = "autheap=GTC";
304
305// Flimflam VPN provider types.
306const char kProviderL2tpIpsec[] = "l2tpipsec";
307const char kProviderOpenVpn[] = "openvpn";
308const char kProviderThirdPartyVpn[] = "thirdpartyvpn";
309
310// Flimflam VPN service properties
311const char kVPNDomainProperty[] = "VPN.Domain";
312
313// Flimflam monitored properties
314const char kMonitorPropertyChanged[] = "PropertyChanged";
315
316// Flimflam type options.
317const char kTypeEthernet[] = "ethernet";
318const char kTypeWifi[] = "wifi";
319const char kTypeWimax[] = "wimax";
320const char kTypeBluetooth[] = "bluetooth";
321const char kTypeCellular[] = "cellular";
322const char kTypeVPN[] = "vpn";
323const char kTypePPPoE[] = "pppoe";
324
325// Flimflam mode options.
326const char kModeManaged[] = "managed";
327const char kModeAdhoc[] = "adhoc";
328
329// Flimflam security options.
330const char kSecurityWpa[] = "wpa";
331const char kSecurityWep[] = "wep";
332const char kSecurityRsn[] = "rsn";
333const char kSecurity8021x[] = "802_1x";
334const char kSecurityPsk[] = "psk";
335const char kSecurityNone[] = "none";
336
337// Flimflam L2TPIPsec property names.
338const char kL2tpIpsecAuthenticationType[] = "L2TPIPsec.AuthenticationType";
339const char kL2tpIpsecCaCertNssProperty[] = "L2TPIPsec.CACertNSS";
340const char kL2tpIpsecClientCertIdProperty[] = "L2TPIPsec.ClientCertID";
341const char kL2tpIpsecClientCertSlotProperty[] = "L2TPIPsec.ClientCertSlot";
342const char kL2tpIpsecIkeVersion[] = "L2TPIPsec.IKEVersion";
343const char kL2tpIpsecPinProperty[] = "L2TPIPsec.PIN";
344const char kL2tpIpsecPskProperty[] = "L2TPIPsec.PSK";
345const char kL2tpIpsecPskRequiredProperty[] = "L2TPIPsec.PSKRequired";
346const char kL2tpIpsecUserProperty[] = "L2TPIPsec.User";
347const char kL2tpIpsecPasswordProperty[] = "L2TPIPsec.Password";
348
349// Flimflam OpenVPN property names.
350const char kOpenVPNAuthNoCacheProperty[] = "OpenVPN.AuthNoCache";
351const char kOpenVPNAuthProperty[] = "OpenVPN.Auth";
352const char kOpenVPNAuthRetryProperty[] = "OpenVPN.AuthRetry";
353const char kOpenVPNAuthUserPassProperty[] = "OpenVPN.AuthUserPass";
354const char kOpenVPNCaCertProperty[] = "OpenVPN.CACert";
355const char kOpenVPNCaCertNSSProperty[] = "OpenVPN.CACertNSS";
356const char kOpenVPNClientCertIdProperty[] = "OpenVPN.Pkcs11.ID";
357const char kOpenVPNClientCertSlotProperty[] = "OpenVPN.Pkcs11.Slot";
358const char kOpenVPNCipherProperty[] = "OpenVPN.Cipher";
359const char kOpenVPNCompLZOProperty[] = "OpenVPN.CompLZO";
360const char kOpenVPNCompNoAdaptProperty[] = "OpenVPN.CompNoAdapt";
361const char kOpenVPNIgnoreDefaultRouteProperty[] = "OpenVPN.IgnoreDefaultRoute";
362const char kOpenVPNKeyDirectionProperty[] = "OpenVPN.KeyDirection";
363const char kOpenVPNMgmtEnableProperty[] = "OpenVPN.Mgmt.Enable";
364const char kOpenVPNNsCertTypeProperty[] = "OpenVPN.NsCertType";
365const char kOpenVPNOTPProperty[] = "OpenVPN.OTP";
366const char kOpenVPNPasswordProperty[] = "OpenVPN.Password";
367const char kOpenVPNPinProperty[] = "OpenVPN.Pkcs11.PIN";
368const char kOpenVPNPortProperty[] = "OpenVPN.Port";
369const char kOpenVPNProtoProperty[] = "OpenVPN.Proto";
370const char kOpenVPNProviderProperty[] = "OpenVPN.Pkcs11.Provider";
371const char kOpenVPNPushPeerInfoProperty[] = "OpenVPN.PushPeerInfo";
372const char kOpenVPNRemoteCertEKUProperty[] = "OpenVPN.RemoteCertEKU";
373const char kOpenVPNRemoteCertKUProperty[] = "OpenVPN.RemoteCertKU";
374const char kOpenVPNRemoteCertTLSProperty[] = "OpenVPN.RemoteCertTLS";
375const char kOpenVPNRenegSecProperty[] = "OpenVPN.RenegSec";
376const char kOpenVPNServerPollTimeoutProperty[] = "OpenVPN.ServerPollTimeout";
377const char kOpenVPNShaperProperty[] = "OpenVPN.Shaper";
378const char kOpenVPNStaticChallengeProperty[] = "OpenVPN.StaticChallenge";
379const char kOpenVPNTLSAuthContentsProperty[] = "OpenVPN.TLSAuthContents";
380const char kOpenVPNTLSRemoteProperty[] = "OpenVPN.TLSRemote";
381const char kOpenVPNUserProperty[] = "OpenVPN.User";
382
383// FlimFlam PPPoE property names.
384const char kPPPoEUsernameProperty[] = "PPPoE.Username";
385const char kPPPoEPasswordProperty[] = "PPPoE.Password";
386const char kPPPoELCPEchoIntervalProperty[] = "PPPoE.LCPEchoInterval";
387const char kPPPoELCPEchoFailureProperty[] = "PPPoE.LCPEchoFailure";
388const char kPPPoEMaxAuthFailureProperty[] = "PPPoE.MaxAuthFailure";
389
390// FlimFlam technology family options
391const char kTechnologyFamilyCdma[] = "CDMA";
392const char kTechnologyFamilyGsm[] = "GSM";
393
394// IPConfig property names.
395const char kMethodProperty[] = "Method";
396const char kAddressProperty[] = "Address";
397const char kMtuProperty[] = "Mtu";
398const char kPrefixlenProperty[] = "Prefixlen";
399const char kBroadcastProperty[] = "Broadcast";
400const char kPeerAddressProperty[] = "PeerAddress";
401const char kGatewayProperty[] = "Gateway";
402const char kDomainNameProperty[] = "DomainName";
403const char kAcceptedHostnameProperty[] = "AcceptedHostname";
404const char kNameServersProperty[] = "NameServers";
405const char kDelegatedPrefixProperty[] = "DelegatedPrefix";
406const char kDelegatedPrefixLengthProperty[] = "DelegatedPrefixLength";
407
408// IPConfig type options.
409const char kTypeIPv4[] = "ipv4";
410const char kTypeIPv6[] = "ipv6";
411const char kTypeDHCP[] = "dhcp";
412const char kTypeBOOTP[] = "bootp";
413const char kTypeZeroConf[] = "zeroconf";
414const char kTypeDHCP6[] = "dhcp6";
415const char kTypePPP[] = "ppp";
416
417// Flimflam error options.
418const char kErrorAaaFailed[] = "aaa-failed";
419const char kErrorActivationFailed[] = "activation-failed";
420const char kErrorBadPassphrase[] = "bad-passphrase";
421const char kErrorBadWEPKey[] = "bad-wepkey";
422const char kErrorConnectFailed[] = "connect-failed";
423const char kErrorDNSLookupFailed[] = "dns-lookup-failed";
424const char kErrorDhcpFailed[] = "dhcp-failed";
425const char kErrorHTTPGetFailed[] = "http-get-failed";
426const char kErrorInternal[] = "internal-error";
427const char kErrorIpsecCertAuthFailed[] = "ipsec-cert-auth-failed";
428const char kErrorIpsecPskAuthFailed[] = "ipsec-psk-auth-failed";
429const char kErrorNeedEvdo[] = "need-evdo";
430const char kErrorNeedHomeNetwork[] = "need-home-network";
431const char kErrorOtaspFailed[] = "otasp-failed";
432const char kErrorOutOfRange[] = "out-of-range";
433const char kErrorPinMissing[] = "pin-missing";
434const char kErrorPppAuthFailed[] = "ppp-auth-failed";
435
436// Flimflam error result codes.
437const char kErrorResultSuccess[] = "org.chromium.flimflam.Error.Success";
438const char kErrorResultFailure[] = "org.chromium.flimflam.Error.Failure";
439const char kErrorResultAlreadyConnected[] =
440 "org.chromium.flimflam.Error.AlreadyConnected";
441const char kErrorResultAlreadyExists[] =
442 "org.chromium.flimflam.Error.AlreadyExists";
443const char kErrorResultIncorrectPin[] =
444 "org.chromium.flimflam.Error.IncorrectPin";
445const char kErrorResultInProgress[] = "org.chromium.flimflam.Error.InProgress";
446const char kErrorResultInternalError[] =
447 "org.chromium.flimflam.Error.InternalError";
448const char kErrorResultInvalidApn[] = "org.chromium.flimflam.Error.InvalidApn";
449const char kErrorResultInvalidArguments[] =
450 "org.chromium.flimflam.Error.InvalidArguments";
451const char kErrorResultInvalidNetworkName[] =
452 "org.chromium.flimflam.Error.InvalidNetworkName";
453const char kErrorResultInvalidPassphrase[] =
454 "org.chromium.flimflam.Error.InvalidPassphrase";
455const char kErrorResultInvalidProperty[] =
456 "org.chromium.flimflam.Error.InvalidProperty";
457const char kErrorResultNoCarrier[] = "org.chromium.flimflam.Error.NoCarrier";
458const char kErrorResultNotConnected[] =
459 "org.chromium.flimflam.Error.NotConnected";
460const char kErrorResultNotFound[] = "org.chromium.flimflam.Error.NotFound";
461const char kErrorResultNotImplemented[] =
462 "org.chromium.flimflam.Error.NotImplemented";
463const char kErrorResultNotOnHomeNetwork[] =
464 "org.chromium.flimflam.Error.NotOnHomeNetwork";
465const char kErrorResultNotRegistered[] =
466 "org.chromium.flimflam.Error.NotRegistered";
467const char kErrorResultNotSupported[] =
468 "org.chromium.flimflam.Error.NotSupported";
469const char kErrorResultOperationAborted[] =
470 "org.chromium.flimflam.Error.OperationAborted";
471const char kErrorResultOperationInitiated[] =
472 "org.chromium.flimflam.Error.OperationInitiated";
473const char kErrorResultOperationTimeout[] =
474 "org.chromium.flimflam.Error.OperationTimeout";
475const char kErrorResultPassphraseRequired[] =
476 "org.chromium.flimflam.Error.PassphraseRequired";
477const char kErrorResultPermissionDenied[] =
478 "org.chromium.flimflam.Error.PermissionDenied";
479const char kErrorResultPinBlocked[] = "org.chromium.flimflam.Error.PinBlocked";
480const char kErrorResultPinRequired[] =
481 "org.chromium.flimflam.Error.PinRequired";
482const char kErrorResultWrongState[] = "org.chromium.flimflam.Error.WrongState";
483
484const char kUnknownString[] = "UNKNOWN";
485
486// Function names.
487const char kClearPropertiesFunction[] = "ClearProperties";
488const char kCompleteCellularActivationFunction[] = "CompleteCellularActivation";
489const char kConfigureServiceForProfileFunction[] = "ConfigureServiceForProfile";
490const char kConnectToBestServicesFunction[] = "ConnectToBestServices";
491const char kCreateConnectivityReportFunction[] = "CreateConnectivityReport";
492const char kAddWakeOnPacketConnectionFunction[] = "AddWakeOnPacketConnection";
493const char kRemoveWakeOnPacketConnectionFunction[] =
494 "RemoveWakeOnPacketConnection";
495const char kRemoveAllWakeOnPacketConnectionsFunction[] =
496 "RemoveAllWakeOnPacketConnections";
497const char kGetLoadableProfileEntriesFunction[] = "GetLoadableProfileEntries";
498const char kGetNetworksForGeolocation[] = "GetNetworksForGeolocation";
499const char kPerformTDLSOperationFunction[] = "PerformTDLSOperation";
500const char kRefreshFunction[] = "Refresh";
501const char kResetFunction[] = "Reset";
502const char kSetCarrierFunction[] = "SetCarrier";
503const char kSetPropertiesFunction[] = "SetProperties";
504const char kVerifyAndEncryptCredentialsFunction[] =
505 "VerifyAndEncryptCredentials";
506const char kVerifyAndEncryptDataFunction[] = "VerifyAndEncryptData";
507const char kVerifyDestinationFunction[] = "VerifyDestination";
508
509// ThirdPartyVpn functions.
510const char kSetParametersFunction[] = "SetParameters";
511const char kSendPacketFunction[] = "SendPacket";
512const char kUpdateConnectionStateFunction[] = "UpdateConnectionState";
513const char kOnPacketReceivedFunction[] = "OnPacketReceived";
514const char kOnPlatformMessageFunction[] = "OnPlatformMessage";
515
516// Device property names.
517const char kEapAuthenticationCompletedProperty[] = "EapAuthenticationCompleted";
518const char kEapAuthenticatorDetectedProperty[] = "EapAuthenticatorDetected";
519const char kLinkMonitorResponseTimeProperty[] = "LinkMonitorResponseTime";
520const char kLinkUpProperty[] = "Ethernet.LinkUp";
521const char kProviderRequiresRoamingProperty[] =
522 "Cellular.ProviderRequiresRoaming";
523const char kPPPoEProperty[] = "Ethernet.PPPoE";
524const char kReceiveByteCountProperty[] = "ReceiveByteCount";
525const char kSIMPresentProperty[] = "Cellular.SIMPresent";
526const char kSupportedCarriersProperty[] = "Cellular.SupportedCarriers";
527const char kTransmitByteCountProperty[] = "TransmitByteCount";
528
529// Technology types (augments "Flimflam type options" above).
530const char kTypeEthernetEap[] = "etherneteap";
531
532// Error strings.
533const char kErrorEapAuthenticationFailed[] = "eap-authentication-failed";
534const char kErrorEapLocalTlsFailed[] = "eap-local-tls-failed";
535const char kErrorEapRemoteTlsFailed[] = "eap-remote-tls-failed";
536
537// IPConfig property names.
538const char kSearchDomainsProperty[] = "SearchDomains";
539const char kVendorEncapsulatedOptionsProperty[] = "VendorEncapsulatedOptions";
540const char kWebProxyAutoDiscoveryUrlProperty[] = "WebProxyAutoDiscoveryUrl";
541
542// Manager property names.
543const char kDefaultServiceProperty[] = "DefaultService";
544const char kDisableWiFiVHTProperty[] = "DisableWiFiVHT";
545const char kHostNameProperty[] = "HostName";
546const char kIgnoredDNSSearchPathsProperty[] = "IgnoredDNSSearchPaths";
547const char kLinkMonitorTechnologiesProperty[] =
548 "LinkMonitorTechnologies";
549const char kNoAutoConnectTechnologiesProperty[] = "NoAutoConnectTechnologies";
550const char kPortalCheckIntervalProperty[] = "PortalCheckInterval";
551const char kProhibitedTechnologiesProperty[] = "ProhibitedTechnologies";
552const char kServiceCompleteListProperty[] = "ServiceCompleteList";
553const char kShortDNSTimeoutTechnologiesProperty[] =
554 "ShortDNSTimeoutTechnologies";
555const char kUninitializedTechnologiesProperty[] = "UninitializedTechnologies";
556const char kWakeOnLanEnabledProperty[] = "WakeOnLanEnabled";
557const char kWakeOnWiFiFeaturesEnabledProperty[] = "WakeOnWiFiFeaturesEnabled";
558
559// Service property names.
560const char kActivationTypeProperty[] = "Cellular.ActivationType";
561const char kDiagnosticsDisconnectsProperty[] = "Diagnostics.Disconnects";
562const char kDiagnosticsMisconnectsProperty[] = "Diagnostics.Misconnects";
563const char kEapRemoteCertificationProperty[] = "EAP.RemoteCertification";
564const char kEapCaCertPemProperty[] = "EAP.CACertPEM";
565const char kEapSubjectMatchProperty[] = "EAP.SubjectMatch";
566const char kErrorDetailsProperty[] = "ErrorDetails";
567const char kHTTPProxyPortProperty[] = "HTTPProxyPort";
568const char kIPConfigProperty[] = "IPConfig";
569const char kL2tpIpsecCaCertPemProperty[] = "L2TPIPsec.CACertPEM";
570const char kL2tpIpsecTunnelGroupProperty[] = "L2TPIPsec.TunnelGroup";
571const char kL2tpIpsecXauthPasswordProperty[] = "L2TPIPsec.XauthPassword";
572const char kL2tpIpsecXauthUserProperty[] = "L2TPIPsec.XauthUser";
573const char kL2tpIpsecLcpEchoDisabledProperty[] = "L2TPIPsec.LCPEchoDisabled";
574const char kManagedCredentialsProperty[] = "ManagedCredentials";
575const char kOpenVPNCaCertPemProperty[] = "OpenVPN.CACertPEM";
576const char kOpenVPNCertProperty[] = "OpenVPN.Cert";
577const char kOpenVPNExtraCertPemProperty[] = "OpenVPN.ExtraCertPEM";
578const char kOpenVPNKeyProperty[] = "OpenVPN.Key";
579const char kOpenVPNPingProperty[] = "OpenVPN.Ping";
580const char kOpenVPNPingExitProperty[] = "OpenVPN.PingExit";
581const char kOpenVPNPingRestartProperty[] = "OpenVPN.PingRestart";
582const char kOpenVPNTLSAuthProperty[] = "OpenVPN.TLSAuth";
583const char kOpenVPNTokenProperty[] = "OpenVPN.Token";
584const char kOpenVPNVerbProperty[] = "OpenVPN.Verb";
585const char kOpenVPNVerifyHashProperty[] = "OpenVPN.VerifyHash";
586const char kOpenVPNVerifyX509NameProperty[] = "OpenVPN.VerifyX509Name";
587const char kOpenVPNVerifyX509TypeProperty[] = "OpenVPN.VerifyX509Type";
588const char kOutOfCreditsProperty[] = "Cellular.OutOfCredits";
589const char kPhysicalTechnologyProperty[] = "PhysicalTechnology";
590const char kPreviousErrorProperty[] = "PreviousError";
591const char kPreviousErrorSerialNumberProperty[] = "PreviousErrorSerialNumber";
592const char kStaticIPAddressProperty[] = "StaticIP.Address";
593const char kStaticIPGatewayProperty[] = "StaticIP.Gateway";
594const char kStaticIPMtuProperty[] = "StaticIP.Mtu";
595const char kStaticIPNameServersProperty[] = "StaticIP.NameServers";
596const char kStaticIPPeerAddressProperty[] = "StaticIP.PeerAddress";
597const char kStaticIPPrefixlenProperty[] = "StaticIP.Prefixlen";
598const char kSavedIPAddressProperty[] = "SavedIP.Address";
599const char kSavedIPGatewayProperty[] = "SavedIP.Gateway";
600const char kSavedIPMtuProperty[] = "SavedIP.Mtu";
601const char kSavedIPNameServersProperty[] = "SavedIP.NameServers";
602const char kSavedIPPeerAddressProperty[] = "SavedIP.PeerAddress";
603const char kSavedIPPrefixlenProperty[] = "SavedIP.Prefixlen";
604const char kTetheringProperty[] = "Tethering";
605const char kVPNMTUProperty[] = "VPN.MTU";
606const char kWifiFrequencyListProperty[] = "WiFi.FrequencyList";
607const char kWifiVendorInformationProperty[] = "WiFi.VendorInformation";
608const char kWifiProtectedManagementFrameRequiredProperty[] =
609 "WiFi.ProtectedManagementFrameRequired";
610
611// Profile property names.
612const char kUserHashProperty[] = "UserHash";
613
614// Service Tethering property values.
615const char kTetheringNotDetectedState[] = "NotDetected";
616const char kTetheringSuspectedState[] = "Suspected";
617const char kTetheringConfirmedState[] = "Confirmed";
618
619// WiFi Service Vendor Information dictionary properties.
620const char kVendorWPSManufacturerProperty[] = "Manufacturer";
621const char kVendorWPSModelNameProperty[] = "ModelName";
622const char kVendorWPSModelNumberProperty[] = "ModelNumber";
623const char kVendorWPSDeviceNameProperty[] = "DeviceName";
624const char kVendorOUIListProperty[] = "OUIList";
625
626// WiFi Device link property names.
627const char kLinkStatisticsProperty[] = "LinkStatistics";
628const char kAverageReceiveSignalDbmProperty[] = "AverageReceiveSignalDbm";
629const char kInactiveTimeMillisecondsProperty[] =
630 "InactiveTimeMilliseconds";
631const char kLastReceiveSignalDbmProperty[] = "LastReceiveSignalDbm";
632const char kPacketReceiveSuccessesProperty[] = "PacketReceiveSuccesses";
633const char kPacketTransmitFailuresProperty[] = "PacketTransmitFailures";
634const char kPacketTransmitSuccessesProperty[] = "PacketTrasmitSuccesses";
635const char kTransmitBitrateProperty[] = "TransmitBitrate";
636const char kTransmitRetriesProperty[] = "TransmitRetries";
637
638// WiFi TDLS operations.
639const char kTDLSDiscoverOperation[] = "Discover";
640const char kTDLSSetupOperation[] = "Setup";
641const char kTDLSStatusOperation[] = "Status";
642const char kTDLSTeardownOperation[] = "Teardown";
643
644// WiFi TDLS states.
645const char kTDLSConnectedState[] = "Connected";
646const char kTDLSDisabledState[] = "Disabled";
647const char kTDLSDisconnectedState[] = "Disconnected";
648const char kTDLSNonexistentState[] = "Nonexistent";
649const char kTDLSUnknownState[] = "Unknown";
650
651// Wake on WiFi features.
652const char kWakeOnWiFiFeaturesEnabledPacket[] = "packet";
653const char kWakeOnWiFiFeaturesEnabledSSID[] = "ssid";
654const char kWakeOnWiFiFeaturesEnabledPacketSSID[] = "packet_and_ssid";
655const char kWakeOnWiFiFeaturesEnabledNone[] = "none";
656const char kWakeOnWiFiFeaturesEnabledNotSupported[] = "not_supported";
657
658// Cellular service carriers.
659const char kCarrierGenericUMTS[] = "Generic UMTS";
660const char kCarrierSprint[] = "Sprint";
661const char kCarrierVerizon[] = "Verizon Wireless";
662
663// Cellular activation types.
664const char kActivationTypeNonCellular[] = "NonCellular"; // For future use
665const char kActivationTypeOMADM[] = "OMADM"; // For future use
666const char kActivationTypeOTA[] = "OTA";
667const char kActivationTypeOTASP[] = "OTASP";
668
669// Geolocation property field names.
670// Reference:
671// https://devsite.googleplex.com/maps/documentation/business/geolocation/
672// Top level properties for a Geolocation request.
673const char kGeoHomeMobileCountryCodeProperty[] = "homeMobileCountryCode";
674const char kGeoHomeMobileNetworkCodeProperty[] = "homeMobileNetworkCode";
675const char kGeoRadioTypePropertyProperty[] = "radioType";
676const char kGeoCellTowersProperty[] = "cellTowers";
677const char kGeoWifiAccessPointsProperty[] = "wifiAccessPoints";
678// Cell tower object property names.
679const char kGeoCellIdProperty[] = "cellId";
680const char kGeoLocationAreaCodeProperty[] = "locationAreaCode";
681const char kGeoMobileCountryCodeProperty[] = "mobileCountryCode";
682const char kGeoMobileNetworkCodeProperty[] = "mobileNetworkCode";
683const char kGeoTimingAdvanceProperty[] = "timingAdvance";
684// WiFi access point property names.
685const char kGeoMacAddressProperty[] = "macAddress";
686const char kGeoChannelProperty[] = "channel";
687const char kGeoSignalToNoiseRatioProperty[] = "signalToNoiseRatio";
688// Common property names for geolocation objects.
689const char kGeoAgeProperty[] = "age";
690const char kGeoSignalStrengthProperty[] = "signalStrength";
691// ThirdPartyVpn parameters, properties and constants.
692const char kAddressParameterThirdPartyVpn[] = "address";
693const char kBroadcastAddressParameterThirdPartyVpn[] = "broadcast_address";
694const char kGatewayParameterThirdPartyVpn[] = "gateway";
695const char kBypassTunnelForIpParameterThirdPartyVpn[] = "bypass_tunnel_for_ip";
696const char kSubnetPrefixParameterThirdPartyVpn[] = "subnet_prefix";
697const char kMtuParameterThirdPartyVpn[] = "mtu";
698const char kDomainSearchParameterThirdPartyVpn[] = "domain_search";
699const char kDnsServersParameterThirdPartyVpn[] = "dns_servers";
700const char kInclusionListParameterThirdPartyVpn[] = "inclusion_list";
701const char kExclusionListParameterThirdPartyVpn[] = "exclusion_list";
702const char kObjectPathSuffixProperty[] = "ObjectPathSuffix";
703const char kExtensionNameProperty[] = "ExtensionName";
704const char kConfigurationNameProperty[] = "ConfigurationName";
705const char kObjectPathBase[] = "/thirdpartyvpn/";
706const char kNonIPDelimiter = ':';
707const char kIPDelimiter = ' ';
708} // namespace shill
709
710#endif // SYSTEM_API_DBUS_SHILL_DBUS_CONSTANTS_H_