Commit Graph

7207 Commits

Author SHA1 Message Date
Dan Williams
4af1cc2661 utils: add boolean value hash helper 2010-03-16 23:51:55 -07:00
Dan Williams
308e9110ae modem: log disconnect errors 2010-03-10 11:25:14 -08:00
Jiří Klimeš
798d68caa4 dhcp: more intelligent default DHCP client detection 2010-03-06 00:07:06 -08:00
Jiří Klimeš
dbacb05d2a core: fix GErrors pileup 2010-03-03 10:11:11 +01:00
Jiří Klimeš
bfe58b26fb trivial: replace NetworkManager.c occurence after renaming to main.c 2010-03-03 09:57:28 +01:00
Dan Williams
9e627d1bce trivial: rename some CamelCase source files to not-camel-case 2010-03-02 15:06:14 -08:00
Dan Williams
e8b5bcca56 hosts: always check and update /etc/hosts if needed (rh #569914)
If the hostname was changed while NM wasn't running, and thus /etc/hosts
was out of sync with the new hostname, NM wouldn't make sure that
the new hostname was mapped in /etc/hosts.  Make sure that happens
and add a bunch of testcases for /etc/hosts rewriting.
2010-03-02 14:44:02 -08:00
Dan Williams
f5f1da66b5 core: fix auto determination of classful IPv4 address and add testcase (bgo #603098)
The original patch didn't actually fix the main DHCP option code,
just the dhclient leasefile reading code.  Add some testcases for
good measure.
2010-03-01 17:29:15 -08:00
Dan Williams
2a646aafa3 core: try getting system config from NetworkManager.conf first
And fall back to nm-system-settings.conf if that doesn't exist.
2010-03-01 12:09:16 -08:00
Jiří Klimeš
c43f8b8836 core: cli options cleanup; fix usage of '--plugins'
'--plugins' option now takes preference over [plugins] from config file.
This change fixes a bug caused by accepting default config file when no
'--config' was specified and thus effectively disabling '--plugins'.
2010-02-26 15:05:03 +01:00
Jirka Klimes
0f0daf7852 core: determine classful IPv4 prefix if no DHCP netmask is provided (bgo #603098) 2010-02-25 16:52:10 -08:00
Robert Piasek
2183af36b6 gentoo: fix use nscd -i to clear cache (gentoo #301720) 2010-02-22 12:07:43 +01:00
Dan Williams
4b8709629e bluetooth: NEED_AUTH state is valid here
Since during the modem preparation we might need secrets for
unlocking the device or for GSM/CDMA network password.
2010-02-19 01:44:17 -08:00
Dan Williams
c5eb684718 Merge remote branch 'origin/btdun' 2010-02-18 10:18:20 -08:00
Dan Williams
23f26b300f Merge remote branch 'origin/dhcp6' 2010-02-18 10:17:47 -08:00
Dan Williams
b5bad00bc3 system-settings: remove unneeded include 2010-02-18 08:02:15 -08:00
Dan Williams
95da6625b7 system-settings: register setting errors so D-Bus errors are meaningful
The errors weren't registered with dbus-glib yet for some reason, so
errors returned when adding invalid connections or updating or whatever
weren't meaningful at all.  We register them in the system settings
service (and not libnm-util) becuase libnm-util doesn't really have
anything to do wtih D-Bus, so we put the error registration with the
code that exports the connections over the bus.
2010-02-15 17:26:55 -08:00
Dan Williams
183c256bad modem: deactivate device if modem is disabled underneath NM 2010-02-11 22:53:49 -08:00
Dan Williams
7e7278fbd5 Merge remote branch 'origin/master' into btdun 2010-02-11 22:41:02 -08:00
Dan Williams
b4d0114ff6 gsm: split password and PIN try counters
To ensure that getting one wrong doesn't force a request for another.
2010-02-11 11:28:59 -08:00
Dan Williams
096f87e160 modem: ignore Enabled property changes while activating
Due to various ordering issues in ModemManager, when the Enable()
call fails because a PIN is required, MM will disable the modem
and *then* complete the dbus call.  That means that NM gets the
Enable property change before the Enable() call completes, and NM
would then transition the device to DISCONNECTED.  What we
really want to do is get the response from MM and then figure out
whether to fail activation or get secrets, not go to DISCONNECTED.

To fix this, ignore Enabled property changes to FALSE while
activating so we can handle it ourselves.  There are still a few
fixes left in nm-applet to make the secrets request for PINs work
on-the-fly, but saved in the connection works fine.
2010-02-09 23:50:26 -08:00
Dan Williams
21242568a6 gsm: handle PIN requests during modem enable too (bgo #609197)
Fix a regression after f61af8e139 where
a PIN request while enabling the modem wouldn't properly make NM
request secrets from the settings service.
2010-02-08 13:16:14 -08:00
Dan Williams
f6c383ff14 policy: be more selective when adding hostname to /etc/hosts (debian #567411)
If the user has already mapped the hostname to some other address,
assume the user knows what they are doing (since they probably do)
and leave that mapping alone, and create a minimal 127.0.0.1 entry.
If there was no hostname mapping, add it to the 127.0.0.1 entry
like NM did before.
2010-02-01 17:29:58 -08:00
Dan Williams
0a5a0146f8 bluetooth: finish DUN implementation 2010-01-28 11:21:53 -08:00
Dan Williams
75898f075b bluetooth: minor cleanup for device connect 2010-01-27 17:28:35 -08:00
Dan Williams
4e5539c895 Merge commit 'origin/master' into btdun 2010-01-27 17:21:06 -08:00
Dan Williams
2d982646b4 trivial: clearer hostname fallback message 2010-01-27 17:16:58 -08:00
Dan Williams
72f936db31 policy: fall back to original hostname before trying reverse DNS
Having the original hostname checks in the settings-service code
didn't allow the policy enough granularity to differentiate between
a plugin-provided hostname and the original hostname.  We want to
fall back to the original hostname if there isn't a persistent
hostname (from a plugin) and if there isn't a DHCP-provided
hostname.  Moving the original hostname checks to the policy
makes that possible.  Clarify the precedence order at the same
time, and minimally validate the DHCP hostname as well.
2010-01-27 17:13:35 -08:00
Dan Williams
35c4b97d7d dhcp6: first stab at autoconf otherconf/managed mode support 2010-01-27 16:20:09 -08:00
Dan Williams
bfcb57f1b9 Merge commit 'origin/master' into dhcp6 2010-01-22 12:06:04 -08:00
Dan Williams
6400f5cb77 misc: license fixups
All libs are LGPL, all binaries are GPL.
2010-01-21 15:11:50 -08:00
Dan Williams
ac2505b64c Merge commit 'origin/master' into dhcp6 2010-01-20 15:42:26 -08:00
Ozan Çağlayan
51a95abef3 backends: add backend for Pardus 2010-01-20 13:37:52 -08:00
Jerone Young
de2205a24e core: ensure failed /etc/hosts update writes out well-formatted file (lp#471498) 2010-01-19 20:37:46 -08:00
Dan Williams
fbe413cbcd dhcp: ensure DHCP client is stopped on timeout 2010-01-15 12:50:38 -08:00
Dan Williams
f9bd97020d ipv6: push router advertisement flags to listeners 2010-01-14 22:57:51 -08:00
Dan Williams
d20c61a1d6 olpc-mesh: fix companion path and active channel property types
Companion device should be an object path instead of a string, and
the introspection data property type for the active channel was
wrong.
2010-01-14 14:30:02 -08:00
Dan Williams
d41c35fbf8 netlink: work around kernel cache refill problems
Sometimes cause the cache not to refill with all interfaces,
meaning NM sometimes got the wrong carrier state from the
kernel which prevented NM from taking over existing connections.
2010-01-14 14:15:18 -08:00
Dan Williams
a9e32f3c3b dhcp: add initial DHCPv6 support (managed mode only) 2010-01-14 00:45:10 -08:00
Dan Williams
f094e0ad9d dhcp: dhclient leasefile and pidfile fixes for IPv6
Don't use the same lease and pid files for IPv6 as for IPv4.
2010-01-14 00:39:58 -08:00
Dan Williams
439768db3d dhcp: add the NMDHCP6Config object 2010-01-13 22:30:40 -08:00
Dan Williams
9e805187cd core: rename some DHCPv4 specific variables 2010-01-13 18:06:05 -08:00
Dan Williams
2a718bbb1b core: simplify DHCP setup and cleanup
nm_device_set_use_dhcp() and nm_device_get_use_dhcp() were somewhat
confusing and don't really reflect the new DHCP architecture with
NMDHCPClient.  Now that timeout and state signals are specific to
the NMDHCPClient it doesn't make sense to check for DHCP use
in the callbacks for those signals since they'll never get called
if DHCP isn't in use.  We might as well just keep the DHCP manager
around and check whether a DHCP client instance exists when we need
to figure out whether DHCP is in use.
2010-01-13 17:59:54 -08:00
Dan Williams
3568a98a61 dhcp: fix dhcp 4/6 mixup 2010-01-13 17:59:19 -08:00
Dan Williams
fe62e59c7e dhcp: add DHCPv6 functionality 2010-01-13 16:51:20 -08:00
Dan Williams
81f23ea383 dhcp: actually use runtime-selected DHCP client 2010-01-12 23:07:44 -08:00
Dan Williams
702836b42f dhcp: allow runtime DHCP client selection via config file 2010-01-12 22:55:24 -08:00
Dan Williams
1806235049 dhcp: convert dhcp backends to classes 2010-01-12 22:09:28 -08:00
Dan Williams
d997785db3 dhcp6: genericize DHCP client tracking
Since the same interface could be used for both	DHCPv4 and DHCPv6 we
can't just use 'iface' for tracking DHCP client lease changes.  Instead
use a generated client ID, and track DHCP events based on the client's
PID instead of interface name.
2010-01-08 17:16:05 -08:00
Dan Williams
3ee1eb7a6c dhcp6: add dhclient ipv6 states 2010-01-08 15:22:11 -08:00