Commit Graph

7740 Commits

Author SHA1 Message Date
Dan Williams
f911307996 policy: move hostname/lookup thread operations into separate file 2010-04-19 16:59:34 -07:00
Dan Williams
fbcdc95a21 logging: logger needs -ldl for dladdr() 2010-04-19 16:56:50 -07:00
Dan Williams
b04ebe5cc3 keyfile: fix writing IPv6 addresses with new format 2010-04-19 16:55:40 -07:00
Dan Williams
31590021ab libnm-util: update IPv6 address property description 2010-04-19 15:10:17 -07:00
Dan Williams
151a2b4c5a libnm-util: quiet harmless message in type conversion 2010-04-19 15:10:03 -07:00
Dan Williams
c5ff30fa71 doc: update settings spec generator for IPv6 address changes 2010-04-19 15:07:18 -07:00
Dan Williams
83652e6b8e libnm-util: convert from old IP6 address format to new
Ensure it still works correctly if something tries to set the
'addresses' property using the old GType.  Also make sure that
the various IP6 address comparison operations and string conversion
functions handle the gateway.
2010-04-19 10:14:44 -07:00
Dan Williams
73a7e6b8e0 core: fix IP6Config property types to match introspection spec 2010-04-18 11:43:43 -07:00
Dan Williams
1d409aeb53 core: fix Address property type of IP6Config objects
We can change the property's D-Bus signature (and thus API) here
because querying the IP6Config object's properties caused NM to
crash.  Apparently we forgot to change the type of the Address
property when we C&P-ed the IP4Config into the IP6Config, and
DBUS_TYPE_G_ARRAY_OF_ARRAY_OF_UINT is certainly the wrong type
to use since the backing object that dbus-glib would marshal
into the ARRAY_OF_ARRAY_OF_UINT wasn't that type, causing a
crash in dbus-glib when a client got the IP6Config.
2010-04-17 17:19:30 -07:00
Dan Williams
44ea07a5d7 libnm-util: add gateway member to IPv6 addresses 2010-04-17 10:26:53 -07:00
Dan Williams
d8f0ba554c policy: reconfigure routing and DNS when either IPv4 or IPv6 changes 2010-04-15 15:28:42 -07:00
Dan Williams
37c411abc9 core: add 'default6' property to ActiveConnection implementations 2010-04-15 15:26:11 -07:00
Dan Williams
e2ad8c2a54 core: add 'default6' property for ActiveConnection objects
Since IPv4 and IPv6 have different routing one device can have the
active IPv4 connection and a completely different one can have the
active IPv6 one.
2010-04-15 15:18:08 -07:00
Dan Williams
5e6ae3b226 core: don't require IPv4 configuration during activation 2010-04-15 14:59:29 -07:00
Dan Williams
c35bec214c dhcp: ensure the IP4 method is compatible with DHCP 2010-04-15 14:54:42 -07:00
Dan Williams
c049680515 core: use constant instead of hardcoding a string 2010-04-15 14:54:22 -07:00
Dan Williams
fe25e20f6a ifcfg-rh: handle disabled IPv4 correctly
Instead of not including the IP4 setting, set its method to disabled.
In reality either one is legal, but including the IP4 setting wtih
the method set to 'disabled' is more explicit.
2010-04-15 14:52:43 -07:00
Dan Williams
fb6c929d88 libnm-util: add IPv4 'disabled' method
Allowing IPv4 configuration to be completely disabled for a connection.
2010-04-15 14:51:47 -07:00
Dan Williams
009336a54c wifi: robustify supplicant info destruction
Zero out the struct so we crash if we ever try to use it after its
been freed.
2010-04-14 15:22:48 -07:00
Dan Williams
5a01a0b39e wifi: prevent infinite loop when disposing of supplicant proxy (rh #538717)
This has been around a long time, but is very hard to trigger.  It appears
to happen mostly if the supplicant segfaults on resume but has been seen
in other cases as well.

For whatever reason, the DBusGProxy's refcount reaches 0 and the proxy gets
disposed of.  That in turn disposes of all the pending calls that are
in-progress on the proxy.  Since we give the pending calls a closure, that
closure (nm_supplicant_info_destroy) gets called when the pending calls
are destroyed.  That closure unrefs the proxy again.

Since DBusGProxy doesn't have any protection in its dispose() handler
against re-entrant disposes (which is arguably a bug of the client)
we end up infinite looping in nm_supplicant_info_destroy().

Fix that by ensuring we return early if we detect that we are already
freeing the NMSupplicantInfo object, and thus don't try to dispose
of the proxy yet again.
2010-04-14 15:16:48 -07:00
Jiří Klimeš
6234c66bc9 man: add man page for nmcli 2010-04-14 23:40:52 +02:00
Jiří Klimeš
963ae36636 man: manpage updates and cleanups 2010-04-13 15:57:11 +02:00
Dan Williams
dc7fe96e3f ifcfg-rh: fix IPv6-only configurations (rh #538499) 2010-04-12 16:24:07 -07:00
Jiří Klimeš
9000c68839 logging: change default level to be true INFO level
Using LOGL_INFO | LOGL_WARN | LOGL_ERR as default to log the same values
as though "--log-level=INFO" were specified.
2010-04-12 17:55:44 +02:00
Jiří Klimeš
9b9331f53d logging: fix log level flag values (LOGL_*)
0x00000000 caused that ERR level (nm_log_err()) gets never logged.
2010-04-12 17:48:37 +02:00
Jiří Klimeš
ab529302a7 ifcfg-rh: fix setting MTU to "automatic" for wired connections (rh #569319)
ifcfg-rh plugin was not able to reset MTU to "automatic" if it had been
set to a value, for wired connection. This fix removes "MTU" variable
from the ifcfg-* file when mtu is 0.
2010-04-12 17:15:28 +02:00
Jorge González
618c5f1b08 po: update Spanish translation (bgo #615374) 2010-04-11 21:24:59 -07:00
Dan Williams
38ef723df3 wifi: fix disabled wifi devices on resume (rh #578141)
RFKILL_TYPE_WLAN is 0, and we while we had allocated the structure
for WIMAX rfkill in the manager's priv->radio_states, we hadn't
filled it in.  That meant that priv->radio_states[RFKILL_TYPE_WIMAX].rtype
was 0, and thus various operations thought that wifi devices
were wimax devices, and since WiMAX rfkill is never updated because
it's not yet used, wifi would never be enabled after resume.
2010-04-08 18:23:43 -07:00
Dan Williams
c57c40a621 core: fix device log message in UNAVAILABLE state 2010-04-08 15:51:54 -07:00
Dan Williams
3592e59cab wifi: fix log message 2010-04-08 15:51:32 -07:00
Dan Williams
ea05e90016 ethernet: fix debug log message 2010-04-08 15:00:32 -07:00
Dan Williams
78f7ef1115 logging: use INFO level for debug messages
By default most distros won't log debug messages to syslog; but we
want them logged when the user explicitly requests them via the logging
API and config options in NM.  Half the point of doing more logging
was to make it easier for users to get logs out of NM, and having
to edit syslog configuration makes it all pointless.
2010-04-08 14:49:56 -07:00
Dan Williams
dcda7e7ab2 doc: update libnm-util doc locations 2010-04-08 14:03:04 -07:00
Dan Williams
f5adc0f62b doc: rearrange libnm-glib doc sections 2010-04-08 14:00:08 -07:00
Dan Williams
8247ecc524 doc: fix libnm-glib doc generation 2010-04-08 13:56:37 -07:00
Dan Williams
0d8174dfa6 logging: fix build on 32-bit platforms 2010-04-08 13:29:07 -07:00
Krishna Babu K
b932dea21b po: update Telugu translation (bgo #615042) 2010-04-08 10:52:52 -07:00
Dan Williams
157e9f791d core: log netlink link messages 2010-04-08 10:44:42 -07:00
Dan Williams
d0f2a50680 core: log kernel interface indexes 2010-04-08 09:30:05 -07:00
Dan Williams
8364ce7bac wired: debug logging for carrier detect support detection 2010-04-08 09:22:52 -07:00
Dan Williams
f72c00b984 man: add logging control options 2010-04-08 09:16:27 -07:00
Dan Williams
7e5d6a42b0 logging: use --log-domains for consistency 2010-04-08 09:11:00 -07:00
Dan Williams
02002ef9d1 logging: add D-Bus method to change logging 2010-04-08 08:56:17 -07:00
Dan Williams
7fa8f29aaf wifi: more supplicant/wifi debug logging
To help debug wifi device availablility.
2010-04-07 16:42:29 -07:00
Dan Williams
b0f056d787 core: log device delayed state transitions 2010-04-07 16:41:44 -07:00
Dan Williams
e92e321c4d po: update translatables 2010-04-07 15:10:12 -07:00
Dan Williams
26efaaf168 core: more manager debug logging 2010-04-07 14:55:43 -07:00
Dan Williams
71bdbf9c25 wifi: log ipw killswitch changes 2010-04-07 14:55:29 -07:00
Dan Williams
df04e3f66c udev: more debug logging of rfkill and udev 2010-04-07 14:46:03 -07:00
Dan Williams
4e5cfab478 logging: fix multiple log level handling
Ensure messages are only printed in the format their log level wants.
2010-04-07 14:43:32 -07:00