Commit graph

3900 commits

Author SHA1 Message Date
Dan Williams
bc7ac737ba core: ensure superclass' finalize method is called
Fixes a crash with PropertyChanged signals (triggered when using wifi + vpn and
rmmod-ing the driver) where properties_changed_info_destroy() wouldn't get
called on object destruction becuase the GObject finalize method never got
called for the DHCP4Config and IP4Config objects.
2009-02-25 13:50:34 -05:00
Dan Williams
715848c2c5 modem: delay probing of all modems by 2 seconds
For the moment; until we can optimize the prober.  The problem is that a modem
that's not fully powered up and ready to talk looks exactly the same as a tty
that just doesn't support AT commands at all.
2009-02-24 07:08:24 -05:00
Dan Williams
3e6671d7a7 core: fix doc generation 2009-02-22 22:13:45 -05:00
Dan Williams
09412869c1 system-settings: implement common GetSettings and GetSecrets methods (rh #486696)
Fix a few problems... No plugin should return secrets in the GetSettings method,
which some plugins did.  When that was committed in the commit "system-settings:
don't return secrets in the settings", it broke those plugins that didn't implement
GetSecrets.  Each plugin can actually use the same code for GetSettings and
GetSecrets, so implement those generically in the NMExportedConnection class and
remove plugin-specific implementations that all did the same thing.
2009-02-22 17:35:27 -05:00
Dan Williams
a82b93c31a core: fix configure.in comment 2009-02-22 07:59:21 -05:00
Dan Williams
67f8c95180 modem: delay probe of cdc-acm devices by 2s as well
Some cards are just going to need delayed probing if they take
a bit respond to AT commands after being plugged in.  We can
optimize further by doing an initial check, waiting a small time
for the response, then checking again at 1s, waiting a small time,
then checking at 2 seconds and waiting for the full timeout for
those devices where --delay is given.
2009-02-20 13:04:57 -05:00
Dan Williams
a2b55d4370 core: use IFF_LOWER_UP instead of IFF_RUNNING for carrier (lp #332064)
We really have wanted to use IFF_LOWER_UP since 2.6.17 for carrier
status, since that's tied to netif_carrier_ok()/netif_carrier_on() in
the kernel.  See kernel commit b00055aacdb172c05067612278ba27265fcd05ce
for the introduction of IFF_LOWER_UP.
2009-02-20 09:56:33 -05:00
Dan Williams
08d7b5f9d2 core: fix distcheck for udev callout 2009-02-19 17:05:02 -05:00
Dan Williams
671c232544 ifcfg-rh: ignore explicitly set 'localhost' hostnames (rh #441453)
To match 'network' service behavior, which would perform reverse
address lookups when the HOSTNAME from /etc/sysconfig/network
was 'localhost' or 'localhost.localdomain'.  Just name your machine
already.
2009-02-19 15:49:37 -05:00
Dan Williams
68b75bb90e modem: move probing into NetworkManager instead of udev-extras
For now.  It doesn't make a lot of sense to have modem probing in udev when
we switch to ModemManager in the future, since ModemManager would have to
re-do pretty much everything the udev-extras prober already did.  Thus,
since modem-probe from udev-extras doesn't have much of a future, don't
start using it or requiring it.  Move the code into NM instead, but still
use udev for the actual probing.
2009-02-19 13:04:13 -05:00
Dan Williams
6ee945ec07 802.1x: allow explicitly specifying PEAP version to either 0 or 1
Previously requiring only v1 was possible, but there are apparently
so many different implementations of v1 that sometimes you have to force
v0 instead.
2009-02-19 13:00:03 -05:00
Dan Williams
6176cc6808 release: bump version for 0.7.1rc1 2009-02-18 17:35:42 -05:00
Dan Williams
90827aa224 core: clean up initial device messages 2009-02-18 14:15:48 -05:00
Dan Williams
13e49239bd system-settings: don't return secrets in the settings
Since only authorized users should be able to get secrets, don't return
them in the GetSettings handlers; callers need to use GetSecrets instead.
2009-02-18 14:01:33 -05:00
Dan Williams
4e873d09b0 core: fix crash reading modem caps from HAL; log whether HAL/udev used 2009-02-18 14:00:40 -05:00
Dan Williams
5fd2cd5708 dhcp: always clean up DHCP client watch callback when stopping DHCP
Also fix a bug where failure to start the DHCP client wouldn't be
handled.
2009-02-18 09:58:52 -05:00
Dan Williams
b3f192e216 dbus: final dbus policy fixes (bgo #563730)
Keep explicit denials, consolidate stuff, ensure that when denying
send_interface it's almost always matched with send_destination.
2009-02-17 10:45:44 -05:00
Dan Williams
6d498a1f94 system-settings: fix shutdown issues
Shutdown on SIGTERM, and don't segfault when quitting cleanly.  Can't
send signals on an object that's being disposed of, so don't do that.
Fix a memory leak of the Hal manager's priv->devices on shutdown, not
that it matters.
2009-02-17 10:45:36 -05:00
Dan Williams
9ca2cd78fd gsm: quiet pointless debug message 2009-02-17 06:25:52 -05:00
Dan Williams
eea5a77db4 gsm: only use the 'Control' interface on new Option modems 2009-02-17 06:24:41 -05:00
Dan Williams
3a37aa6ae5 core: ask udev for modem capabilities
In combination with udev-extras, this allows automatic detection of modem
capabilties instead of having to keep 10-modem.fdi up-to-date with the hardware
flavor of the week.  NMHalManager grabs the originating device of a newly
detected device, passes that to NMManager, which then passes it along to the
device-type-specific creators.  The modem creator then asks udev for any
probed modem capabilities, and uses those in perference to any capabilities
HAL reports.  HAL capabilities are kept as a fallback.
2009-02-16 18:07:49 -05:00
Dan Williams
149166c49a gsm: use AT+CGREG on Huawei E160G modems (bgo #565177) (rh #466177) 2009-02-15 23:09:50 -05:00
Dan Williams
3ea65cdd39 hso: only turn off unsolicited dial messages after dialing 2009-02-15 22:53:10 -05:00
Dan Williams
a01940cda8 hso: fix repeated secrets requests
Secrets attempts never got reset.
2009-02-15 22:30:15 -05:00
Dan Williams
58f0541ff4 makefile cleanups
0.7 requires dbus 1.1 or greater (for system bus activation), so make that
explicit, and remove compat code for D-Bus 0.6 and earlier.  Consolidate
the various glib pkgconfig checks into one, since most anything will require
gthread, glib, and gobject anyway.  Fixup the docs makefile to be more
automake-compatible and let 'make clean' actually work correctly when
docs are built.
2009-02-15 11:23:31 -05:00
Dan Williams
52dbe22890 dbus: clean up reconnection
The reconnection timeout would never be canceled, and get rid of the
"disconnected by the system bus" message on exit, which while
technically true was useless due to the pending exit.
2009-02-15 11:23:22 -05:00
Dan Williams
1ec0645602 core: log when exiting 2009-02-15 11:23:11 -05:00
Dan Williams
e383153375 man: fix up manpages; document dispatcher stuff 2009-02-14 17:21:17 -05:00
Dan Williams
f142e15df7 core: fix error reporting from replace_default_ip4_route() (rh #477916) 2009-02-13 06:58:42 -05:00
Dan Williams
b9028ffd7e core: increase SSID buffer size to fix 32-character SSIDs (rh #485312, lp281755) 2009-02-12 18:04:43 -05:00
Dan Williams
de15a81c5e core: remove stray semi-colon 2009-02-10 23:24:47 -05:00
Dan Williams
ae5adeaf2b core: allow uid 0 to activate user connections
Previously, uid 0 was not permitted to activate user connections,
but in some cases this is desired.
2009-02-10 23:24:33 -05:00
David Planella
eb7c6c0b50 po: update Catalan translation 2009-02-10 23:24:24 -05:00
Dan Williams
6e120709e2 Merge commit 'a734c836a56f3170202f0555f1a03c9b2835775c' into NETWORKMANAGER_0_7
Conflicts:

	libnm-glib/nm-ip4-config.c
	libnm-glib/nm-ip4-config.h
	src/dhcp-manager/nm-dhcp-manager.c
2009-02-10 23:23:14 -05:00
Dan Williams
a734c836a5 libnm-util: ignore Privacy for APs broadcasting WPA & RSN IEs (rh #445369)
While broadcasting WPA and RSN IEs with the Privacy bit set to 0 is
technically illegal, some networks using older Cisco equipment do it
(I'm looking at you, Eduroam) and there's no reason not to support
it.  Since the AP is broadcasting WPA/RSN IEs, assume that means
WPA and RSN is supported (duh).
2009-02-06 17:32:56 -05:00
Dan Williams
ce3473dc90 clear pending activation checks on device removal
Found by Drew Moseley <dmoseley@mvista.com>
2009-02-06 15:38:09 -05:00
Dan Williams
12f20e29ff fix --with-tests info message 2009-02-05 14:29:45 -05:00
Dan Williams
675a01ab9a fix dbus conf file broken by 7c3063faea 2009-02-05 07:15:04 -05:00
Dan Williams
7c3063faea ppp: don't require separate bus name for pppd plugin communication
Not actually needed, and actually makes securing the daemon harder
from a D-Bus perspective, since both bus names resolve to the same
unique name anyway, and the unique name is what actually gets
matched on inside dbus.  Suggestion from Colin Walters.
2009-02-05 06:05:10 -05:00
Henrique P Machado
6f5560f9b7 po: update pt_BR translation 2009-02-04 15:52:15 -05:00
Dan Williams
345fd870fa nm-tool: show minimal VPN information (bgo #569562) 2009-02-04 15:33:08 -05:00
Dan Williams
47f4d9945e ifcfg-rh: silence message about ignoring loopback config (rh #484060) 2009-02-04 11:28:27 -05:00
Dan Williams
c2f228e7b7 nm-tool: add carrier property to wired devices; remove "supported"
"supported" was always yes anyway.
2009-02-04 09:07:58 -05:00
Dan Williams
196c2055c7 introspection: add missing "Vpn" property on ActiveConnection interface (bgo #570030) 2009-02-03 06:27:33 -05:00
Dan Williams
65c4eff185 introspection: add missing NMDeviceType enum (bgo #569934) 2009-02-03 06:24:15 -05:00
Dan Williams
5f7cbe5ee9 libnm-glib: use correct D-Bus interface for getting devices (bgo #570031) 2009-02-03 06:14:49 -05:00
Dan Williams
5405a26b40 libnm-glib: use correct D-Bus interface for getting ActiveConnections (bgo #569933) 2009-02-03 06:09:23 -05:00
Dan Williams
718debc2cd fix distcheck for real 2009-02-02 01:36:43 -05:00
Dan Williams
203cff4d83 libnm-util: move crypto tests to libnm-util/tests/
Add testing certs and keys; run crypto tests on 'make check'
2009-02-02 01:03:15 -05:00
Dan Williams
b61b199776 libnm-util: flag properties with G_PARAM_CONSTRUCT so default values get set
This caused the 'autoconnect' property of NMSettingConnection to not
get updated in some cases (as when a system setting plugin noticed a
change to autoconnect=true and emitted the Updated signal, which wouldn't
contain the new value).  Add a testcase for setting default values too.
2009-02-01 20:18:21 -05:00