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