Commit Graph

7740 Commits

Author SHA1 Message Date
Dan Williams
25d17ef341 core: always tear down devices when their hardware goes away
Previous connection-assumption code that made sure not to touch
ethernet devices when NM quit also didn't clean up after devices
that were physically removed, which was wrong.
2009-09-14 07:55:59 -07:00
Dan Williams
db588ed8e5 vpn: don't reset VPN gateway route when parent device is going down
Or really, any time the parent IP4 config is cleared which is pretty
much only when the device is going down.  Avoids a warning when
nm_system_add_ip4_vpn_gateway_route() can't get the parent IP4Config
because it doesn't exist.
2009-09-14 07:55:59 -07:00
Dan Williams
4c77fa0862 po: rename sr@Latn -> sr@latin (bgo #555863) 2009-09-11 09:02:20 -04:00
Shankar Prasad
f1dc359bac po: add Kannada (kn) translation (bgo #585826) 2009-09-11 08:56:33 -04:00
Krishna Babu K
aa0536b262 po: add Telugu (te) translation (bgo #585553) 2009-09-11 08:54:21 -04:00
Amitakhya Phukan
3b975055e8 po: update Assamese (as) translation (bgo #585537) 2009-09-11 08:51:42 -04:00
Sweta Kothari
6b2754d6d1 po: updated Gujarati (gu) translation (bgo #585111) 2009-09-11 08:49:50 -04:00
Runa Bhattacharjee
267ba9c0d7 po: add Bengali (bn_IN) translation (bgo #585067) 2009-09-11 08:46:20 -04:00
Francesco Marletta
ddf8818a3f po: update Italian translation (bgo #575041) 2009-09-11 08:43:10 -04:00
Sandeep Shedmake
32fbee1487 po: update Marathi translations (bgo #573729) 2009-09-10 22:15:54 -04:00
Dan Williams
f86d6c441b po: add missing translatable 2009-09-10 22:15:22 -04:00
Piotr Drąg
0cfd50664b po: updated Polish translation (bgo #594577) 2009-09-10 21:23:48 -04:00
Daniel Nylander
cb4f017856 po: updated Swedish translation (bgo #594203) 2009-09-10 21:22:03 -04:00
Aron Xu
da0d093c60 po: Updated Simplified Chinese translation (bgo #594310) 2009-09-10 21:18:58 -04:00
Aron Xu
e8e796957d po: update Simplified Chinese translation (bgo #593774) 2009-09-10 21:18:55 -04:00
Dan Williams
985ccfe7ad doc: fix FSF address (bgo #575625) 2009-09-10 21:03:30 -04:00
Dan Williams
8d205212dc vpn: fix crash when canceling VPN connection secrets request
The secrets provider might be unrefed while processing the response,
causing a double-free when the unref triggers the weak ref notifier
and clears out the GetSecretsInfo, but then later the dbus handler
that got the response in the first place tries to free the info
explicitly.  So keep the provider around while processing the result.
2009-09-10 12:18:18 -07:00
Noel J. Bergman
aced7c25c2 policy: reschedule failed devices for activation after a short delay
Instead of immediately...  devices handled externally from NM (by
ModemManager or Bluez or whatever) have a slight delay in reporting
to NM that they device has been removed (due to internal housekeeping
and then pushing the event into D-Bus signals or something) and thus
when NM notices PPP failures and tries to reschedule activation
of autoconnect=true connections, it fails the reactivation because
the device actually is no longer present, but it hasn't gotten the
device-removed event from MM or Bluez yet.  That sets the invalid
tag on the connection, and when the device gets replugged, the
invalid tag suppresses autoconnect.
2009-09-09 17:19:39 -07:00
Dan Williams
9b55936dee device: only invalidate connections if they failed during activation
Otherwise, connections used to get marked invalid on hot-unplug, which
isn't really correct.
2009-09-09 12:21:55 -07:00
Dan Williams
f28a0df4a6 ppp: ignore certain pppd status changes
We don't actually care when pppd goes into the 'network' phase or the
'authenticate' phase, because we're looking for the IP4 configuration
to come back, and the device is already in the IP_CONFIG state.
Handling those phases would cause the device's state to jump around
between NEED_AUTH and IP_CONFIG when we were already past that phase.

Specifically, when the PPP link went down, the device would jump from
FAILED to IP_CONFIG because pppd entered the 'network' phase when
cleaning up the link.  The device would also jump from IP_CONFIG to
NEED_AUTH during the connection process when we already had secrets.
2009-09-09 07:44:21 -07:00
Dan Williams
222869a7ef include: number device activation stages in NetworkManager.h 2009-09-09 07:11:29 -07:00
Dan Williams
bee58e359d modem: disable modem instead of just disconnecting
Until later when we'll actually do stuff like probing signal
strength and such while disconnected.
2009-09-04 17:42:09 -05:00
Alexander Sack
eeec1021b2 ifupdown: do not export any connection in managed=false mode - lp:291902 2009-09-04 18:02:24 +02:00
Alexander Sack
801203c3aa ifupdown: support mappings and don't track devices not referenced in any stanza lp:291564 2009-09-04 17:53:43 +02:00
Alexander Sack
2e912158af core: ensure that modem-manager claimed data devices are ignored
add function nm_modem_manager_has_modem_for_iface to modem-manager api
and ignore device additions in nm-manager if the iface is claimed by
modem-manager; also forget about already managed devices once they get
claimed by modem-manager.
2009-09-04 16:55:48 +02:00
Dan Williams
e5ed391f28 libnm-util: allow certificate/key paths
Overload the certificate and key properties to allow paths to the
certificates and keys using a special prefix for the property data.
Add API to libnm-util for easy certificate path handling, and
documentation for NMSetting8021x.
2009-09-04 09:07:00 -05:00
Dan Williams
cecf8f64c7 ifupdown: fix regression locking connections to their interfaces (lp #424092)
Reported and tirelessly tested by Noel Bergman <noel@devtech.com>
2009-09-03 20:43:26 -05:00
Dan Williams
74f125b44e doc: add new settings and fix 'make clean' 2009-08-31 00:50:02 -05:00
Dan Williams
ae6c370a7b libnm-util: OLPC mesh setting fixes 2009-08-30 23:58:23 -05:00
Dan Williams
74fbda9b85 doc: fixes 2009-08-30 23:31:07 -05:00
Dan Williams
eb96ffda5d vpn: ignore VPN-provided gateway host route (bgo #583323)
Since NM adds the gateway host route in the manner that's correct
for the current routing situation, we don't really want random
gateway host routes from the VPN server getting added instead.
2009-08-28 10:35:38 -05:00
Dan Williams
79489be3b5 build: bump release version
For all the polkit changes
2009-08-26 13:51:11 -05:00
Dan Winship
6fbd834889 Don't remove-and-then-immediately-re-add addresses
For IPv6 autoconf, the addresses returned from NMIP6Manager will
already have been added to the interface, and if we remove and readd
them it will cause additional netlink notifications which may cause us
to think additional changes have been made. So change the
config-applying code to only remove addresses that aren't part of the
new config.
2009-08-26 14:38:01 -04:00
Dan Winship
7344cc186d Add NMIP6Manager to handle IPv6 addrconf
Automatic IPv6 configuration is handled by the kernel, but to
integrate it properly with NetworkManager, we need to watch what the
kernel does to see whether or not it was successful (so that we can
let the user know if there is no IPv6 router present, for example).
NMIP6Manager takes care of this.
2009-08-26 14:37:45 -04:00
Dan Winship
67a5f31fc8 Work around libnl address caching bug
rtnl_addr requires that all addresses have the "peer" attribute set in
order to be compared for equality, but this attribute is not normally
set. As a result, most addresses will not compare as equal even to
themselves, busting caching. We fix this for now by poking into the
guts of libnl if it is broken...
2009-08-26 14:37:17 -04:00
Dan Williams
58fcc8efe6 libnm-glib: libnm_glib -> libnm-glib
Bothered me for a long time; now that we've bumped the soname, we can
rename the library too.
2009-08-26 13:07:35 -05:00
Dan Williams
eaa8a38710 libnm-glib: bump .so major for settings API/ABI changes 2009-08-26 12:28:42 -05:00
Dan Williams
0ea50e2a92 Merge commit 'origin/polkit1' 2009-08-26 12:18:30 -05:00
Dan Williams
0097628a7b libnm-util: add nm_setting_olpc_mesh_error_quark to symbol filter 2009-08-26 11:32:20 -05:00
Dan Williams
5a29dfef24 Merge commit 'origin/master' into polkit1 2009-08-26 10:46:08 -05:00
Dan Winship
592769cfd9 core: add a cast to fix compile on 32-bit 2009-08-25 18:18:16 -04:00
Dan Williams
a5eb29ad9f libnm-glib: fix crash when system permissions change 2009-08-24 19:42:00 -05:00
Dan Williams
7ededcf7b8 libnm-glib: include header for easer use of NMRemoteSettingsSystem 2009-08-24 19:35:34 -05:00
Dan Williams
243cba8398 libnm-glib: implement SaveHostname 2009-08-24 16:17:41 -05:00
Dan Williams
844ff94186 libnm-glib: handle system settings permissions changes 2009-08-24 16:12:51 -05:00
Dan Williams
d56674b147 libnm-glib: NMSettingsSystemPermission -> NMSettingsSystemPermissions 2009-08-24 15:57:11 -05:00
Dan Williams
2dbaab2221 system-settings: add permissions
Since the new PolicyKit does away with easy checking of authorizations,
we get to implement it by ourselves, but that's OK since we can actually
use it for a lot more stuff.  So add the GetPermissions call which returns
the permissions the caller actually has, and a signal informing callers
that their permissions might have changed.  Hook this all up to
PolicyKit so it's useful.
2009-08-24 13:03:09 -05:00
Dan Williams
909375920b libnm-glib: add missing private header 2009-08-24 12:59:24 -05:00
Dan Williams
a4349dac9f libnm-glib: consolidate writable connection checks 2009-08-24 11:36:08 -05:00
Dan Williams
56a597be32 core: use defined signal names 2009-08-24 10:17:05 -05:00