Commit Graph

7740 Commits

Author SHA1 Message Date
Dan Williams
a2bcb79918 gsm: send new allowed mode and roaming control properties on connect 2010-03-16 23:53:31 -07:00
Dan Williams
d924003320 libnm-util: add nm_setting_gsm_get_home_only()
For roaming control.
2010-03-16 23:52:37 -07:00
Dan Williams
4af1cc2661 utils: add boolean value hash helper 2010-03-16 23:51:55 -07:00
Jiří Klimeš
15351042ba libnm-glib: add 'vpn-state' and 'banner' properties to NMVPNConnection class
Without these properties, the errors like these occured:
  WARNING **: handle_property_changed: property 'vpn-state' changed but wasn't
  defined by object type NMVPNConnection.
2010-03-12 11:03:14 +01:00
Jiří Klimeš
f46a601022 libnm-glib-test: fix crash when a VPN connection is active and print its base connection 2010-03-12 10:49:59 +01:00
Dan Williams
308e9110ae modem: log disconnect errors 2010-03-10 11:25:14 -08:00
Dan Williams
d0c792d598 build: fix build of old libnm_glib stuff after 9c9898091a 2010-03-10 11:19:26 -08:00
Dan Williams
9c9898091a libnm-glib: deprecate original libnm_glib bits
Been trying to move people off them for a long time, this makes
it official.
2010-03-10 09:18:08 -08:00
Jiří Klimeš
639ae507e1 keyfile: don't free GError when it's NULL (after connection's successful update) 2010-03-09 11:10:58 +01:00
Jiří Klimeš
f97c0369c0 doc: fix a typo 2010-03-08 10:59:16 +01:00
Dan Williams
3abf5f30bf system-settings: fix plugins for /etc/NetworkManager/NetworkManager.conf 2010-03-06 00:18:28 -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
a542bba20a man: cleanups 2010-03-01 18:12:03 -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
af83949cd4 trivial: .gitignore update 2010-03-01 12:45:51 -08:00
Jiří Klimeš
1aae1ad009 man: manpage updates; add pages for system settings config file 2010-03-01 12:35:20 -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
Rajesh Ranjan
2281b87cc4 po: add Hindi translation (bgo #610914) 2010-02-25 13:04:12 -08:00
Miguel Anxo Bouzada
0f70d95b22 po: update Galican translation (bgo #611059) 2010-02-25 12:55:29 -08:00
Runa Bhattacharjee
409aaa43e0 po: update Bengali translation (bgo #610442) 2010-02-25 12:53:03 -08:00
Jirka Klimes
c2ec07f17d cli: add initial pieces of nmcli 2010-02-25 09:52:30 -08:00
Dan Williams
bace73c5dc examples: add Tambet's VPN auto-activate example 2010-02-24 16:55:11 -08:00
Dan Williams
754774a4e3 examples: add license headers 2010-02-24 16:55:02 -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
fa9e9b4227 examples: add some python examples 2010-02-18 10:17:08 -08:00
Dan Williams
d75aa067e3 release: bump version to 0.8 2010-02-18 08:12:35 -08:00
Dan Williams
6136bca71f ifcfg-rh: add missing file to fix distcheck 2010-02-18 08:10:18 -08:00
Dan Williams
b5bad00bc3 system-settings: remove unneeded include 2010-02-18 08:02:15 -08:00
Dan Williams
37e8ae824e ifupdown: don't tell NM about connections until we check 'managed' (lp:450458)
Otherwise it causes connections that we don't want exported to leak
out and be shown in the connection editor even though the device
isn't supposed to be managed.
2010-02-18 07:55:34 -08:00
Dan Williams
6b7ec3894a ifcfg-rh: dbus method return values need to be allocated 2010-02-17 17:23:18 -08:00
Dan Williams
d0f5c92ed9 ifcfg-rh: provide an easy way to get connection UUID/path for tools
ifup/ifdown, nmcli, and possibly other tools need a way to get the
internally generated connection UUID and possibly it's path given
just the ifcfg file path.  Not all ifcfg files have the UUID in
the file, so ifcfg-rh generates one.  But external tools don't know
what that UUID is or what the logic that NM uses to generate it is.

Help them out a bit so that ifup/ifdown can easily poke NM given
just the ifcfg file.
2010-02-17 16:43:03 -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
c218be1165 keyfile: add testcase for MAC address case
To make sure you can specify the MAC in either upper and lowercase.
2010-02-12 11:11:45 -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
Michael Biebl
2a7a4ebaf6 ifupdown: interpret allow-hotplug as autoconnect (debian #568784) 2010-02-08 09:34:28 -08:00
Tournaris Pavlos
74dfcf6ad7 po: update Greek translation (bgo #608810) 2010-02-02 09:48:40 -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