Commit Graph

8762 Commits

Author SHA1 Message Date
Fran Diéguez
b02eff2919 po: updated Galician translation (bgo #657286) 2011-10-12 14:28:28 +02:00
Matej Urbančič
6475050897 sl: updated Slovenian translation (bgo #658392) 2011-10-12 14:13:22 +02:00
Timo Jyrinki
de9f9e584d po: updated Finish translation (bgo #658823) 2011-10-12 14:05:46 +02:00
Christian Kirbach
0dea9d2e0f po: updated German translation (bgo #659090) 2011-10-12 13:58:17 +02:00
Piotr Drąg
930ab05823 po: updated Polish translation (bgo #660391) 2011-10-12 13:04:09 +02:00
Jorge González
b53bcfe211 po: updated Spanish translation (bgo #660625) 2011-10-12 12:52:38 +02:00
Colin Walters
979d527828 build: fix glib version check for g_value_get_schar() (bgo #661271)
The function appeared in glib master (which was 2.31.0); it's not
in glib-2-30 branch.
2011-10-12 10:17:00 +02:00
Dan Williams
c48db5e79b wifi: clarify supplicant disconnect handling behavior
No functional change, but clarify what's supposed to happen when
a disconnect occurs during activation or when the device is activated.

If the connection is an 802.1x or LEAP connection who's password is
NOT_SAVED, then we should request a new password immediately since
the existing one is probably no longer valid (ie, a OTP or token).

Otherwise, start a timer to give the supplicant some time to reconnect.
2011-10-11 19:13:02 -05:00
Jiří Klimeš
3049511f47 ifcfg-rh: fix changing WPA connections to WEP
When connection was changed with the editor from WPA to WEP, KEY_MGMT was
not cleared. This resulted in infinite loop of ifcfg plugin under some
circumstances ("Available to all users" unchecked, I think).
The re-read connection was regarded as WPA and thus it differed from the
stored one.
2011-10-11 18:10:26 +02:00
Mathieu Trudel-Lapierre
b687872f68 ip6: make sure static routes are flushed for manual configs too
Manual configs don't require an IP6Manager object and thus static
routes wouldn't get flushed on device deactivation.
2011-10-10 16:36:36 -05:00
Ludwig Nussel
b0e6033ba9 wifi: fix stop condition of EAP method check while loop 2011-10-10 16:12:10 -05:00
Ludwig Nussel
c379df568c build: glib 2.30.0 doesn't have g_value_get_schar yet 2011-10-10 16:04:34 -05:00
Thomas Jarosch
1453abbebc test: add missing return values
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
2011-10-10 16:02:27 -05:00
Dan Williams
a6f7dfff23 wifi: simplify supplicant connect failure handling
Make it a bit clearer what's happening and where.  Still need to
do some cleanups to make NM ask for secrets less.
2011-10-06 18:18:39 -05:00
Dan Williams
7afba44329 supplicant: check supported EAP methods for EAP-FAST 2011-10-06 13:32:23 -05:00
Larry Reaves
5194a785fc cli: initialize 'selector' variable to please jhbuild 2011-10-06 12:21:08 +02:00
Dan Williams
3f08004aa1 dnsmasq: bump DNS cache size to 400
150 seems a bit low these days.
2011-10-05 17:28:22 -05:00
David Rothlisberger
bcef119ffd build: add --disable-crashtrace option
Disables GNU backtrace extensions.
2011-10-05 17:01:16 -05:00
Thomas Jarosch
5bbafdc632 ifnet: fix possible use of uninitialized variable
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
2011-10-05 12:41:52 -05:00
Thomas Jarosch
d7ad91d1b4 ifcfg-rh: use correct g_free() function
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>

(dcbw: fix more occurances)
2011-10-05 12:40:01 -05:00
Dan Williams
7956d661ee core: fix builds with libnl2 2011-10-04 13:20:11 -05:00
Dan Williams
a6b18d746a docs: make sure libnm-glib.png gets into the dist tarball (bgo #659203) 2011-10-03 16:47:26 -05:00
Tore Anderson
453f676b2d ip6: accept RAs when forwarding
This patch makes NM set the "accept_ra" sysctl to 1 rather than 2. This
causes the kernel to process RAs even if it configured to forward IPv6
traffic on the interface in question.

IPv6 forwarding would likely be enabled on a host running virtualised
operating systems with virtualised network adapters, for example. This
should not prevent NM from successfully activating IPv6 on a
NM-controlled interface configured with IPv6 mode Auto.
2011-10-03 15:49:15 -05:00
Dan Williams
6c6ec65abe libnm-util: fix deprecated g_value_get_char() for glib 2.29.90 and later 2011-10-03 10:33:49 -05:00
Jiří Klimeš
3e79f06566 trivial: remove unwanted exclamation mark to fix compilation 2011-10-03 15:54:25 +02:00
Jiří Klimeš
dce6a071a8 ifcfg-rh: don't use spaces in ifcfg file names (rh #742273) 2011-10-03 10:30:50 +02:00
Thomas Bechtold
ab7a8fcf98 core: improve config error handling
* better error messages
  * fix memory leak in parse_state_file ()
  * create intermediate parent directories as needed for state file
2011-10-03 00:46:37 -05:00
Dan Williams
06fa29b7bb wifi: add debug logging to new AP merge paths 2011-09-30 13:23:52 -05:00
Dan Williams
fe3151e46e wifi: tweak scanning debug message 2011-09-30 12:59:59 -05:00
Dan Williams
f5d124cd83 core: more verbose message when ignoring certain interface types 2011-09-30 12:50:15 -05:00
Dan Williams
f6aa009712 wifi: rename some AP debug dumping functions 2011-09-30 12:34:17 -05:00
Gary Ching-Pang Lin
339229e4c6 core: improving handling of rfkill (bgo #655773)
This commit improves the handling of rfkill.

- The original two passes check gathers the states of platform
  and non-platform switches in two separate loops. Now we gather
  the both states in one loop and determine the final states later.

- A new rule is used to determine the states of switches.

  if (platform_state == UNBLOCKED)
          choose non_platform_state;
  else
          choose platform_state;

  The state is UNBLOCKED if and only if both the platform and
  non-platform switches are unblocked, so the ambiguous state in
  bgo#655773 will not happen.

  Original code always preferred the platform switch state over
  the device switch state, so if the platform switch was UNBLOCKED
  but the device was BLOCKED, NM would treat the device as
  UNBLOCKED and try to activate it, and obviously fail.
2011-09-30 01:04:18 -05:00
Thomas Graf
00f2b0a9bb core: Include <linux/if.h> instead of <net/if.h>
NM already includes <linux/if.h> in some places, f.e. nm-netlink-monitor and
we can't mix usage of the two. Stick to using <linux/if.h> as it provides
additional flag definitions such as operational link state and link mode.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-09-30 00:18:24 -05:00
Thomas Graf
61099e30f6 configure: Check for libnl-route-3 package
NM not only depends on libnl but also on libnl-route. Therefore check for the
corresponding pkg-config file and use its CFLAGS and LIBS. Otherwise fall
back to using libnl-2 or libnl-1.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-09-30 00:05:53 -05:00
Thomas Graf
fcc128516e configure: Fix typo in libnl3 check
Check for libnl3 sets $have_libnl2 variable instead of $have_libnl3. Mostly a
cosmetic fix since the only usage also has the typo in it.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-09-30 00:05:16 -05:00
Thomas Graf
6764711cc9 configure: Only check for older libnl versions if newer is unavailable
More recent libnl versions can be installed in parallel. Therefore it is
possible for more than one libnl check to pass successful. The way
the #ifdefs are done this results in code for multiple libnl versions
to be included.

Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-09-30 00:03:07 -05:00
Dan Williams
156f403f31 keyfile: fix confusion about NULL termination for uchar arrays
SSIDs don't want NULL termination, but some of the certificate code
checked for it.  New-style plain strings would never be NULL
terminated (by accident) so fix that and make the code simpler too.

Found by Gary Ching-Pang Lin <chingpang@gmail.com>
2011-09-29 23:52:17 -05:00
Dan Williams
c9119c7599 modem: fix a periodic use-after-free crash poking ModemManager
See https://bugs.freedesktop.org/show_bug.cgi?id=41339 for a backtrace
and more info.
2011-09-29 11:14:48 -05:00
Jiří Klimeš
e189b87406 vpn: fix assertion when getting 'Uuid' property of an active VPN connection 2011-09-29 16:37:12 +02:00
Jiří Klimeš
a4305b3cbe vpn: fix 'SpecificObject' path for active VPN connections on D-Bus
Active VPN connections exported their own active path instead of active path of
base connection in 'SpecificObject' property. It's a regression caused by commit
bc6fc7b910 that split VPN connections to
NMVPNConnectionBase and NMVPNConnection.
Previously, specific object used to be obtained from NMActRequest of parent
connection. The NMActRequest object served also for getting secrets. Commits
0e6a5365d4 and 832e64f8bc
removed NMActRequest from VPN connection because it's not necessary any more.
This commit fixes the issue by passing specific object path explicitly.
2011-09-29 16:09:17 +02:00
Dan Williams
a38032e96c core: split nm_manager_get() to simplify manager creation
OLPC Mesh code now doesn't have to be updated every time we change
the manager's creation arguments.  We could make all these arguments
GObject properties of the manager too, but that's more code and
we'd eventually like to figure out a better solution for letting
non-NMManager code listen for device addition/removal.
2011-09-27 09:40:54 -05:00
Dan Williams
52e96be3c4 core: split out config file handling
Make config file stuff somewhat clearer and easier to understand,
and possibly easier to extend later.
2011-09-27 09:40:50 -05:00
Dan Williams
1f835b0adb core: remove unused arguments from nm_manager_get() 2011-09-27 09:24:36 -05:00
Jiří Klimeš
1c767dd541 fcfg-rh: remove newlines when writing to ifcfg files (CVE-2011-3364) (rh #737338) 2011-09-27 09:26:40 +02:00
Jiří Klimeš
f44959890b ifcfg-rh: change iscsiadm path to /sbin/iscsiadm (rh #740753)
Using SBINDIR appears to be wrong as it expands to /usr/sbin.
2011-09-26 15:51:49 +02:00
Dan Williams
7e96da83e7 wimax: log connection progress information
We don't do anything with it yet, but it's nice to know for debugging.
2011-09-21 00:30:51 -05:00
Dan Williams
e63dc96a8f core: release DHCP lease when requested instead of always 2011-09-21 00:30:38 -05:00
Dan Williams
e39449caef settings: fix leaked connection when deleting secrets 2011-09-20 23:01:35 -05:00
Dan Williams
512a0f827a settings: fix refcounting when deleting a default wired connection (lp:797868)
When a default wired connection is saved, it gets deleted first since it
has to be re-created using a settings plugin.  But with the settings
rework in 0.9, default wired refcounting changed and the default
wired connection wasn't kept alive in default_wired_try_update()
over the removal/readd.  This caused a use-after-free.
2011-09-20 22:44:10 -05:00
Jiří Klimeš
f95d503680 examples: correct a comment in list-devices.py example 2011-09-20 18:13:32 +02:00