Mu Qiao
28047305db
ifnet: fix IP comparison (bgo #670508 )
...
IP comparison was not working due to different IP formats. Now this is
fixed.
2012-02-25 20:50:18 -06:00
Dan Williams
750cb8bb89
ifnet: add testcase for # in passphrase (bgo #670381 )
2012-02-25 20:33:00 -06:00
Alexandre Rostovtsev
3feb769efa
ifnet: do not truncate WPA passwords at '#' character (bgo #670381 )
...
We need to do the same thing as wpa_supplicant's own config file parser
and ignore '#' characters that occur between the first and last '"'
characters in a config file line.
https://bugzilla.gnome.org/show_bug.cgi?id=670381
2012-02-25 20:32:39 -06:00
Alexandre Rostovtsev
fe29aa967c
ifnet: properly unquote hostnames with g_shell_unquote() (bgo #669148 )
...
If /etc/conf.d/hostname contains "hostname='foo'", then the hostname
needs to be set to "foo", not "'foo'".
https://bugzilla.gnome.org/show_bug.cgi?id=669148
2012-02-13 11:03:28 +01:00
Dan Williams
80852aa96a
ifnet: make testcases happy
...
ifnet_plugin_get_conf_file() needs to be defined for the testcases.
2011-12-12 20:07:54 -06:00
Dan Williams
1d0c27590e
ifnet: use SYSCONFDIR not /etc
2011-12-12 20:04:25 -06:00
Dan Williams
c579bf95a5
trivial: spacing fixes
2011-12-12 20:02:56 -06:00
Mu Qiao
6d09316b6f
ifnet: support writing openrc style
2011-12-12 20:02:00 -06:00
Mu Qiao
76619e4529
ifnet: support reading openrc style
...
IP configuration like 192.168.1.{2..4} is not supported anymore.
2011-12-12 19:44:03 -06:00
Thomas Graf
5b7503e95e
core: use nm_connection_get_setting_<type>() whenever possible
...
Leads to shorter, easier to read code and improves type casting safety.
Signed-off-by: Thomas Graf <tgraf@redhat.com>
2011-12-06 16:06:43 -06:00
Dan Winship
2510c617ec
libnm-util: add ether_ntoa/ether_aton-like utility methods
...
nm_utils_hwaddr_ntoa() and nm_utils_hwaddr_aton() are like
ether_ntoa()/ether_aton(), but handle IPoIB too.
nm_utils_hwaddr_atoba() is like _aton() but returns a GByteArray,
since that's what's wanted in many places.
Also remove nm_ether_ntop() and replace uses of it with
nm_utils_hwaddr_ntoa().
2011-11-17 13:37:08 -06:00
Jiří Klimeš
7b7e426b65
settings: pass config file name to settings plugins
...
Thus plugins will use the correct configuration file, even in case the name
is specified on command line with --config.
2011-11-16 08:56:29 +01: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
Jiří Klimeš
4bb50e4380
ifnet: add testcase for incorrect config
...
Missing config_<name> line (containing method, i.e. dhcp, ...) should
fail with error 'Unknown config for <name>'.
2011-09-01 11:29:32 +02:00
Jiří Klimeš
9f026283c6
ifnet: fix tests
2011-08-31 19:05:21 +02:00
Jiří Klimeš
379d9044fb
ifnet: fix GError handling in ifnet_update_connection_from_config_block()
2011-08-31 17:27:27 +02:00
Dan Williams
9cba854fa0
settings: ensure transient secrets are ignored when rereading connections (rh #703785 )
...
When a connection changes on-disk, the in-memory copy of it may contain
transient secrets (agent-owned or not saved) that dont' get written out
to disk. When comparing the on-disk copy to the in-memory copy make sure
transient secrets are ignored so that we don't re-read the on-disk copy
needlessly.
2011-06-07 18:39:18 -05:00
Mu Qiao
8d60cafd18
ifnet: fix tests and distcheck
2011-03-17 11:05:46 -05:00
Mu Qiao
08b2fa5401
ifnet: plugin updates and shared connection support
2011-03-16 15:39:13 -05:00
Kjartan Maraas
b224ab8e56
trivial: let g_free and g_strdup handle NULL (bgo #644763 )
2011-03-15 00:08:58 -05:00
Kjartan Maraas
6d0d302916
build: do the right thing with config.h (bgo #644664 )
...
1) it shouldn't be included in headers
2) it should be the first thing included in source files
3) it's needed for getting translation right
2011-03-14 01:01:22 -05:00
Dan Williams
9d79387966
ifnet: clean up after tests by removing generated files
2011-02-15 12:04:42 -06:00
Dan Williams
5bcb0832e5
settings: move system-settings/plugins => src/settings/plugins
2011-02-15 11:55:34 -06:00