diff options
author | Dan Williams <dcbw@redhat.com> | 2008-10-29 14:35:25 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2008-10-29 14:35:25 +0000 |
commit | bfb72436631fcfc07478d7474b88959471b17e9a (patch) | |
tree | 31a58706b003393045914f6c50a72f2d7af6f1d1 /libnm-glib/libnm-glib-test.c | |
parent | 8f6eb995f9b0ae027e47e98eeb69bc98cd6d4e4c (diff) |
2008-10-29 Dan Williams <dcbw@redhat.com>
* libnm-util/libnm-util.ver
libnm-util/nm-setting-ip4-config.c
libnm-util/nm-setting-ip4-config.h
- Make properties private and add accessor functions
* callouts/nm-dispatcher-action.c
libnm-glib/libnm-glib-test.c
libnm-util/nm-utils.c
src/NetworkManagerPolicy.c
src/NetworkManagerSystem.c
src/NetworkManagerUtils.c
src/dhcp-manager/nm-dhcp-dhclient.c
src/dhcp-manager/nm-dhcp-manager.c
src/dnsmasq-manager/nm-dnsmasq-manager.c
src/nm-device-wifi.c
src/nm-device.c
src/nm-hso-gsm-device.c
src/nm-ip4-config.c
src/nm-ip4-config.h
src/ppp-manager/nm-ppp-manager.c
src/vpn-manager/nm-vpn-connection.c
system-settings/plugins/ifcfg-fedora/reader.c
system-settings/plugins/ifcfg-suse/parser.c
system-settings/plugins/ifcfg-suse/plugin.c
system-settings/plugins/ifupdown/parser.c
test/nm-tool.c
vpn-daemons/vpnc/properties/nm-vpnc.c
- Use IP4 accessor functions
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4233 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'libnm-glib/libnm-glib-test.c')
-rw-r--r-- | libnm-glib/libnm-glib-test.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libnm-glib/libnm-glib-test.c b/libnm-glib/libnm-glib-test.c index daa3abf83..9c891b605 100644 --- a/libnm-glib/libnm-glib-test.c +++ b/libnm-glib/libnm-glib-test.c @@ -73,17 +73,19 @@ dump_ip4_config (NMIP4Config *cfg) int i; for (iter = (GSList *) nm_ip4_config_get_addresses (cfg); iter; iter = g_slist_next (iter)) { - NMSettingIP4Address *addr = iter->data; + NMIP4Address *addr = iter->data; + guint32 u; - tmp = ip4_address_as_string (addr->address); + tmp = ip4_address_as_string (nm_ip4_address_get_address (addr)); g_print ("IP4 address: %s\n", tmp); g_free (tmp); - tmp = ip4_address_as_string (nm_utils_ip4_prefix_to_netmask (addr->prefix)); - g_print ("IP4 prefix: %d (%s)\n", addr->prefix, tmp); + u = nm_ip4_address_get_prefix (addr); + tmp = ip4_address_as_string (nm_utils_ip4_prefix_to_netmask (u)); + g_print ("IP4 prefix: %d (%s)\n", u, tmp); g_free (tmp); - tmp = ip4_address_as_string (addr->gateway); + tmp = ip4_address_as_string (nm_ip4_address_get_gateway (addr)); g_print ("IP4 gateway: %s\n\n", tmp); g_free (tmp); } |