Commit Graph

8762 Commits

Author SHA1 Message Date
Dan Williams
7f3f5bfef3 doc: document vpn setting properties 2009-11-11 14:07:25 -08:00
Dan Williams
9a9e833af6 doc: document serial setting properties 2009-11-11 14:07:14 -08:00
Dan Williams
963dde80a4 doc: document pppoe setting properties 2009-11-11 14:07:02 -08:00
Dan Williams
158ef1cf97 doc: document ppp setting properties 2009-11-11 14:06:48 -08:00
Dan Williams
9a5e3bd0b6 doc: document gsm setting properties 2009-11-11 14:06:33 -08:00
Dan Williams
3f2ff06969 doc: document cdma setting properties 2009-11-11 14:06:14 -08:00
Dan Williams
b71a320e14 doc: document olpc-mesh setting properties 2009-11-11 13:50:19 -08:00
Dan Williams
8624db249a doc: document bluetooth setting properties 2009-11-11 13:50:01 -08:00
Dan Williams
bced20c656 doc: align properties documentation cells to the top 2009-11-10 12:37:51 -08:00
Dan Williams
14089e8b26 doc: update some setting properties descriptions 2009-11-10 12:36:20 -08:00
Dan Williams
1b6467d311 doc: add settings properties documentation generator 2009-11-10 12:23:03 -08:00
Dan Williams
cfec3f3a6d libnm-util: add missing nm_setting_olpc_mesh_new() 2009-11-10 12:22:45 -08:00
Dan Williams
972b7ed70a olpc-mesh: fix device added signal usage
The object to which the signal is connected is always the first arg.
2009-11-10 09:06:53 -08:00
Dan Williams
d53574d725 wifi: fix some immediate wifi connection failures when enabling wifi
Impact of this bug is likely limited to Ad-Hoc connections that don't
require a scan before activation since by the time the scan has finished,
the NMSupplicantInterface will be set up.  However, this shows a bug where
Ad-Hoc connections can be immediately activated even if they don't have
the latest timestamp, because a scan hasn't completed yet and thus we don't
know if there are any usable APs around.  Could be fixed by only letting
auto-activations happen after the first successful scan anyway.  But whatever...

Log messages look like this:

NetworkManager: <info>  Activation (wlan0/wireless): connection 'Wireless connection 1' requires no security.  No secrets needed.
NetworkManager: <info>  Config: added 'ssid' value 'foobar'
NetworkManager: <info>  Config: added 'mode' value '1'
NetworkManager: <info>  Config: added 'frequency' value '2412'
NetworkManager: <info>  Config: added 'key_mgmt' value 'NONE'
(NetworkManager:28239): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed
(NetworkManager:28239): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion `instance != NULL && instance->g_class != NULL' failed
NetworkManager: dbus_g_proxy_begin_call: assertion `DBUS_IS_G_PROXY (proxy)' failed
NetworkManager: <WARN>  real_act_stage2_config(): Activation (wlan0/wireless): couldn't send wireless configuration to the supplicant.
NetworkManager: <info>  (wlan0): device state change: 5 -> 9 (reason 9)
NetworkManager: <info>  Activation (wlan0) failed for access point (foobar)
NetworkManager: <info>  Marking connection 'Wireless connection 1' invalid.

This happened because the nm_device_wifi_set_enabled() only checked for
the existence of the NMSupplicantInterface, but not whether the supplicant
interface was ready to be used.  The supplicant interface would be in the
middle of the getInterface or addInterface call and wouldn't have
initialized priv->iface_proxy yet, which is where that error message was
coming from.

So don't change device state from the wifi_enabled handler, just init
the supplicant interface (it should have been torn down already by
device_state_changed() when the device goes to UNAVAILABLE or UNMANAGED)
and wait for the supplicant interface state change to READY to change
the NMDeviceWifi state to DISCONNECTED in supplicant_iface_state_cb_handler().
2009-11-06 16:53:51 -08:00
Michael Biebl
9cb3877afa core: link against libdl for dladdr()
For stricter linkers like binutils-gold.
2009-11-06 13:40:44 -08:00
Michael Biebl
836cbe2d13 core: link against libm for pow()
Link against libm (using the LT_LIB_M macro and the $LIBM variable) as
we are using pow() and otherwise fail to build with stricter linkers like
binutils-gold.
2009-11-06 13:40:13 -08:00
Dan Williams
7d23d8ccdb Merge commit 'origin/master' into btdun 2009-11-06 13:34:52 -08:00
Dan Williams
0d05bc9a63 core: don't leak 'device-type' into PropertiesChanged signal
The device type is set at object construction before the object is
ever exported, thus the first time a client gets the value it will
be correct, and the value should never change.  As such, the
property never needs to be part of PropertiesChanged signals.
2009-11-04 10:43:46 -08:00
Dan Williams
ea78b0af0e core: don't leak 'ifindex' into PropertiesChanged signal
It's not part of the D-Bus spec; so it shouldn't be exposed.
2009-11-03 17:40:36 -08:00
Jirka Klimes
02a77d2b63 core: validate pidfile and quit early if NM is already running (rh #517362)
Also, don't delete the pidfile if it wasn't written out in this run
of NM.  Cleanups and simplifications by dcbw.
2009-11-03 16:13:26 -08:00
Jirka Klimes
dccdf5e1f3 core: preserve wifi and networking enabled/disabled states (bgo #582447)
With modifications by dcbw to create the state file if it doesn't exist,
and a couple cleanups and formatting fixes.
2009-11-02 17:29:53 -08:00
Dan Williams
df32cfbfd8 libnm-util: don't allow blank or NULL VPN items or secrets (rh #532084)
Weren't supposed to be allowed anyway; fix that and add a testcase for it.
2009-11-02 10:57:31 -08:00
Alexander Sack
82011dff04 ppp: allow update of ppp secrets in all ACTIVATING stages (lp:432205)
Previously, ppp code would flip device state to _NEED_AUTH before
asking for secrets update; this is not the case anymore after landing
of f28a0df4a66e8f6c98327691c9c90df0604bbd28; hence, we need to
allow update of secrets in all ACTIVATING stages.

This patch updates this behaviour for all device classes with ppp
support.
2009-10-30 19:58:30 +01:00
Dan Williams
06a40dcf73 core: move helper macro for activating state to general location 2009-10-30 11:39:19 -07:00
Dan Williams
671f00c86f introspection: synchronize VPN ActiveConnection interface
Due to dbus-glib limitations we still have to keep two copies of this,
and furthermore PropertiesChanged won't yet trigger for the VPN bits
since there's no way to push out signals on a different interface.
2009-10-28 10:41:18 -07:00
Dan Williams
294a5e3153 modem: substitute known-good nameservers if PPP doesn't return any (lp:434477)
Modem firmware PPP implementations suck.
2009-10-23 16:49:38 -07:00
Dan Williams
bf8d3b027b introspection: document ip4-config argument formats 2009-10-23 15:38:06 -07:00
Dan Williams
f8643cc072 system-settings: fix PK Authority object lifetimes
It's a singleton, but PolicyKit didn't increment the reference count
when returning from polkit_authority_get() like we expected (which has
since been fixed upstream).  So for now, just don't unref the authority
at all.

Since we don't do that, there's a chance that some PolicyKit calls could
be outstanding when either the NMSysconfigSettings object or one of the
NMSysconfigConnection objects are around, so we make sure we cancel any
PolicyKit calls when the object gets disposed.  This is tricky, because
canceling them from the dispose may mean that the callback gets called
after the object is actually destroyed, so we have to be careful not to
access any private object data from the callbacks in that situation.
2009-10-21 14:23:24 -07:00
Dan Williams
4b2c810b1b core: clear invalid tag on failed connections when sleeping
So they'll get tried again on wakeup/resume.
2009-10-20 15:25:04 -07:00
Dan Williams
5761e328b8 dns: honor resolv.conf symlinks (lp:324233)
Based on a patch from Alexander Sack, but hugely
modified by me to make use of allocated realpath results
instead of stack-based arrays, and to fix an omission in
the original patch that would still have used the
non-realpath-resolved path to /etc/resolv.conf when doing
the atomic rename of the tempfile to resolv.conf.
2009-10-20 15:03:12 -07:00
Dan Williams
2d9ecfccd8 Merge commit 'origin/master' into btdun 2009-10-20 12:12:08 -07:00
Dan Williams
c9d2d977dd libnm-glib: tighter warning print checks
Should be checking for dbus-glib errors of the right type,
instead of any error code (dbus-glib or not) that happens to be
4.
2009-10-20 12:10:30 -07:00
Dan Williams
3d194df94a libnm-glib: warning cleanups 2009-10-20 11:48:23 -07:00
Dan Williams
9e356dab83 libnm-glib: fix warning tearing down connections
GLib-CRITICAL **: g_hash_table_iter_next: assertion `ri->version == ri->hash_table->version' failed
2009-10-20 11:36:47 -07:00
Dan Williams
4b73cf2421 ipv6: fix incorrect address config signal emission
device->want_signal was never set to TRUE when addrconf was started,
causing random netlink events (say for link-local address addition
or removal) to trigger the config-changed signal from
nm_ip6_device_sync_from_netlink() at the wrong time.  This would
cause IPv6 address configuration to look like it succeeded, when
in fact the config timeout was still in-force.  Thus device
activation would proceed if IPv4 was enabled, but a few seconds later
the device would be deactivated due to the still active IPv6
timeout.

So fix that and clarify when the events from the IPv6 manager happen,
and what the want_signal variable is really for.
2009-10-20 11:23:10 -07:00
Dan Williams
23fec8dc72 ip6: save the accept_ra value and re-set it when the device is deactivated 2009-10-19 15:38:21 -07:00
Dan Williams
442dc676ef ip6: use device's IP interface, not its physical interface 2009-10-19 14:05:36 -07:00
Dan Williams
4eb2346b67 ifcfg-rh: fix writing LEAP connections 2009-10-19 10:20:25 -07:00
Dan Williams
40c91efa21 libnm-util: fix checking for TLS and TTLS phase2 secrets
Two errors here; first, need_secrets_tls() was not updated correctly
for the certificate paths changes that landed recently, and would
have incorrectly returned "no secrets required" for the PATH scheme.

Second, an incorrect strcmp() comparison in need_secrets_phase2()
meant that the wrong TTLS phase2 method would get asked if it
required secrets.
2009-10-18 23:45:26 -07:00
Dan Williams
a770a14fd2 libnm-util: ensure GSM setting default values
Broken by 00f945e54e.
2009-10-18 22:51:43 -07:00
Dan Williams
8d65515435 manager: automatically pick a base connection for VPNs
If let callers pass "/" for the specific object, and NM will
automatically pick the default device.
2009-10-16 11:52:27 -07:00
Dan Williams
7f63b48854 system-settings: fix writing connections when an earlier plugin can't (bgo #581758)
The error object passed to the plugin's add-connection handler wasn't
getting properly cleared if an earlier plugin had failed to write
the connection and fell back to the current plugin.
2009-10-15 20:52:00 -07:00
Dan Williams
679d548e09 ifcfg-rh: add testcase for (rh #528068) 2009-10-13 12:32:06 -07:00
Dan Williams
bc653d2225 vpn: clear secrets when the connection fails
NM previously only cleared secrets when the VPN service daemon quit,
and the service daemons are on a 10-second inactivity timer.  So if
the user tried to re-activate the failed VPN connection within 10
seconds the old secrets would get used, which clearly isn't what we
want.  Ensure that whenever the VPN connection fails or disconnects,
we ask the settings service for secrets again the next time.
2009-10-08 23:00:01 -07:00
Dan Williams
c31b3e4554 ifcfg-rh: recognize 'static' BOOTPROTO (rh #528068) 2009-10-08 16:18:04 -07:00
Adam Langley
e8982ab2a6 doc: update code style docs 2009-10-07 12:28:10 -07:00
Dan Williams
093b86a8c7 Merge commit 'origin/master' into btdun 2009-10-07 12:21:20 -07:00
Dan Williams
6f502e9116 Merge commit 'origin/master' into btdun 2009-10-07 12:20:47 -07:00
Dan Williams
00f945e54e gsm: correct GSM band implementation and settings
NM didn't pass it to MM anyway, so it was mainly unused, but the band settings
were still wrong.  Fix that (and still preserve ABI) by adding a new property
for allowed bands that can actually hold all the bands instead of limiting
to 16-bits.  Clean up some of the deprecation stuff at the same time to make
it clearer what's deprecated and what to do about it.
2009-10-07 12:18:57 -07:00
Noel J. Bergman
59d89050f2 sharing: fix sharing after 715ddd2045 (lp:444756)
Commit 715ddd2045 broke sharing because
sometimes a multi-argument string gets passed in rule->rule.  Revert
most of that commit.  A bunch of cleanups by dcbw too.
2009-10-06 16:46:46 -07:00