Dan Winship
6878d20ac4
all: Don't use ctype.h macros
...
The ctype macros (eg, isalnum(), tolower()) are locale-dependent. Use
glib's ASCII-only versions instead.
Also, replace isascii() with g_ascii_isprint(), since isascii()
accepts control characters, which isn't what the code wanted in any of
the places where it was using it.
2012-09-26 12:14:37 -04:00
Ross Vandegrift
43d4d16b5b
ifupdown: Allow netmask to be CIDR-style prefix length (bgo #679123 )
2012-08-06 15:07:42 -05:00
Pavel Šimerda
4fdca493ad
ifupdown: testcase for CIDR-style prefix length (bgo #679123 )
2012-08-06 15:07:42 -05:00
Jiří Klimeš
edb85e9720
core: fix NM_IS_*_CLASS(klass) macros
...
The argument is 'klass' not 'obj'.
2012-07-27 13:15:54 +02:00
Jiří Klimeš
876f318ee8
ifupdown: add missing test18-wired-static-verify-ip6 to Makefile.am
2012-03-27 15:55:21 +02:00
Dan Williams
ff53b383f7
ifupdown: clean up IPv4/IPv6 parsing and fix some memleaks
2011-12-12 21:30:46 -06:00
Guido Günther
2c83670ed7
ifupdown: add support for ipv6 connections
2011-12-12 20:13:13 -06:00
Guido Günther
72bef29d5d
ifupdown: add ifparser_haskey function
2011-12-12 20:10:36 -06:00
Guido Günther
92a3bc9e4c
ifupdown: cleanup indentation
...
and remove unused variables.
2011-12-12 20:09:16 -06:00
Guido Günther
6dcd9114cb
ifupdown: add testcase to verify parsing into NMConnection
2011-12-07 17:58:44 -06:00
Guido Günther
e4fbf5363e
ifupdown: support dns-search entries
...
as used by resolvconf and openresolv.
2011-12-07 17:58:24 -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
Evan Broder
9f86b44a52
ifupdown: fix build
2011-11-17 16:24:56 -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
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
Michael Biebl
8119ecf6b0
core: depend on stable gudev API
2011-03-10 03:19:27 -06:00
Michael Biebl
f2f406b316
ifupdown: normalize keys using - or _ (debian #609831 )
2011-03-07 09:57:05 -06:00
Daniel Trebbien
96044f7d94
ifupdown: use new logging API
2011-03-05 00:02:43 -06:00
Dan Williams
5bcb0832e5
settings: move system-settings/plugins => src/settings/plugins
2011-02-15 11:55:34 -06:00