summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-10-02modem: reduce "starting the modem manager" to a debug messageHEADmasterDan Williams1-1/+1
2012-10-02core: implement NMDevice::state-changed more idiomaticallyDan Winship8-53/+47
Rather than having NMDevice subclasses connect to their own ::state-changed signal, fix up the signal definition so they can just override the class handler.
2012-10-02core: remove "real_" prefix from method implementation namesDan Winship18-470/+470
The idea was copied from gtk, but it's only used there in cases where the method's wrapper function and default implementation would otherwise have the same name, which never happens in NM because our method implementations aren't prefixed with the type name, so it's just noise here.
2012-09-28policy: add a configure option for a permissive modify.system defaultDan Winship4-6/+23
Add --enable-modify-system, to change the default for org.freedesktop.NetworkManager.settings.modify.system to allow users to edit system connections without needing to authenticate.
2012-09-27ifcfg-rh: write out wired settings on vlan connectionsDan Winship1-3/+38
VLAN connections can have "hardware" settings in addition to the VLAN-specific ones. ifcfg-rh was reading in wired settings for VLANs, but was not writing them back out.
2012-09-27core: don't try to create VLANs on devices that don't support themDan Winship3-1/+19
VLANs are only supported on certain kinds of devices, so don't try to create them on other devices. (In fact, NM currently assumes that VLANs are only created on Ethernet devices, so we need to be even more picky than that.)
2012-09-27libnm-util: Improve NMSettingVlan's verify()Dan Winship2-17/+61
Do slightly more validation if NMSettingVlan properties, and make sure that at least one method of specifying a parent is used. Remove the check that id is in range, since gobject will not allow you to set the property to a value outside its declared range anyway.
2012-09-26all: Don't use ctype.h macrosDan Winship26-60/+34
The ctype macros (eg, isalnum(), tolower()) are locale-dependent. Use glib's ASCII-only versions instead. Also, replace isascii() with g_ascii_isprint(), since isascii() accepts control characters, which isn't what the code wanted in any of the places where it was using it.
2012-09-26libnm-util: move nm_utils_is_uuid() hereDan Winship6-38/+30
This is useful outside the daemon too, so move it into libnm-utils.
2012-09-26ifcfg-rh: Fix the filename in two error messagesDan Winship1-2/+2
2012-09-26ifcfg-rh: Fix bonds-of-InfiniBandDan Winship3-11/+188
Move the bond-slave check out of the wired-specific code so that it can be shared with the infiniband code again.
2012-09-26ipv6: restore the ability to set a default IPv6 route via a device (rh #829010)Dan Winship1-4/+8
replace_default_ip6_route() was mistakenly requiring gw to be non-NULL, which meant it could only set the route via a gateway, not via a device (thus breaking IPv6-over-openconnect)
2012-09-25distro: remove src/backendsPavel Šimerda21-600/+0
It is no longer used. Also remove an obsolete comment about backends in nm-system.h.
2012-09-25distro: remove nm_backend_enable_loopback()Pavel Šimerda17-167/+13
We don't need to use distribution-specific network scripts to just bring up the loopback interface. I'm not aware of any init dependency problems but even if there are some, it is more practical to solve them in the respective configuration files. This function also tried to add 127.0.0.1 to the list of addresses but not ::1. We don't need to set the interfaces up as this is done by the kernel.
2012-09-25distro: remove nm_backend_ipv6_use_tempaddr()Pavel Šimerda17-131/+43
This function was *not* distribution specific and was used only in one place.
2012-09-25distro: remove nm_backend_update_dns()Pavel Šimerda17-131/+0
This function was basically the same for all distributions and was used only in one place. It tried to restart nscd or ask it to reload configuration. This is not necessary as nscd uses inotify to watch /etc/resolv.conf.
2012-09-25systemd: restore D-Bus service alias nameDan Williams1-0/+1
Mistakenly removed while merging 86f14392fc94189d24c0e65dcc5b2db74ca709ae
2012-09-25systemd: also install nm-wait-online on 'systemctl enable'Pavel Šimerda1-1/+2
Inspired by openSUSE patches. There is no need to require user/distributor manually enable nm-wait-online.
2012-09-25device: remove useless ipv6 route additionPavel Šimerda1-14/+0
Link-local multicast routes are handled by kernel. Just try pinging ff02::1%eth0 on a clean system without IP configuration.
2012-09-25keyfile: fix use-after-free in log messagesDan Williams1-2/+4
2012-09-24wifi: add "Speedport W 501V" to list of BSSID-locked SSIDsDan Williams1-0/+1
"Speedport W 501V" is another widely-used SSID set on routers given out by a German telecom.
2012-09-24examples: fix python example file names in EXTRA_DISTJiří Klimeš1-1/+2
2012-09-24examples: fix add-system-connection.py -> add-connection.py renameJiří Klimeš1-1/+1
It fixes 'make dist' that fails otherwise. Found by pavlix.
2012-09-24api: add NM_DEVICE_STATE_REASON_SECONDARY_CONNECTION_FAILED reason and use thatJiří Klimeš5-2/+16
2012-09-24core: VPN autoconnect feature (bgo #560471) (rh #483120)Jiří Klimeš3-10/+184
We go through the SECONDARIES state where we check if there are some secondary (VPN or other) UUIDs that are to be activated before progressing to ACTIVATED. In case of an error with a secondary UUID or its activation, the base connection can't activate successfully.
2012-09-24core: add some helper functions to activation requestJiří Klimeš3-2/+33
2012-09-24core: add nm_active_connection_get_name() for easy access to connection nameJiří Klimeš2-0/+9
2012-09-24cli: print 'secondaries' property of 'connection' settingJiří Klimeš1-1/+15
nmcli -f connection con list id "my connection"
2012-09-21ifcfg-rh: read/write 'secondaries' property of 'connection' settingJiří Klimeš2-0/+38
as SECONDARY_UUIDS variable
2012-09-21libnm-util: add "secondaries" property containing secondary connection UUIDsJiří Klimeš3-2/+123
These connections are to be activated with the base connection.
2012-09-21cli: add NM_DEVICE_STATE_REASON_SSID_NOT_FOUND reason-to-string mappingJiří Klimeš1-0/+3
2012-09-20examples: add dispatcher example for exclusive wired/wifiDan Williams4-1/+32
2012-09-20wifi: handle supplicant's deauthentication disconnect reasonDan Williams4-6/+36
Recent versions of wpa_supplicant have a "DisconnectReason" property that, upon a deauthentication event, contains an IEEE 802.11 "Reason Code" for why the disconnect may have occurred. We may want to use this in the future, so add the infrastructure to pass it around to supplicant listeners.
2012-09-20wifi: request new PSK if disconnected during the 4-way handshakeDan Williams1-26/+85
Most often, a disconnect during the 4-way handshake means that the WPA PSK is wrong (though not always). In that case, ask the user for a new password.
2012-09-20wifi: rename set_current_ap -> set_active_apDan Williams1-6/+6
Matches the D-Bus property, less confusing.
2012-09-20wifi: add SSID_NOT_FOUND reason and use it when we canDan Williams4-4/+27
When the supplicant starts connecting, or gets disconnected, track whether it ever starts talking to an AP. Then if the connection fails as a result of an initial connection timeout or a link timeout, we can use SSID_NOT_FOUND when we're reasonably sure the AP doesn't exist. Clients can use this to show better error messages. Note that SSID_NOT_FOUND may only be reported when using nl80211 drivers, as WEXT drivers don't provide the status necessary to determine whether the network exists or not.
2012-09-20wifi: only request new secrets during the initial connectionDan Williams1-5/+13
Don't automatically request new secrets just because previous attempts to connect failed, since this could be due to many other things than bad secrets. Only request new secrets if the caller of handle_auth_or_fail() specifically wants them. Next, if the supplicant fails the initial association attempt with an encrypted AP, only ask for new secrets if this is the first time we're trying to connect to this network. Otherwise we assume the secrets good; if they aren't, the user should change them through a configuration editor. These changes should dramatically cut down the number of unwanted secrets requests due to random driver failures, weak AP signal strength, or out-of-range APs.
2012-09-20wifi: remove associated AP on failureDan Williams1-8/+42
If the link to the current AP fails, that's either because it is out of range or somebody turned it off, or the driver is being dumb. Instead of leaving the failed AP in the scan list, whereupon we'll just try reconnecting to it again (even though it might not be visible), remove it from the list and only try reconnecting if a new scan finds it. To ensure that happens, start a scan when entering the DISCONNECTED state, which the device enters right after FAILED. Now there's a race between the periodic update and the link timeout handler, as the periodic update could have run right before the link timeout, and if the card was momentarily unassociated when the periodic update fired, priv->current_ap will be cleared, and thus we can't remove it from the internal scan list. To fix that, only run the periodic update when we know the supplicant is talking to an AP. When it's not talking to an AP the information that the perioidic update gathers is meaningless anyway. Plus, it's not very helpful to clear the current AP just because the driver/supplicant are in a transient state; if they recover the connection we've bounced stuff unecessarily, and if they don't recover we'll be tearing the connection down anyway.
2012-09-20wifi: don't autoconnect to networks that have never been successfulDan Williams2-32/+10
If you accidentally click on an wifi network in the menu, and you don't know the password, and cancel, the connection always stuck around and was available for autoconnection. That's annoying, and it's a few clicks to go delete them. But better yet, we can slightly repurpose the 'timestamp' property of connections to determine whether or not they've been successfully connected in the past; NM stores timestamps for all connections as of version 0.9. So if a wifi connection hasn't ever been successful (which means it has a timestamp in the timestamp cache, but that timestamp is zero), don't try to autoconnect it. Preloaded connections without a timestamp will still be autoconnected at least once (as they always have) because they won't yet have a timestamp in the timestamp cache.
2012-09-20core: determine whether connection timestamps are set or notDan Williams4-22/+46
Currently there's no way to differentiate between a connection that has never been activated, and a connection that has never been *successfully* activated. In both cases nm_settings_connection_get_timestamp() returns zero. But it's useful to know whether a connection hasn't even been tried yet, so enhance the timestamp code to return whether or not the timestamp has been found in the timestamp cache or not, and make the NMDevice core set an explict timestamp of 0 if the connection failed on the first attempt. We'll use this later to conditionally autoconnect WiFi connections depending on whether they've ever successfully connected or not, but still allow preloaded connections without a timestamp to autoconnect as they always have.
2012-09-19build: update .gitignoreDan Winship1-0/+6
2012-09-17core: wait until we daemonized before setting up signals (bgo #683932)Alexandre Rostovtsev1-4/+4
If we mask signals before daemonizing, the daemon process will not be able to handle them, and thus would be unkillable with anything other than SIGKILL.
2012-09-13po: updated Marathi translation (bgo #683928)Sandeep Shedmake1-236/+134
2012-09-12trivial: use define for supplicant interface state signalDan Williams1-1/+1
Helps when you need to grep the code to change a signal's signature. Otherwise you're stuck grepping for "state" which a lot of objects have as a signal name.
2012-09-12trivial: whitespace fixupDan Williams1-2/+4
2012-09-11core: add cancelation to dispatcher callsDan Williams2-21/+42
2012-09-11core: add dispatcher callbacks and simplify dispatcher function prototypesDan Williams5-39/+125
Remove unused args for the non-VPN cases to cut down on the NULL NULL NULL stuff since we're also adding two more arguments. Add the ability for callers to give a callback that should be called when the dispatcher is done.
2012-09-11core: convert dispatcher to asynchronous operation and return its resultsDan Williams4-309/+505
In preparation for making NM wait on the dispatcher, make the dispatcher call scripts asynchronously, and report the script results back to NM.
2012-09-11core: split dispatcher into its own fileDan Williams8-228/+292
2012-09-11core: add settings for 4G (LTE) network modesMarius B. Kotsbak3-5/+21
NM_SETTING_GSM_NETWORK_TYPE_PREFER_4G and NM_SETTING_GSM_NETWORK_TYPE_4G added.