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